nixpkgs/pkgs/tools/system/nq/default.nix
Ryan Mulligan 29e318a86f nq: 0.1 -> 0.2.2
Semi-automatic update. These checks were performed:

- built on NixOS
- ran `/nix/store/gfc63cqbz4z2fr3isin4lnchlgh0kwfm-nq-0.2.2/bin/nq help` got 0 exit code
- ran `/nix/store/gfc63cqbz4z2fr3isin4lnchlgh0kwfm-nq-0.2.2/bin/fq help` got 0 exit code
- ran `/nix/store/gfc63cqbz4z2fr3isin4lnchlgh0kwfm-nq-0.2.2/bin/tq help` got 0 exit code
- found 0.2.2 with grep in /nix/store/gfc63cqbz4z2fr3isin4lnchlgh0kwfm-nq-0.2.2
- found 0.2.2 in filename of file in /nix/store/gfc63cqbz4z2fr3isin4lnchlgh0kwfm-nq-0.2.2

cc "@cstrahan"
2018-02-27 08:11:44 -08:00

25 lines
674 B
Nix

{ stdenv, lib, fetchFromGitHub }:
stdenv.mkDerivation rec {
name = "nq-${version}";
version = "0.2.2";
src = fetchFromGitHub {
owner = "chneukirchen";
repo = "nq";
rev = "v${version}";
sha256 = "0348r3j5y445psm8lj35z100cfvbfp05s7ji6bxd0gg4n66l2c4l";
};
makeFlags = "PREFIX=$(out)";
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";
homepage = https://github.com/chneukirchen/nq;
license = licenses.publicDomain;
platforms = platforms.linux;
maintainers = with maintainers; [ cstrahan ];
};
}