2015-01-01 22:34:16 +03:00
|
|
|
{ stdenv, fetchurl }:
|
2014-08-23 08:22:55 +04:00
|
|
|
|
|
|
|
let
|
|
|
|
|
2014-12-23 19:06:27 +03:00
|
|
|
version = "2.0.0.0";
|
2014-08-23 08:22:55 +04:00
|
|
|
|
|
|
|
in stdenv.mkDerivation rec {
|
2014-11-28 22:10:37 +03:00
|
|
|
|
2014-08-23 08:22:55 +04:00
|
|
|
name = "skalibs-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://skarnet.org/software/skalibs/${name}.tar.gz";
|
2014-12-23 19:06:27 +03:00
|
|
|
sha256 = "0cz30wqg8fnkwjlacs4s3sjs3l34sa91xgci95fmb187zhiq693n";
|
2014-08-23 08:22:55 +04:00
|
|
|
};
|
|
|
|
|
2014-12-23 19:06:27 +03:00
|
|
|
dontDisableStatic = true;
|
2014-08-23 08:22:55 +04:00
|
|
|
|
2014-12-23 19:06:27 +03:00
|
|
|
configureFlags = [
|
|
|
|
"--enable-force-devr" # assume /dev/random works
|
|
|
|
"--libdir=\${prefix}/lib"
|
|
|
|
"--includedir=\${prefix}/include"
|
|
|
|
"--sysdepdir=\${prefix}/lib/skalibs/sysdeps"
|
|
|
|
] ++ (if stdenv.isDarwin then [ "--disable-shared" ] else [ "--enable-shared" ]);
|
2014-08-23 08:22:55 +04:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://skarnet.org/software/skalibs/;
|
2014-11-11 16:20:43 +03:00
|
|
|
description = "A set of general-purpose C programming libraries";
|
2014-08-23 08:22:55 +04:00
|
|
|
platforms = stdenv.lib.platforms.all;
|
|
|
|
license = stdenv.lib.licenses.isc;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|