mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 00:43:56 -05:00
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
51 lines
977 B
Nix
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=";
|
|
}
|