2014-11-28 20:10:37 +01:00
|
|
|
{ stdenv
|
|
|
|
, skarnetConfCompile
|
|
|
|
, fetchurl
|
|
|
|
}:
|
2014-08-23 06:22:55 +02:00
|
|
|
|
|
|
|
let
|
|
|
|
|
|
|
|
version = "1.6.0.0";
|
|
|
|
|
|
|
|
in stdenv.mkDerivation rec {
|
2014-11-28 20:10:37 +01:00
|
|
|
|
2014-08-23 06:22:55 +02:00
|
|
|
name = "skalibs-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://skarnet.org/software/skalibs/${name}.tar.gz";
|
|
|
|
sha256 = "0jz3farll9n5jvz3g6wri99s6njkgmnf0r9jqjlg03f20dzv8c8w";
|
|
|
|
};
|
|
|
|
|
|
|
|
sourceRoot = "prog/${name}";
|
|
|
|
|
|
|
|
# See http://skarnet.org/cgi-bin/archive.cgi?1:mss:75:201405:pkmodhckjklemogbplje
|
|
|
|
patches = [ ./getpeereid.patch ];
|
|
|
|
|
2014-11-28 20:10:37 +01:00
|
|
|
buildInputs = [ skarnetConfCompile ];
|
2014-08-23 06:22:55 +02:00
|
|
|
|
|
|
|
preInstall = ''
|
|
|
|
mkdir -p "$out/etc"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://skarnet.org/software/skalibs/;
|
2014-11-11 14:20:43 +01:00
|
|
|
description = "A set of general-purpose C programming libraries";
|
2014-08-23 06:22:55 +02:00
|
|
|
platforms = stdenv.lib.platforms.all;
|
|
|
|
license = stdenv.lib.licenses.isc;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|