summary refs log tree commit diff
path: root/pkgs/build-support/builder-defs/template-bdp-uud.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/build-support/builder-defs/template-bdp-uud.nix')
-rw-r--r--pkgs/build-support/builder-defs/template-bdp-uud.nix12
1 files changed, 3 insertions, 9 deletions
diff --git a/pkgs/build-support/builder-defs/template-bdp-uud.nix b/pkgs/build-support/builder-defs/template-bdp-uud.nix
index 46d2da40a70..a84239f62d5 100644
--- a/pkgs/build-support/builder-defs/template-bdp-uud.nix
+++ b/pkgs/build-support/builder-defs/template-bdp-uud.nix
@@ -1,26 +1,20 @@
 a :  
 let 
-  fetchurl = a.fetchurl;
-  s = import ./src-info-for-default.nix;
-
-  version = a.lib.attrByPath ["version"] s.version a; 
+  s = import ./src-for-default.nix;
   buildInputs = with a; [
     
   ];
 in
 rec {
-  src = fetchurl {
-    url = s.url;
-    sha256 = s.hash;
-  };
+  src = a.fetchUrlFromSrcInfo s;
 
+  inherit (s) name;
   inherit buildInputs;
   configureFlags = [];
 
   /* doConfigure should be removed if not needed */
   phaseNames = ["doConfigure" "doMakeInstall"];
       
-  name = "${abort "Specify name"}-" + version;
   meta = {
     description = "${abort "Specify description"}";
     maintainers = [