2016-02-08 22:28:24 +00:00
|
|
|
{ stdenv, lib, fetchFromGitHub }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "nq";
|
2021-03-18 18:15:37 +00:00
|
|
|
version = "0.4";
|
2016-02-08 22:28:24 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "chneukirchen";
|
|
|
|
repo = "nq";
|
|
|
|
rev = "v${version}";
|
2021-03-18 18:15:37 +00:00
|
|
|
sha256 = "sha256-UfCeHwOD+tG6X2obW64DYZr6j90yh1Yl7My4ur+sqmk=";
|
2016-02-08 22:28:24 +00:00
|
|
|
};
|
2019-10-27 13:03:25 +00:00
|
|
|
makeFlags = [ "PREFIX=$(out)" ];
|
2016-02-08 22:28:24 +00:00
|
|
|
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'
|
2016-02-08 22:28:24 +00:00
|
|
|
'';
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Unix command line queue utility";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/chneukirchen/nq";
|
2016-02-08 22:28:24 +00:00
|
|
|
license = licenses.publicDomain;
|
2021-01-28 14:18:15 +00:00
|
|
|
platforms = platforms.all;
|
2016-02-08 22:28:24 +00:00
|
|
|
maintainers = with maintainers; [ cstrahan ];
|
|
|
|
};
|
|
|
|
}
|