summary refs log tree commit diff
path: root/pkgs/tools/networking/tftp-hpa/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/tools/networking/tftp-hpa/default.nix')
-rw-r--r--pkgs/tools/networking/tftp-hpa/default.nix48
1 files changed, 48 insertions, 0 deletions
diff --git a/pkgs/tools/networking/tftp-hpa/default.nix b/pkgs/tools/networking/tftp-hpa/default.nix
new file mode 100644
index 0000000000000..95420b48a301a
--- /dev/null
+++ b/pkgs/tools/networking/tftp-hpa/default.nix
@@ -0,0 +1,48 @@
+x@{builderDefsPackage
+  , tcp_wrappers
+  , ...}:
+builderDefsPackage
+(a :  
+let 
+  helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++ 
+    [];
+
+  buildInputs = map (n: builtins.getAttr n x)
+    (builtins.attrNames (builtins.removeAttrs x helperArgNames));
+  sourceInfo = rec {
+    baseName="tftp-hpa";
+    version="5.1";
+    name="${baseName}-${version}";
+    url="mirror://kernel/software/network/tftp/${name}.tar.bz2";
+    hash="0k72s0c7wm4fyb6lqfypdkcy6rimanr49slimx8p0di69w394gzx";
+  };
+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 = {
+    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;
+  };
+  passthru = {
+    updateInfo = {
+      downloadPage = "http://www.kernel.org/pub/software/network/tftp/";
+    };
+  };
+}) x
+