Merge pull request #5453 from pmahoney/skarnet-2.0
Update skarnet.org software for 2.0 release.
This commit is contained in:
commit
fdb785f4d1
@ -1,11 +1,11 @@
|
||||
{ stdenv
|
||||
, skarnetConfCompile
|
||||
, fetchurl
|
||||
, gnumake40
|
||||
}:
|
||||
|
||||
let
|
||||
|
||||
version = "1.6.0.0";
|
||||
version = "2.0.0.0";
|
||||
|
||||
in stdenv.mkDerivation rec {
|
||||
|
||||
@ -13,19 +13,19 @@ in stdenv.mkDerivation rec {
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://skarnet.org/software/skalibs/${name}.tar.gz";
|
||||
sha256 = "0jz3farll9n5jvz3g6wri99s6njkgmnf0r9jqjlg03f20dzv8c8w";
|
||||
sha256 = "0cz30wqg8fnkwjlacs4s3sjs3l34sa91xgci95fmb187zhiq693n";
|
||||
};
|
||||
|
||||
sourceRoot = "prog/${name}";
|
||||
dontDisableStatic = true;
|
||||
|
||||
# See http://skarnet.org/cgi-bin/archive.cgi?1:mss:75:201405:pkmodhckjklemogbplje
|
||||
patches = [ ./getpeereid.patch ];
|
||||
buildInputs = [ gnumake40 ];
|
||||
|
||||
buildInputs = [ skarnetConfCompile ];
|
||||
|
||||
preInstall = ''
|
||||
mkdir -p "$out/etc"
|
||||
'';
|
||||
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" ]);
|
||||
|
||||
meta = {
|
||||
homepage = http://skarnet.org/software/skalibs/;
|
||||
|
@ -1,28 +0,0 @@
|
||||
--- a/src/libstddjb/getpeereid.h
|
||||
+++ b/src/libstddjb/getpeereid.h
|
||||
@@ -3,6 +3,14 @@
|
||||
#ifndef GETPEEREID_H
|
||||
#define GETPEEREID_H
|
||||
|
||||
+#include "sysdeps.h"
|
||||
+
|
||||
+#ifdef HASGETPEEREID
|
||||
+/* syscall exists - do nothing */
|
||||
+
|
||||
+#else
|
||||
+
|
||||
extern int getpeereid (int, int *, int *) ;
|
||||
|
||||
#endif
|
||||
+#endif
|
||||
--- a/src/libstddjb/ipc_eid.c
|
||||
+++ b/src/libstddjb/ipc_eid.c
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
int ipc_eid (int s, unsigned int *u, unsigned int *g)
|
||||
{
|
||||
- int dummyu, dummyg ;
|
||||
+ unsigned int dummyu, dummyg ;
|
||||
if (getpeereid(s, &dummyu, &dummyg) < 0) return -1 ;
|
||||
*u = (unsigned int)dummyu ;
|
||||
*g = (unsigned int)dummyg ;
|
@ -1,21 +0,0 @@
|
||||
{ stdenv }:
|
||||
|
||||
let
|
||||
|
||||
version = "2014-11-28";
|
||||
|
||||
in stdenv.mkDerivation {
|
||||
|
||||
name = "skarnet-conf-compile-${version}";
|
||||
|
||||
phases = [ "fixupPhase" ];
|
||||
|
||||
setupHook = ./setup-hook.sh;
|
||||
|
||||
meta = {
|
||||
homepage = http://www.skarnet.org/software/conf-compile.html;
|
||||
description = "Support for configuring skarnet.org packages for nix builds";
|
||||
platforms = stdenv.lib.platforms.all;
|
||||
};
|
||||
|
||||
}
|
@ -1,47 +0,0 @@
|
||||
# Packages from skarnet.org use a unique build system. These functions
|
||||
# assist with some common configuration and shebang patching.
|
||||
|
||||
skarnetConfigure() {
|
||||
runHook preConfigure
|
||||
|
||||
pushd conf-compile >/dev/null
|
||||
|
||||
# paths
|
||||
> conf-defaultpath printf "$out/bin"
|
||||
> conf-etc printf "$out/etc"
|
||||
> conf-install-command printf "$out/bin"
|
||||
> conf-install-include printf "$out/include"
|
||||
> conf-install-libexec printf "$out/libexec"
|
||||
> conf-install-library printf "$out/lib"
|
||||
> conf-install-library.so printf "$out/lib"
|
||||
> conf-install-sysdeps printf "$out/sysdeps"
|
||||
|
||||
# use generic 'cc' to support both gcc and clang (darwin) stdenvs
|
||||
for file in conf-cc conf-dynld conf-ld; do
|
||||
substituteInPlace $file --replace gcc cc
|
||||
done
|
||||
|
||||
# let nix builder strip things, cross-platform
|
||||
truncate --size 0 conf-stripbins conf-striplibs
|
||||
|
||||
rm -f flag-slashpackage
|
||||
touch flag-allstatic
|
||||
touch flag-forcedevr # only used for skalibs
|
||||
|
||||
# build inputs
|
||||
truncate --size 0 import path-include path-library
|
||||
for input in $nativeBuildInputs; do
|
||||
[[ -a "$input/sysdeps" ]] && >> import printf "$input/sysdeps"
|
||||
[[ -a "$input/include" ]] && >> path-include printf "$input/include"
|
||||
[[ -a "$input/lib" ]] && >> path-library printf "$input/lib"
|
||||
done
|
||||
|
||||
popd >/dev/null
|
||||
|
||||
# patch various scripts to use stdenv shell
|
||||
patchShebangs src/sys
|
||||
|
||||
runHook postConfigure
|
||||
}
|
||||
|
||||
export configurePhase=skarnetConfigure
|
@ -1,12 +1,12 @@
|
||||
{ stdenv
|
||||
, fetchurl
|
||||
, gnumake40
|
||||
, skalibs
|
||||
, skarnetConfCompile
|
||||
}:
|
||||
|
||||
let
|
||||
|
||||
version = "1.0.3.1";
|
||||
version = "2.0.0.0";
|
||||
|
||||
in stdenv.mkDerivation rec {
|
||||
|
||||
@ -14,12 +14,20 @@ in stdenv.mkDerivation rec {
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://www.skarnet.org/software/s6-linux-utils/${name}.tar.gz";
|
||||
sha256 = "1s17g03z5hfpiz32g001g5wyamyvn9l36fr2csk3k7r0jkqfnl0d";
|
||||
sha256 = "0lfgfwnk81vjlkvmr1gzknz9swgcrp5s7x19dfkw6shvi95fyirh";
|
||||
};
|
||||
|
||||
buildInputs = [ skalibs skarnetConfCompile ];
|
||||
dontDisableStatic = true;
|
||||
|
||||
sourceRoot = "admin/${name}";
|
||||
buildInputs = [ gnumake40 ];
|
||||
|
||||
configureFlags = [
|
||||
"--includedir=\${prefix}/include"
|
||||
"--with-sysdeps=${skalibs}/lib/skalibs/sysdeps"
|
||||
"--with-include=${skalibs}/include"
|
||||
"--with-lib=${skalibs}/lib"
|
||||
"--with-dynlib=${skalibs}/lib"
|
||||
];
|
||||
|
||||
meta = {
|
||||
homepage = http://www.skarnet.org/software/s6-linux-utils/;
|
||||
|
@ -1,13 +1,13 @@
|
||||
{ stdenv
|
||||
, execline
|
||||
, fetchurl
|
||||
, gnumake40
|
||||
, skalibs
|
||||
, skarnetConfCompile
|
||||
}:
|
||||
|
||||
let
|
||||
|
||||
version = "1.1.3.2";
|
||||
version = "2.0.0.0";
|
||||
|
||||
in stdenv.mkDerivation rec {
|
||||
|
||||
@ -15,12 +15,22 @@ in stdenv.mkDerivation rec {
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://www.skarnet.org/software/s6/${name}.tar.gz";
|
||||
sha256 = "0djxdd3d3mlp63sjqqs0ilf8p68m86c1s98d82fl0kgaaibpsikp";
|
||||
sha256 = "14x4l3xp152c9v34zs7nzxzacizfpp0k0lzwh40rxm0w5wz4x0ls";
|
||||
};
|
||||
|
||||
buildInputs = [ skalibs execline skarnetConfCompile ];
|
||||
dontDisableStatic = true;
|
||||
|
||||
sourceRoot = "admin/${name}";
|
||||
buildInputs = [ gnumake40 ];
|
||||
|
||||
configureFlags = [
|
||||
"--with-sysdeps=${skalibs}/lib/skalibs/sysdeps"
|
||||
"--with-include=${skalibs}/include"
|
||||
"--with-include=${execline}/include"
|
||||
"--with-lib=${skalibs}/lib"
|
||||
"--with-lib=${execline}/lib"
|
||||
"--with-dynlib=${skalibs}/lib"
|
||||
"--with-dynlib=${execline}/lib"
|
||||
] ++ stdenv.lib.optional stdenv.isDarwin [ "--disable-shared" ];
|
||||
|
||||
preBuild = ''
|
||||
substituteInPlace "src/daemontools-extras/s6-log.c" \
|
||||
|
@ -1,12 +1,12 @@
|
||||
{ stdenv
|
||||
, fetchurl
|
||||
, gnumake40
|
||||
, skalibs
|
||||
, skarnetConfCompile
|
||||
}:
|
||||
|
||||
let
|
||||
|
||||
version = "1.3.1.1";
|
||||
version = "2.0.0.0";
|
||||
|
||||
in stdenv.mkDerivation rec {
|
||||
|
||||
@ -14,12 +14,21 @@ in stdenv.mkDerivation rec {
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://skarnet.org/software/execline/${name}.tar.gz";
|
||||
sha256 = "1br3qzif166kbp4k813ljbyq058p7mfsp2lj88n8vi4dmj935nzg";
|
||||
sha256 = "1g5v6icxsf7p2ccj9iq85iikkm12xph65ri86ydakihv6al3jw71";
|
||||
};
|
||||
|
||||
buildInputs = [ skalibs skarnetConfCompile ];
|
||||
dontDisableStatic = true;
|
||||
|
||||
sourceRoot = "admin/${name}";
|
||||
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" ]);
|
||||
|
||||
meta = {
|
||||
homepage = http://skarnet.org/software/execline/;
|
||||
|
@ -1,12 +1,12 @@
|
||||
{ stdenv
|
||||
, fetchurl
|
||||
, gnumake40
|
||||
, skalibs
|
||||
, skarnetConfCompile
|
||||
}:
|
||||
|
||||
let
|
||||
|
||||
version = "1.0.3.2";
|
||||
version = "2.0.0.0";
|
||||
|
||||
in stdenv.mkDerivation rec {
|
||||
|
||||
@ -14,16 +14,19 @@ in stdenv.mkDerivation rec {
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://www.skarnet.org/software/s6-portable-utils/${name}.tar.gz";
|
||||
sha256 = "040nmls7qbgw8yn502lym4kgqh5zxr2ks734bqajpi2ricnasvhl";
|
||||
sha256 = "1vszqaqkyhz1v69pxls3c7y1qs8wjkdylpg0yz183xlirywimwwk";
|
||||
};
|
||||
|
||||
buildInputs = [ skalibs skarnetConfCompile ];
|
||||
dontDisableStatic = true;
|
||||
|
||||
sourceRoot = "admin/${name}";
|
||||
buildInputs = [ gnumake40 ];
|
||||
|
||||
preInstall = ''
|
||||
mkdir -p "$out/libexec"
|
||||
'';
|
||||
configureFlags = [
|
||||
"--with-sysdeps=${skalibs}/lib/skalibs/sysdeps"
|
||||
"--with-include=${skalibs}/include"
|
||||
"--with-lib=${skalibs}/lib"
|
||||
"--with-dynlib=${skalibs}/lib"
|
||||
];
|
||||
|
||||
meta = {
|
||||
homepage = http://www.skarnet.org/software/s6-portable-utils/;
|
||||
|
@ -1,12 +1,12 @@
|
||||
{ stdenv
|
||||
, fetchurl
|
||||
, gnumake40
|
||||
, skalibs
|
||||
, skarnetConfCompile
|
||||
}:
|
||||
|
||||
let
|
||||
|
||||
version = "0.1.0.0";
|
||||
version = "2.0.0.0";
|
||||
|
||||
in stdenv.mkDerivation rec {
|
||||
|
||||
@ -14,12 +14,21 @@ in stdenv.mkDerivation rec {
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://www.skarnet.org/software/s6-dns/${name}.tar.gz";
|
||||
sha256 = "1r82l5fnz2rrwm5wq2sldqp74lk9fifr0d8hyq98xdyh24hish68";
|
||||
sha256 = "07k6rzgsgcxr0bq209as79sjn2nrcjj9mlmk9vvy1hvsag0xnkcq";
|
||||
};
|
||||
|
||||
buildInputs = [ skalibs skarnetConfCompile ];
|
||||
dontDisableStatic = true;
|
||||
|
||||
sourceRoot = "web/${name}";
|
||||
buildInputs = [ gnumake40 ];
|
||||
|
||||
configureFlags = [
|
||||
"--includedir=\${prefix}/include"
|
||||
"--libdir=\${prefix}/lib"
|
||||
"--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" ]);
|
||||
|
||||
meta = {
|
||||
homepage = http://www.skarnet.org/software/s6-dns/;
|
||||
|
@ -1,14 +1,14 @@
|
||||
{ stdenv
|
||||
, execline
|
||||
, fetchurl
|
||||
, gnumake40
|
||||
, s6Dns
|
||||
, skalibs
|
||||
, skarnetConfCompile
|
||||
}:
|
||||
|
||||
let
|
||||
|
||||
version = "0.1.0.0";
|
||||
version = "2.0.0.0";
|
||||
|
||||
in stdenv.mkDerivation rec {
|
||||
|
||||
@ -16,12 +16,25 @@ in stdenv.mkDerivation rec {
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://www.skarnet.org/software/s6-networking/${name}.tar.gz";
|
||||
sha256 = "1np9m2j1i2450mbcjvpbb56kv3wc2fbyvmv2a039q61j2lk6vjz7";
|
||||
sha256 = "0k2i0g5lsvh1gz90ixwdip1pngj9vd45d4fpmdg075vd8zhh7j37";
|
||||
};
|
||||
|
||||
buildInputs = [ skalibs s6Dns execline skarnetConfCompile ];
|
||||
dontDisableStatic = true;
|
||||
|
||||
sourceRoot = "net/${name}";
|
||||
buildInputs = [ gnumake40 ];
|
||||
|
||||
configureFlags = [
|
||||
"--with-sysdeps=${skalibs}/lib/skalibs/sysdeps"
|
||||
"--with-include=${skalibs}/include"
|
||||
"--with-include=${execline}/include"
|
||||
"--with-include=${s6Dns}/include"
|
||||
"--with-lib=${skalibs}/lib"
|
||||
"--with-lib=${execline}/lib"
|
||||
"--with-lib=${s6Dns}/lib"
|
||||
"--with-dynlib=${skalibs}/lib"
|
||||
"--with-dynlib=${execline}/lib"
|
||||
"--with-dynlib=${s6Dns}/lib"
|
||||
];
|
||||
|
||||
meta = {
|
||||
homepage = http://www.skarnet.org/software/s6-networking/;
|
||||
|
@ -6914,8 +6914,6 @@ let
|
||||
|
||||
skalibs = callPackage ../development/libraries/skalibs { };
|
||||
|
||||
skarnetConfCompile = callPackage ../development/tools/build-managers/skarnet { };
|
||||
|
||||
slang = callPackage ../development/libraries/slang { };
|
||||
|
||||
slibGuile = callPackage ../development/libraries/slib {
|
||||
|
Loading…
Reference in New Issue
Block a user