summary refs log tree commit diff
path: root/pkgs/tools/networking/netboot
diff options
context:
space:
mode:
authorDomen Kožar <domen@dev.si>2014-08-26 12:11:22 +0200
committerDomen Kožar <domen@dev.si>2014-08-26 12:11:31 +0200
commit7573763e8972040ea68370bc6e992b1f3f184c2e (patch)
treee20c83a3c19ae172964274bd1a7c53df011804dd /pkgs/tools/networking/netboot
parentf84c121e5e8c049dc06ff4327305cbfddcf6810d (diff)
downloadnixpkgs-7573763e8972040ea68370bc6e992b1f3f184c2e.tar
nixpkgs-7573763e8972040ea68370bc6e992b1f3f184c2e.tar.gz
nixpkgs-7573763e8972040ea68370bc6e992b1f3f184c2e.tar.bz2
nixpkgs-7573763e8972040ea68370bc6e992b1f3f184c2e.tar.lz
nixpkgs-7573763e8972040ea68370bc6e992b1f3f184c2e.tar.xz
nixpkgs-7573763e8972040ea68370bc6e992b1f3f184c2e.tar.zst
nixpkgs-7573763e8972040ea68370bc6e992b1f3f184c2e.zip
netboot: simplify, build only on 64bit
Diffstat (limited to 'pkgs/tools/networking/netboot')
-rw-r--r--pkgs/tools/networking/netboot/default.nix53
1 files changed, 12 insertions, 41 deletions
diff --git a/pkgs/tools/networking/netboot/default.nix b/pkgs/tools/networking/netboot/default.nix
index ec49770d269..dbf393094c8 100644
--- a/pkgs/tools/networking/netboot/default.nix
+++ b/pkgs/tools/networking/netboot/default.nix
@@ -1,47 +1,18 @@
-x@{builderDefsPackage
-  , fetchurl, yacc, bison, ...}:
-builderDefsPackage
-(a :
-let
-  helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++
-    [];
+{ stdenv, fetchurl, yacc, lzo, db4 }:
 
-  buildInputs = map (n: builtins.getAttr n x)
-    (builtins.attrNames (builtins.removeAttrs x helperArgNames));
-  sourceInfo = rec {
-    version="0.10.2";
-    baseName="netboot";
-    name="${baseName}-${version}";
-    url="mirror://sourceforge/netboot/${name}.tar.gz";
-    hash="09w09bvwgb0xzn8hjz5rhi3aibysdadbg693ahn8rylnqfq4hwg0";
+stdenv.mkDerivation rec {
+  name = "netboot-0.10.2";
+  src = fetchurl {
+    url = "mirror://sourceforge/netboot/${name}.tar.gz";
+    sha256 = "09w09bvwgb0xzn8hjz5rhi3aibysdadbg693ahn8rylnqfq4hwg0";
   };
-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 = ["doUnpack" "doConfigure" "doMakeInstall"];
+  
+  buildInputs = [ yacc lzo db4 ];
 
-  meta = {
+  meta = with stdenv.lib; {
     description = "Mini PXE server";
-    maintainers = with a.lib.maintainers;
-    [
-      raskin
-    ];
-    platforms = with a.lib.platforms;
-      linux;
+    maintainers = [ maintainers.raskin ];
+    platforms = ["x86_64-linux"];
     license = "free-noncopyleft";
   };
-  passthru = {
-    updateInfo = {
-      downloadPage = "https://github.com/ITikhonov/netboot";
-    };
-  };
-}) x
-
+}
\ No newline at end of file