nixpkgs-suyu/pkgs/tools/system/nq/default.nix
Silvan Mosberger f5fa5fa4d6 pkgs: refactor needless quoting of homepage meta attribute (#27809)
* pkgs: refactor needless quoting of homepage meta attribute

A lot of packages are needlessly quoting the homepage meta attribute
(about 1400, 22%), this commit refactors all of those instances.

* pkgs: Fixing some links that were wrongfully unquoted in the previous
commit

* Fixed some instances
2017-08-01 22:03:30 +02:00

25 lines
672 B
Nix

{ stdenv, lib, fetchFromGitHub }:
stdenv.mkDerivation rec {
name = "nq-${version}";
version = "0.1";
src = fetchFromGitHub {
owner = "chneukirchen";
repo = "nq";
rev = "v${version}";
sha256 = "17n0yqhpsys3s872ki5rf82ky73ylahz6xi9x0rfrv7fqr5nzsz4";
};
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 ];
};
}