mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 00:43:56 -05:00
nifty import functions
This commit is contained in:
parent
9c85859e1f
commit
977d1ad6d2
17 changed files with 28 additions and 84 deletions
51
pkgs/afk-cmds/afk-cmds.nix
Normal file
51
pkgs/afk-cmds/afk-cmds.nix
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
{
|
||||
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=";
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue