nixpkgs/pkgs/tools/system/nq/default.nix

26 lines
665 B
Nix
Raw Normal View History

{ stdenv, lib, fetchFromGitHub }:
stdenv.mkDerivation rec {
pname = "nq";
2022-03-30 14:08:35 +00:00
version = "0.5";
src = fetchFromGitHub {
owner = "chneukirchen";
repo = "nq";
rev = "v${version}";
2022-03-30 14:08:35 +00:00
sha256 = "sha256-g14t2Wy2GwiqnfEDiLAPGehzUgK6mLC+5PAZynez62s=";
};
makeFlags = [ "PREFIX=$(out)" ];
postPatch = ''
sed -i tq \
2021-05-27 10:41:37 +00:00
-e 's|\bnq\b|'$out'/bin/nq|g' \
-e 's|\bfq\b|'$out'/bin/fq|g'
'';
meta = with lib; {
description = "Unix command line queue utility";
homepage = "https://github.com/chneukirchen/nq";
license = licenses.publicDomain;
platforms = platforms.all;
maintainers = with maintainers; [ cstrahan ];
};
}