2014-11-28 20:10:37 +01:00
|
|
|
{ stdenv
|
|
|
|
, fetchurl
|
2014-12-23 17:06:27 +01:00
|
|
|
, gnumake40
|
2014-11-28 20:10:37 +01:00
|
|
|
, skalibs
|
|
|
|
}:
|
2014-08-23 06:40:52 +02:00
|
|
|
|
|
|
|
let
|
|
|
|
|
2014-12-23 17:06:27 +01:00
|
|
|
version = "2.0.0.0";
|
2014-08-23 06:40:52 +02:00
|
|
|
|
|
|
|
in stdenv.mkDerivation rec {
|
|
|
|
|
|
|
|
name = "execline-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://skarnet.org/software/execline/${name}.tar.gz";
|
2014-12-23 17:06:27 +01:00
|
|
|
sha256 = "1g5v6icxsf7p2ccj9iq85iikkm12xph65ri86ydakihv6al3jw71";
|
2014-08-23 06:40:52 +02:00
|
|
|
};
|
|
|
|
|
2014-12-23 17:06:27 +01:00
|
|
|
dontDisableStatic = true;
|
2014-08-23 06:40:52 +02:00
|
|
|
|
2014-12-23 17:06:27 +01:00
|
|
|
buildInputs = [ gnumake40 ];
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--libdir=\${prefix}/lib"
|
|
|
|
"--includedir=\${prefix}/include"
|
|
|
|
"--with-sysdeps=${skalibs}/lib/skalibs/sysdeps"
|
|
|
|
"--with-include=${skalibs}/include"
|
|
|
|
"--with-lib=${skalibs}/lib"
|
|
|
|
"--with-dynlib=${skalibs}/lib"
|
|
|
|
] ++ (if stdenv.isDarwin then [ "--disable-shared" ] else [ "--enable-shared" ]);
|
2014-08-23 06:40:52 +02:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://skarnet.org/software/execline/;
|
2014-11-11 14:20:43 +01:00
|
|
|
description = "A small scripting language, to be used in place of a shell in non-interactive scripts";
|
2014-08-23 06:40:52 +02:00
|
|
|
platforms = stdenv.lib.platforms.all;
|
|
|
|
license = stdenv.lib.licenses.isc;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|