Merge pull request #99304 from woffs/nncp-5.4.0

nncp: 5.3.3 -> 6.2.0
This commit is contained in:
Doron Behar 2021-03-19 11:22:51 +00:00 committed by GitHub
commit 22710a0bc5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,7 @@
{ lib, stdenv
, go
, fetchurl
, redo-apenwarr
, curl
, perl
, genericUpdater
@ -9,24 +10,33 @@
stdenv.mkDerivation rec {
pname = "nncp";
version = "5.3.3";
version = "6.2.0";
src = fetchurl {
url = "http://www.nncpgo.org/download/${pname}-${version}.tar.xz";
sha256 = "1l35ndzrvpfim29jn1p0bwmc8w892z44nsrdnay28k229r9dhz3h";
sha256 = "1zj0v82zqigcxhpc50mvafvi1ihs92ck35vjfrwb7wzzd7nysb17";
};
nativeBuildInputs = [ go ];
nativeBuildInputs = [ go redo-apenwarr ];
preConfigure = ''
buildPhase = ''
runHook preBuild
export GOCACHE=$PWD/.cache
export CFGPATH=/etc/nncp.hjson
export SENDMAIL=sendmail # default value for generated config file
redo ''${enableParallelBuilding:+-j''${NIX_BUILD_CORES}}
runHook postBuild
'';
makeFlags = [
"PREFIX=${placeholder "out"}"
"CFGPATH=/etc/nncp.hjson"
"SENDMAIL=/run/wrappers/bin/sendmail"
];
installPhase = ''
runHook preInstall
export PREFIX=$out
rm -f INSTALL # work around case insensitivity
redo install
runHook postInstall
'';
enableParallelBuilding = true;
passthru.updateScript = genericUpdater {
inherit pname version;
@ -54,7 +64,7 @@ stdenv.mkDerivation rec {
transmission exists.
'';
homepage = "http://www.nncpgo.org/";
license = licenses.gpl3;
license = licenses.gpl3Only;
platforms = platforms.all;
maintainers = [ maintainers.woffs ];
};