Skip to content

Commit

Permalink
grimblast: refactor default.nix
Browse files Browse the repository at this point in the history
  • Loading branch information
fufexan committed Sep 23, 2023
1 parent 5b67181 commit 33663f6
Showing 1 changed file with 19 additions and 12 deletions.
31 changes: 19 additions & 12 deletions grimblast/default.nix
Original file line number Diff line number Diff line change
@@ -1,43 +1,50 @@
{
lib,
stdenvNoCC,
coreutils,
scdoc,
makeWrapper,
wl-clipboard,
libnotify,
slurp,
scdoc,
coreutils,
grim,
jq,
bash,
libnotify,
slurp,
wl-clipboard,
hyprland ? null,
}:
stdenvNoCC.mkDerivation {
pname = "grimblast";
version = "0.1";

src = ./.;

buildInputs = [bash scdoc];
nativeBuildInputs = [
makeWrapper
];

buildInputs = [
scdoc
];

makeFlags = ["PREFIX=$(out)"];
nativeBuildInputs = [makeWrapper];

postInstall = ''
wrapProgram $out/bin/grimblast --prefix PATH ':' \
"${lib.makeBinPath ([
wl-clipboard
coreutils
libnotify
slurp
grim
jq
libnotify
slurp
wl-clipboard
]
++ lib.optional (hyprland != null) hyprland)}"
'';

meta = with lib; {
description = "A helper for screenshots within hyprland, based on grimshot";
description = "A helper for screenshots within Hyprland, based on grimshot";
license = licenses.mit;
platforms = platforms.unix;
maintainers = with maintainers; [misterio77];
mainProgram = "grimblast";
};
}

0 comments on commit 33663f6

Please sign in to comment.