mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-16 02:33:25 +00:00
755b915a15
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
62 lines
1.1 KiB
Nix
62 lines
1.1 KiB
Nix
{ lib
|
|
, stdenvNoCC
|
|
, fetchFromGitHub
|
|
, makeWrapper
|
|
, scdoc
|
|
, coreutils
|
|
, grim
|
|
, hyprland
|
|
, hyprpicker
|
|
, jq
|
|
, libnotify
|
|
, slurp
|
|
, wl-clipboard
|
|
}:
|
|
|
|
stdenvNoCC.mkDerivation (finalAttrs: {
|
|
pname = "grimblast";
|
|
version = "unstable-2024-01-11";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "hyprwm";
|
|
repo = "contrib";
|
|
rev = "89c56351e48785070b60e224ea1717ac50c3befb";
|
|
hash = "sha256-EjdQsk5VIQs7INBugbgX1I9Q3kPAOZSwkXXqEjZL0E0=";
|
|
};
|
|
|
|
strictDeps = true;
|
|
|
|
nativeBuildInputs = [
|
|
makeWrapper
|
|
scdoc
|
|
];
|
|
|
|
makeFlags = [
|
|
"PREFIX=$(out)"
|
|
];
|
|
|
|
sourceRoot = "${finalAttrs.src.name}/grimblast";
|
|
|
|
postInstall = ''
|
|
wrapProgram $out/bin/grimblast --prefix PATH ':' \
|
|
"${lib.makeBinPath [
|
|
coreutils
|
|
grim
|
|
hyprland
|
|
hyprpicker
|
|
jq
|
|
libnotify
|
|
slurp
|
|
wl-clipboard
|
|
]}"
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Helper for screenshots within Hyprland, based on grimshot";
|
|
license = licenses.mit;
|
|
platforms = platforms.unix;
|
|
maintainers = with maintainers; [ donovanglover ];
|
|
mainProgram = "grimblast";
|
|
};
|
|
})
|