Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
60 lines
1.1 KiB
Nix
60 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
makeWrapper,
|
|
libnotify,
|
|
slop,
|
|
ffcast,
|
|
ffmpeg,
|
|
xclip,
|
|
rofi,
|
|
coreutils,
|
|
gnused,
|
|
procps,
|
|
}:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "rofi-screenshot";
|
|
version = "2024-09-27";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ceuk";
|
|
repo = "rofi-screenshot";
|
|
rev = "09a07d9c2ff2efbf75b1753bb412f4f8f086708f";
|
|
hash = "sha256-3UpYdXAX3LD1ZAQ429JkzWWooiBpuf/uPf0CRh5EXd8=";
|
|
};
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
postFixup = ''
|
|
wrapProgram $out/bin/rofi-screenshot \
|
|
--set PATH ${
|
|
lib.makeBinPath [
|
|
libnotify
|
|
slop
|
|
ffcast
|
|
ffmpeg
|
|
xclip
|
|
rofi
|
|
coreutils
|
|
gnused
|
|
procps
|
|
]
|
|
}
|
|
'';
|
|
|
|
installPhase = ''
|
|
install -Dm755 rofi-screenshot $out/bin/rofi-screenshot
|
|
'';
|
|
|
|
meta = {
|
|
description = "Use rofi to perform various types of screenshots and screen captures";
|
|
mainProgram = "rofi-screenshot";
|
|
homepage = "https://github.com/ceuk/rofi-screenshot";
|
|
maintainers = with lib.maintainers; [ zopieux ];
|
|
platforms = lib.platforms.all;
|
|
license = lib.licenses.wtfpl;
|
|
};
|
|
}
|