tftp-hpa: reimplement using mkDerivation
Also rename top-level name to tftp-hpa.
This commit is contained in:
parent
5ddd4812a9
commit
6812c1eedc
|
@ -1,48 +1,24 @@
|
||||||
x@{builderDefsPackage
|
{ stdenv, fetchurl, tcp_wrappers }:
|
||||||
, tcp_wrappers
|
|
||||||
, ...}:
|
|
||||||
builderDefsPackage
|
|
||||||
(a :
|
|
||||||
let
|
|
||||||
helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++
|
|
||||||
[];
|
|
||||||
|
|
||||||
buildInputs = map (n: builtins.getAttr n x)
|
stdenv.mkDerivation rec {
|
||||||
(builtins.attrNames (builtins.removeAttrs x helperArgNames));
|
name = "tftp-hpa-${version}";
|
||||||
sourceInfo = rec {
|
version="5.2";
|
||||||
baseName="tftp-hpa";
|
src = fetchurl {
|
||||||
version="5.2";
|
url = "mirror://kernel/software/network/tftp/tftp-hpa/${name}.tar.xz";
|
||||||
name="${baseName}-${version}";
|
sha256 = "12vidchglhyc20znq5wdsbhi9mqg90jnl7qr9qs8hbvaz4fkdvmg";
|
||||||
url="mirror://kernel/software/network/tftp/tftp-hpa/${name}.tar.xz";
|
|
||||||
hash="afee361df96a2f88344e191f6a25480fd714e1d28d176c3f10cc43fa206b718b";
|
|
||||||
};
|
|
||||||
in
|
|
||||||
rec {
|
|
||||||
src = a.fetchurl {
|
|
||||||
url = sourceInfo.url;
|
|
||||||
sha256 = sourceInfo.hash;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
inherit (sourceInfo) name version;
|
meta = with stdenv.lib; {
|
||||||
inherit buildInputs;
|
|
||||||
|
|
||||||
/* doConfigure should be removed if not needed */
|
|
||||||
phaseNames = ["doConfigure" "doMakeInstall"];
|
|
||||||
|
|
||||||
meta = {
|
|
||||||
description = "TFTP tools - a lot of fixes on top of BSD TFTP";
|
description = "TFTP tools - a lot of fixes on top of BSD TFTP";
|
||||||
maintainers = with a.lib.maintainers;
|
maintainers = with maintainers; [ raskin ];
|
||||||
[
|
platforms = with platforms; linux;
|
||||||
raskin
|
license = licenses.bsd3;
|
||||||
];
|
homepage = http://www.kernel.org/pub/software/network/tftp/;
|
||||||
platforms = with a.lib.platforms;
|
|
||||||
linux;
|
|
||||||
license = a.lib.licenses.bsd3;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
passthru = {
|
passthru = {
|
||||||
updateInfo = {
|
updateInfo = {
|
||||||
downloadPage = "http://www.kernel.org/pub/software/network/tftp/";
|
downloadPage = "http://www.kernel.org/pub/software/network/tftp/";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}) x
|
}
|
||||||
|
|
||||||
|
|
|
@ -3393,7 +3393,7 @@ let
|
||||||
|
|
||||||
rcm = callPackage ../tools/misc/rcm {};
|
rcm = callPackage ../tools/misc/rcm {};
|
||||||
|
|
||||||
tftp_hpa = callPackage ../tools/networking/tftp-hpa {};
|
tftp-hpa = callPackage ../tools/networking/tftp-hpa {};
|
||||||
|
|
||||||
tidy-html5 = callPackage ../tools/text/tidy-html5 { };
|
tidy-html5 = callPackage ../tools/text/tidy-html5 { };
|
||||||
|
|
||||||
|
@ -6354,7 +6354,9 @@ let
|
||||||
|
|
||||||
freeglut = callPackage ../development/libraries/freeglut { };
|
freeglut = callPackage ../development/libraries/freeglut { };
|
||||||
|
|
||||||
freenect = callPackage ../development/libraries/freenect { };
|
freenect = callPackage ../development/libraries/freenect {
|
||||||
|
inherit (xlibs) libXi libXmu;
|
||||||
|
};
|
||||||
|
|
||||||
freetype = callPackage ../development/libraries/freetype { };
|
freetype = callPackage ../development/libraries/freetype { };
|
||||||
|
|
||||||
|
@ -15604,6 +15606,7 @@ aliases = with self; rec {
|
||||||
youtube-dl = pythonPackages.youtube-dl; # added 2015-06-07
|
youtube-dl = pythonPackages.youtube-dl; # added 2015-06-07
|
||||||
youtubeDL = youtube-dl; # added 2014-10-26
|
youtubeDL = youtube-dl; # added 2014-10-26
|
||||||
pidginlatexSF = pidginlatex; # added 2014-11-02
|
pidginlatexSF = pidginlatex; # added 2014-11-02
|
||||||
|
tftp_hpa = tftp-hpa; # added 2015-04-03
|
||||||
};
|
};
|
||||||
|
|
||||||
tweakAlias = _n: alias: with lib;
|
tweakAlias = _n: alias: with lib;
|
||||||
|
|
Loading…
Reference in New Issue