nur-packages

My NUR packages
git clone git://git.sikmir.ru/nur-packages
Log | Files | Refs | README | LICENSE

commit e706a66ba70821fb9016a42900384e918493ae2b
parent 67a8218d4f823b32ef6be333795e833bbf6f2c98
Author: Nikolay Korotkiy <sikmir@gmail.com>
Date:   Wed, 17 Nov 2021 19:41:57 +0300

Add ffshot

Diffstat:
Mpkgs/default.nix | 1+
Apkgs/suckless/ffshot/default.nix | 26++++++++++++++++++++++++++
2 files changed, 27 insertions(+), 0 deletions(-)

diff --git a/pkgs/default.nix b/pkgs/default.nix @@ -344,6 +344,7 @@ lib.makeScope newScope ( chibicc = callPackage ./suckless/chibicc { }; cproc = callPackage ./suckless/cproc { }; farbfeld-utils = callPackage ./suckless/farbfeld-utils { }; + ffshot = callPackage ./suckless/ffshot { }; hurl = callPackage ./suckless/hurl { }; imscript = callPackage ./suckless/imscript { }; json2tsv = callPackage ./suckless/json2tsv { }; diff --git a/pkgs/suckless/ffshot/default.nix b/pkgs/suckless/ffshot/default.nix @@ -0,0 +1,26 @@ +{ lib, stdenv, fetchFromGitHub, xorg }: + +stdenv.mkDerivation rec { + pname = "ffshot"; + version = "2020-05-16"; + + src = fetchFromGitHub { + owner = "shinyblink"; + repo = pname; + rev = "853b1eb3181affde1b56d6e364fe201f8260d0d0"; + hash = "sha256-sSIpo0JJqJL8BbWDphAEosyfppFd6P+P+vGrA5m1gV8="; + }; + + buildInputs = [ xorg.xcbutil xorg.xcbutilimage ]; + + installFlags = [ "PREFIX=$(out)" ]; + + meta = with lib; { + description = "farbfeld screenshot utility"; + inherit (src.meta) homepage; + license = licenses.isc; + maintainers = [ maintainers.sikmir ]; + platforms = platforms.linux; + skip.ci = stdenv.isDarwin; + }; +}