diff --git a/hosts/tsuki/home.nix b/hosts/tsuki/home.nix index 89b86fb..a435c1e 100755 --- a/hosts/tsuki/home.nix +++ b/hosts/tsuki/home.nix @@ -1,6 +1,7 @@ -{config, pkgs, ...}: - { + pkgs, + ... +}: { imports = [ ../../home @@ -23,6 +24,7 @@ imports = [ username = "notoh"; homeDirectory = "/home/notoh"; packages = with pkgs; [ + (callPackage ../../pkgs/chatterino7 {}) chromium bitwarden discord diff --git a/pkgs/README.md b/pkgs/README.md index 91d1f4d..3193f14 100644 --- a/pkgs/README.md +++ b/pkgs/README.md @@ -1,3 +1,7 @@

:package: pkgs

-not in use yet, will house packages once i get comfortable writing them +this directory hosts derivations of packages not found in nixpkgs, and overrides. + +name | description +--------------- | ----------- +`chatterino7` | [7tv fork](https://github.com/SevenTV/chatterino7)of chatterino2, a chat client for twitch.tv diff --git a/pkgs/chatterino7/default.nix b/pkgs/chatterino7/default.nix new file mode 100644 index 0000000..c4ec721 --- /dev/null +++ b/pkgs/chatterino7/default.nix @@ -0,0 +1,33 @@ +{ + stdenv, + lib, + cmake, + pkgs, +}: +stdenv.mkDerivation rec { + pname = "chatterino7"; + version = "7.4.2"; + src = pkgs.fetchFromGitHub { + owner = "SevenTV"; + repo = pname; + rev = "v${version}"; + sha256 = "sha256-WHdrFUTTuPN+U9BIsE6Ht2EdwIqWfVJzlwDg0Bwvr/w="; + fetchSubmodules = true; + }; + nativeBuildInputs = with pkgs; [ cmake pkg-config libsForQt5.qt5.wrapQtAppsHook ]; + buildInputs = with pkgs; [ libsForQt5.qt5.qtbase libsForQt5.qt5.qtsvg libsForQt5.qt5.qtmultimedia libsForQt5.qt5.qtimageformats libsForQt5.qt5.qttools boost openssl libsecret ]; + configurationPhase = '' + mkdir build && cd build + cmake .. + ''; + buildPhase = '' + make + ''; + installPhase = '' + mkdir -p "$out/bin" + mv "bin/chatterino" "$out/bin" + '' + '' + mkdir -p $out/share/icons/hicolor/256x256/apps + cp $src/resources/icon.png $out/share/icons/hicolor/256x256/apps/chatterino.png + ''; +} \ No newline at end of file diff --git a/pkgs/default.nix b/pkgs/default.nix index 7245960..e69de29 100644 --- a/pkgs/default.nix +++ b/pkgs/default.nix @@ -1,3 +0,0 @@ -{ pkgs ? (import ../nixpkgs.nix) { } }: { - -}