aboutsummaryrefslogtreecommitdiff
path: root/pkgs/development/libraries/ois
diff options
context:
space:
mode:
authorMichael Raskin <7c6f434c@mail.ru>2010-12-22 10:46:57 +0000
committerMichael Raskin <7c6f434c@mail.ru>2010-12-22 10:46:57 +0000
commitf7f753b3a48bf2963c4f0a4e0708b9bd4fc5f90d (patch)
tree59e873d1e18ea22abb88d2e82ec2952b7768eb21 /pkgs/development/libraries/ois
parent0e3e7d897681e20b5baafbd19d0d98d3444e6487 (diff)
Adding OIS library
svn path=/nixpkgs/trunk/; revision=25232
Diffstat (limited to 'pkgs/development/libraries/ois')
-rw-r--r--pkgs/development/libraries/ois/default.nix53
1 files changed, 53 insertions, 0 deletions
diff --git a/pkgs/development/libraries/ois/default.nix b/pkgs/development/libraries/ois/default.nix
new file mode 100644
index 000000000000..29a4520b4c62
--- /dev/null
+++ b/pkgs/development/libraries/ois/default.nix
@@ -0,0 +1,53 @@
+x@{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
+