Author: raskin
Date: Sat Jan  1 20:28:38 2011
New Revision: 25331
URL: https://svn.nixos.org/websvn/nix/?rev=25331&sc=1

Log:
Adding ised

Added:
   nixpkgs/trunk/pkgs/tools/misc/ised/
   nixpkgs/trunk/pkgs/tools/misc/ised/default.nix
Modified:
   nixpkgs/trunk/pkgs/build-support/builder-defs/template-auto-callable.nix
   nixpkgs/trunk/pkgs/top-level/all-packages.nix

Modified: 
nixpkgs/trunk/pkgs/build-support/builder-defs/template-auto-callable.nix
==============================================================================
--- nixpkgs/trunk/pkgs/build-support/builder-defs/template-auto-callable.nix    
Sat Jan  1 17:26:07 2011        (r25330)
+++ nixpkgs/trunk/pkgs/build-support/builder-defs/template-auto-callable.nix    
Sat Jan  1 20:28:38 2011        (r25331)
@@ -37,7 +37,7 @@
     ];
     platforms = with a.lib.platforms;
       (abort "Specify platforms");
-    license = "${abort ''Specify license''}";
+    license = a.lib.licenses.(abort "Specify license");
   };
   passthru = {
     updateInfo = {

Added: nixpkgs/trunk/pkgs/tools/misc/ised/default.nix
==============================================================================
--- /dev/null   00:00:00 1970   (empty, because file is newly added)
+++ nixpkgs/trunk/pkgs/tools/misc/ised/default.nix      Sat Jan  1 20:28:38 
2011        (r25331)
@@ -0,0 +1,47 @@
+...@{builderdefspackage
+  , ...}:
+builderDefsPackage
+(a :  
+let 
+  helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++ 
+    [];
+
+  buildInputs = map (n: builtins.getAttr n x)
+    (builtins.attrNames (builtins.removeAttrs x helperArgNames));
+  sourceInfo = rec {
+    baseName="ised";
+    version="2.2.2";
+    name="${baseName}-${version}";
+    url="mirror://sf/project/ised/${name}.tar.bz2";
+    hash="1nb1cnsbs2k3j9cy2kc2kg01rd7wf3jwxm62rwn1rjlc46nwdlmn";
+  };
+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 = "A numeric sequence editor";
+    maintainers = with a.lib.maintainers;
+    [
+      raskin
+    ];
+    platforms = with a.lib.platforms;
+      linux;
+    license = a.lib.licenses.gpl3Plus;
+  };
+  passthru = {
+    updateInfo = {
+      downloadPage = "ised.sf.net";
+    };
+  };
+}) x
+

Modified: nixpkgs/trunk/pkgs/top-level/all-packages.nix
==============================================================================
--- nixpkgs/trunk/pkgs/top-level/all-packages.nix       Sat Jan  1 17:26:07 
2011        (r25330)
+++ nixpkgs/trunk/pkgs/top-level/all-packages.nix       Sat Jan  1 20:28:38 
2011        (r25331)
@@ -790,6 +790,8 @@
     static = false;
   };
 
+  ised = callPackage ../tools/misc/ised {};
+
   jdiskreport = callPackage ../tools/misc/jdiskreport { };
 
   jfsrec = callPackage ../tools/filesystems/jfsrec { };
_______________________________________________
nix-commits mailing list
[email protected]
http://mail.cs.uu.nl/mailman/listinfo/nix-commits

Reply via email to