2020-04-24 23:36:52 +00:00
|
|
|
{ stdenv, lib, fetchFromGitHub }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "nq";
|
2022-04-27 09:35:20 +00:00
|
|
|
version = "0.5";
|
2020-04-24 23:36:52 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "chneukirchen";
|
|
|
|
repo = "nq";
|
|
|
|
rev = "v${version}";
|
2022-04-27 09:35:20 +00:00
|
|
|
sha256 = "sha256-g14t2Wy2GwiqnfEDiLAPGehzUgK6mLC+5PAZynez62s=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
makeFlags = [ "PREFIX=$(out)" ];
|
|
|
|
postPatch = ''
|
|
|
|
sed -i tq \
|
2021-05-29 03:34:57 +00:00
|
|
|
-e 's|\bnq\b|'$out'/bin/nq|g' \
|
|
|
|
-e 's|\bfq\b|'$out'/bin/fq|g'
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Unix command line queue utility";
|
|
|
|
homepage = "https://github.com/chneukirchen/nq";
|
|
|
|
license = licenses.publicDomain;
|
2021-02-05 17:12:51 +00:00
|
|
|
platforms = platforms.all;
|
2023-10-09 19:29:22 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|