diff options
author | Alexandre Macabies <web+oss@zopieux.com> | 2023-06-23 19:42:19 +0200 |
---|---|---|
committer | Alexandre Macabies <web+oss@zopieux.com> | 2023-07-04 22:01:00 +0200 |
commit | fa2f58df64816bed16a595ff717614d71e4557b1 (patch) | |
tree | 014c64df231456638c5d1a0892fd66ddcb3b1417 | |
parent | 285970b8a03c54102feaf000baea51b4d350f96f (diff) |
rofi-screenshot: init at 2023-07-02
-rw-r--r-- | pkgs/applications/misc/rofi-screenshot/default.nix | 58 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 2 |
2 files changed, 60 insertions, 0 deletions
diff --git a/pkgs/applications/misc/rofi-screenshot/default.nix b/pkgs/applications/misc/rofi-screenshot/default.nix new file mode 100644 index 0000000000000..fedb03fa613d6 --- /dev/null +++ b/pkgs/applications/misc/rofi-screenshot/default.nix @@ -0,0 +1,58 @@ +{ lib +, stdenv +, fetchFromGitHub +, makeWrapper +, libnotify +, slop +, ffcast +, ffmpeg +, xclip +, rofi +, coreutils +, gnused +, procps +}: + +stdenv.mkDerivation rec { + pname = "rofi-screenshot"; + version = "2023-07-02"; + + src = fetchFromGitHub { + owner = "ceuk"; + repo = pname; + rev = "365cfa51c6c7deb072d98d7bfd68cf4038bf2737"; + hash = "sha256-M1cab+2pOjZ2dElMg0Y0ZrIxRE0VwymVwcElgzFrmVs="; + }; + + nativeBuildInputs = [ makeWrapper ]; + + postFixup = '' + wrapProgram $out/bin/${pname} \ + --set PATH ${ + lib.makeBinPath [ + libnotify + slop + ffcast + ffmpeg + xclip + rofi + coreutils + gnused + procps + ] + } + ''; + + installPhase = '' + install -Dm755 ${pname} $out/bin/${pname} + ''; + + meta = { + description = + "Use rofi to perform various types of screenshots and screen captures"; + homepage = "https://github.com/ceuk/rofi-screenshot"; + maintainers = with lib.maintainers; [ zopieux ]; + platforms = lib.platforms.all; + license = lib.licenses.wtfpl; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index a119d3dad7d37..9fb508da85c1a 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -32744,6 +32744,8 @@ with pkgs; rofi-rbw = python3Packages.callPackage ../applications/misc/rofi-rbw { }; + rofi-screenshot = callPackage ../applications/misc/rofi-screenshot { }; + rofi-top = callPackage ../applications/misc/rofi-top { }; rofi-vpn = callPackage ../applications/networking/rofi-vpn { }; |