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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

26 lines
665 B
Nix
Raw Normal View History

{ stdenv, lib, fetchFromGitHub }:
stdenv.mkDerivation rec {
pname = "nq";
2021-03-18 19:15:37 +01:00
version = "0.4";
src = fetchFromGitHub {
owner = "chneukirchen";
repo = "nq";
rev = "v${version}";
2021-03-18 19:15:37 +01:00
sha256 = "sha256-UfCeHwOD+tG6X2obW64DYZr6j90yh1Yl7My4ur+sqmk=";
};
makeFlags = [ "PREFIX=$(out)" ];
postPatch = ''
sed -i tq \
2021-05-27 12:41:37 +02: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 ];
};
}