commit
22710a0bc5
@ -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 ];
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user