diff options
author | Joachim Fasting <joachifm@fastmail.fm> | 2015-04-20 12:05:04 +0200 |
---|---|---|
committer | Joachim Fasting <joachifm@fastmail.fm> | 2015-11-24 14:45:15 +0100 |
commit | 6812c1eedc1146cf32ad2ef2cd2c4248b8548df3 (patch) | |
tree | d136bfee7cd23f44d027e841ccca55de95be7113 /pkgs/tools/networking/tftp-hpa | |
parent | 5ddd4812a906aba4294c14c03672a2f7b7268c94 (diff) | |
download | nixlib-6812c1eedc1146cf32ad2ef2cd2c4248b8548df3.tar nixlib-6812c1eedc1146cf32ad2ef2cd2c4248b8548df3.tar.gz nixlib-6812c1eedc1146cf32ad2ef2cd2c4248b8548df3.tar.bz2 nixlib-6812c1eedc1146cf32ad2ef2cd2c4248b8548df3.tar.lz nixlib-6812c1eedc1146cf32ad2ef2cd2c4248b8548df3.tar.xz nixlib-6812c1eedc1146cf32ad2ef2cd2c4248b8548df3.tar.zst nixlib-6812c1eedc1146cf32ad2ef2cd2c4248b8548df3.zip |
tftp-hpa: reimplement using mkDerivation
Also rename top-level name to tftp-hpa.
Diffstat (limited to 'pkgs/tools/networking/tftp-hpa')
-rw-r--r-- | pkgs/tools/networking/tftp-hpa/default.nix | 52 |
1 files changed, 14 insertions, 38 deletions
diff --git a/pkgs/tools/networking/tftp-hpa/default.nix b/pkgs/tools/networking/tftp-hpa/default.nix index c88b0b2dbe33..57dd43cbb444 100644 --- a/pkgs/tools/networking/tftp-hpa/default.nix +++ b/pkgs/tools/networking/tftp-hpa/default.nix @@ -1,48 +1,24 @@ -x@{builderDefsPackage - , tcp_wrappers - , ...}: -builderDefsPackage -(a : -let - helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++ - []; +{ stdenv, fetchurl, tcp_wrappers }: - buildInputs = map (n: builtins.getAttr n x) - (builtins.attrNames (builtins.removeAttrs x helperArgNames)); - sourceInfo = rec { - baseName="tftp-hpa"; - version="5.2"; - name="${baseName}-${version}"; - url="mirror://kernel/software/network/tftp/tftp-hpa/${name}.tar.xz"; - hash="afee361df96a2f88344e191f6a25480fd714e1d28d176c3f10cc43fa206b718b"; +stdenv.mkDerivation rec { + name = "tftp-hpa-${version}"; + version="5.2"; + src = fetchurl { + url = "mirror://kernel/software/network/tftp/tftp-hpa/${name}.tar.xz"; + sha256 = "12vidchglhyc20znq5wdsbhi9mqg90jnl7qr9qs8hbvaz4fkdvmg"; }; -in -rec { - src = a.fetchurl { - url = sourceInfo.url; - sha256 = sourceInfo.hash; - }; - - inherit (sourceInfo) name version; - inherit buildInputs; - /* doConfigure should be removed if not needed */ - phaseNames = ["doConfigure" "doMakeInstall"]; - - meta = { + meta = with stdenv.lib; { description = "TFTP tools - a lot of fixes on top of BSD TFTP"; - maintainers = with a.lib.maintainers; - [ - raskin - ]; - platforms = with a.lib.platforms; - linux; - license = a.lib.licenses.bsd3; + maintainers = with maintainers; [ raskin ]; + platforms = with platforms; linux; + license = licenses.bsd3; + homepage = http://www.kernel.org/pub/software/network/tftp/; }; + passthru = { updateInfo = { downloadPage = "http://www.kernel.org/pub/software/network/tftp/"; }; }; -}) x - +} |