diff options
author | Michael Raskin <7c6f434c@mail.ru> | 2014-09-02 02:15:22 +0400 |
---|---|---|
committer | Michael Raskin <7c6f434c@mail.ru> | 2014-09-02 02:15:22 +0400 |
commit | d33a20ef4a080355a65cbeff5e5e5601d2cdd94e (patch) | |
tree | 7218ed4b94f8d3f31a64e0d2b499fa61dc8f5fb8 /pkgs/tools/misc | |
parent | f927e860f266921ae650b0a96e95701945fe843e (diff) | |
parent | b5f33dc13379ef2821d9e40a74206f22e8501cbb (diff) | |
download | nixlib-d33a20ef4a080355a65cbeff5e5e5601d2cdd94e.tar nixlib-d33a20ef4a080355a65cbeff5e5e5601d2cdd94e.tar.gz nixlib-d33a20ef4a080355a65cbeff5e5e5601d2cdd94e.tar.bz2 nixlib-d33a20ef4a080355a65cbeff5e5e5601d2cdd94e.tar.lz nixlib-d33a20ef4a080355a65cbeff5e5e5601d2cdd94e.tar.xz nixlib-d33a20ef4a080355a65cbeff5e5e5601d2cdd94e.tar.zst nixlib-d33a20ef4a080355a65cbeff5e5e5601d2cdd94e.zip |
Merge pull request #3869 from pmahoney/skarnet
skarnet.org UNIX utilities
Diffstat (limited to 'pkgs/tools/misc')
-rw-r--r-- | pkgs/tools/misc/s6-portable-utils/default.nix | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/pkgs/tools/misc/s6-portable-utils/default.nix b/pkgs/tools/misc/s6-portable-utils/default.nix new file mode 100644 index 000000000000..f8e7dfaddc9e --- /dev/null +++ b/pkgs/tools/misc/s6-portable-utils/default.nix @@ -0,0 +1,55 @@ +{ stdenv, fetchurl, skalibs }: + +let + + version = "1.0.3.2"; + +in stdenv.mkDerivation rec { + + name = "s6-portable-utils-${version}"; + + src = fetchurl { + url = "http://www.skarnet.org/software/s6-portable-utils/${name}.tar.gz"; + sha256 = "040nmls7qbgw8yn502lym4kgqh5zxr2ks734bqajpi2ricnasvhl"; + }; + + buildInputs = [ skalibs ]; + + sourceRoot = "admin/${name}"; + + configurePhase = '' + pushd conf-compile + + printf "$out/bin" > conf-install-command + printf "$out/libexec" > conf-install-libexec + + # let nix builder strip things, cross-platform + truncate --size 0 conf-stripbins + truncate --size 0 conf-striplibs + + printf "${skalibs}/sysdeps" > import + printf "%s" "${skalibs}/include" > path-include + printf "%s" "${skalibs}/lib" > path-library + + rm -f flag-slashpackage + touch flag-allstatic + + popd + ''; + + preBuild = '' + patchShebangs src/sys + ''; + + preInstall = '' + mkdir -p "$out/libexec" + ''; + + meta = { + homepage = http://www.skarnet.org/software/s6-portable-utils/; + description = "A set of tiny general Unix utilities optimized for simplicity and small size."; + platforms = stdenv.lib.platforms.all; + license = stdenv.lib.licenses.isc; + }; + +} |