nixos/pkgs/afk-cmds/default.nix
Gerg-L dc2db4a9bc realized I was inheriting nipkgs in my nixosSystems
added ways to use different branches of nixpkgs
made unfree packages have to specified
switched to nix master branch
moved sxhkd from a seperate flake
switched spotify and maim versions because both are broken on nixos-unstable right now
moved afk-cmds from local to remote
added flake-utils for easier devShell decleration
switched my mom's laptop to stable branch
2023-02-15 19:39:26 -05:00

51 lines
977 B
Nix

{
lib,
rustPlatform,
wrapGAppsHook,
libX11,
libXScrnSaver,
pkg-config,
cairo,
glib,
gdk-pixbuf,
gtkmm3,
pango,
libappindicator-gtk3,
atk,
fetchFromGitHub,
}:
rustPlatform.buildRustPackage rec {
name = "afk-cmds";
src = fetchFromGitHub {
owner = "Gerg-L";
repo = "afk-cmds";
rev = "b345d5a038a86c6ca31d3bd8800ac759da912a22";
sha256 = "sha256-yleq8bg3ZnilbYTNXRteBALiJ/fIXOxXxqf966OokqQ=";
};
buildInputs = [
libX11
libXScrnSaver
cairo
glib
gdk-pixbuf
gtkmm3
pango
libappindicator-gtk3
atk
];
nativeBuildInputs = [
pkg-config
wrapGAppsHook
];
postFixup = ''
wrapProgram $out/bin/afk-cmds \
--prefix LD_LIBRARY_PATH : ${(lib.makeLibraryPath buildInputs)}
mkdir -p $out/share/icons/hicolor/256x256/apps/
cp $src/afk-icon.png $out/share/icons/hicolor/256x256/apps/afk-icon.png
'';
cargoSha256 = "sha256-CPpFUdgb0zTZAVlv4uhJ0Y7eocCjuEZNgQJdNwV1FI4=";
}