2016-02-08 22:28:24 +00:00
|
|
|
{ stdenv, lib, fetchFromGitHub }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "nq";
|
2018-03-17 08:47:30 +00:00
|
|
|
version = "0.3.1";
|
2016-02-08 22:28:24 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "chneukirchen";
|
|
|
|
repo = "nq";
|
|
|
|
rev = "v${version}";
|
2018-03-17 08:47:30 +00:00
|
|
|
sha256 = "1db96ykz35r273jyhf7cdknqk4p2jj9l8gbz7pjy1hq4pb6ffk99";
|
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 \
|
|
|
|
-e 's|\bfq\b|'$out'/bin/fq|g' \
|
|
|
|
-e 's|\bnq\b|'$out'/bin/nq|g'
|
|
|
|
'';
|
|
|
|
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;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ cstrahan ];
|
|
|
|
};
|
|
|
|
}
|