Author: raskin
Date: Wed Dec 22 10:46:57 2010
New Revision: 25232
URL: https://svn.nixos.org/websvn/nix/?rev=25232&sc=1

Log:
Adding OIS library

Added:
   nixpkgs/trunk/pkgs/development/libraries/ois/
   nixpkgs/trunk/pkgs/development/libraries/ois/default.nix

Added: nixpkgs/trunk/pkgs/development/libraries/ois/default.nix
==============================================================================
--- /dev/null   00:00:00 1970   (empty, because file is newly added)
+++ nixpkgs/trunk/pkgs/development/libraries/ois/default.nix    Wed Dec 22 
10:46:57 2010        (r25232)
@@ -0,0 +1,53 @@
+...@{builderdefspackage
+  , autoconf, automake, libtool, m4
+  , libX11, xproto, libXi, inputproto
+  , libXaw, libXmu, libXt
+  , ...}:
+builderDefsPackage
+(a :  
+let 
+  helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++ 
+    [];
+
+  buildInputs = map (n: builtins.getAttr n x)
+    (builtins.attrNames (builtins.removeAttrs x helperArgNames));
+  sourceInfo = rec {
+    baseName="ois";
+    majorVersion="1";
+    minorVersion="3";
+    version="${majorVersion}.${minorVersion}";
+    name="${baseName}-${version}";
+    
url="mirror://sourceforge/project/wgois/Source%20Release/${version}/ois_v${majorVersion}-${minorVersion}.tar.gz";
+    hash="18gs6xxhbqb91x2gm95hh1pmakimqim1k9c65h7ah6g14zc7dyjh";
+  };
+in
+rec {
+  src = a.fetchurl {
+    url = sourceInfo.url;
+    sha256 = sourceInfo.hash;
+  };
+
+  inherit (sourceInfo) name version;
+  inherit buildInputs;
+
+  phaseNames = ["doConfigure" "doMakeInstall"];
+
+  configureCommand = ''sh bootstrap; sh configure'';
+      
+  meta = {
+    description = "Object-oriented C++ input system";
+    maintainers = with a.lib.maintainers;
+    [
+      raskin
+    ];
+    platforms = with a.lib.platforms;
+      linux;
+    license = a.lib.zlib;
+  };
+  passthru = {
+    updateInfo = {
+      downloadPage = "http://sourceforge.net/projects/wgois/files/Source 
Release/";
+    };
+  };
+}) x
+
_______________________________________________
nix-commits mailing list
[email protected]
http://mail.cs.uu.nl/mailman/listinfo/nix-commits

Reply via email to