diff options
Diffstat (limited to 'pkgs/development')
-rw-r--r-- | pkgs/development/libraries/chmlib/builder.sh | 16 | ||||
-rw-r--r-- | pkgs/development/libraries/chmlib/default.nix | 11 |
2 files changed, 27 insertions, 0 deletions
diff --git a/pkgs/development/libraries/chmlib/builder.sh b/pkgs/development/libraries/chmlib/builder.sh new file mode 100644 index 0000000000000..7ecc1ca3be590 --- /dev/null +++ b/pkgs/development/libraries/chmlib/builder.sh @@ -0,0 +1,16 @@ +. $stdenv/setup + +unpackCmd="tar xvfj $src" + +makeFlags="CC=gcc LD=gcc INSTALLPREFIX=$out" + +preInstall() { + mkdir $out + mkdir $out/lib + mkdir $out/include +} +preInstall=preInstall + +installFlags=$makeFlags + +genericBuild \ No newline at end of file diff --git a/pkgs/development/libraries/chmlib/default.nix b/pkgs/development/libraries/chmlib/default.nix new file mode 100644 index 0000000000000..2b6814745eb7f --- /dev/null +++ b/pkgs/development/libraries/chmlib/default.nix @@ -0,0 +1,11 @@ +{stdenv, fetchurl, libtool}: + +stdenv.mkDerivation { + name = "chmlib-0.31"; + builder = ./builder.sh; + src = fetchurl { + url = http://66.93.236.84/~jedwin/projects/chmlib/chmlib-0.31.tbz; + md5 = "c6c9e1658f43715456e00a4893d496ed"; + }; + buildInputs = [libtool]; +} |