execline: new package

Execline is a small scripting language, to be used in place of a shell
in non-interactive scripts.
This commit is contained in:
Patrick Mahoney 2014-08-22 23:40:52 -05:00
parent f0478220d8
commit d8d7cd7ef2
2 changed files with 56 additions and 0 deletions

View File

@ -0,0 +1,54 @@
{stdenv, fetchurl, skalibs}:
let
version = "1.3.1.1";
in stdenv.mkDerivation rec {
name = "execline-${version}";
src = fetchurl {
url = "http://skarnet.org/software/execline/${name}.tar.gz";
sha256 = "1br3qzif166kbp4k813ljbyq058p7mfsp2lj88n8vi4dmj935nzg";
};
buildInputs = [ skalibs ];
sourceRoot = "admin/${name}";
configurePhase = ''
pushd conf-compile
printf "$out/bin" > conf-install-command
printf "$out/include" > conf-install-include
printf "$out/lib" > conf-install-library
printf "$out/lib" > conf-install-library.so
printf "$out/sysdeps" > conf-install-sysdeps
printf "${skalibs}/sysdeps" > import
printf "${skalibs}/include" > path-include
printf "${skalibs}/lib" > path-library
# let nix builder strip things, cross-platform
truncate --size 0 conf-stripbins
truncate --size 0 conf-striplibs
rm -f flag-slashpackage
touch flag-allstatic
popd
'';
preBuild = ''
patchShebangs src/sys
'';
meta = {
homepage = http://skarnet.org/software/execline/;
description = "A small scripting language, to be used in place of a shell in non-interactive scripts.";
platforms = stdenv.lib.platforms.all;
license = stdenv.lib.licenses.isc;
};
}

View File

@ -987,6 +987,8 @@ let
exempi = callPackage ../development/libraries/exempi { };
execline = callPackage ../tools/misc/execline { };
exercism = callPackage ../development/tools/exercism { };
exif = callPackage ../tools/graphics/exif { };