Consolidate conf-compile steps for skarnet.org pkgs.
This commit is contained in:
@@ -1,4 +1,8 @@
|
||||
{stdenv, fetchurl, skalibs}:
|
||||
{ stdenv
|
||||
, fetchurl
|
||||
, skalibs
|
||||
, skarnetConfCompile
|
||||
}:
|
||||
|
||||
let
|
||||
|
||||
@@ -13,37 +17,10 @@ in stdenv.mkDerivation rec {
|
||||
sha256 = "1br3qzif166kbp4k813ljbyq058p7mfsp2lj88n8vi4dmj935nzg";
|
||||
};
|
||||
|
||||
buildInputs = [ skalibs ];
|
||||
buildInputs = [ skalibs skarnetConfCompile ];
|
||||
|
||||
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";
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
{ stdenv, fetchurl, skalibs }:
|
||||
{ stdenv
|
||||
, fetchurl
|
||||
, skalibs
|
||||
, skarnetConfCompile
|
||||
}:
|
||||
|
||||
let
|
||||
|
||||
@@ -13,34 +17,10 @@ in stdenv.mkDerivation rec {
|
||||
sha256 = "040nmls7qbgw8yn502lym4kgqh5zxr2ks734bqajpi2ricnasvhl";
|
||||
};
|
||||
|
||||
buildInputs = [ skalibs ];
|
||||
buildInputs = [ skalibs skarnetConfCompile ];
|
||||
|
||||
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"
|
||||
'';
|
||||
|
||||
Reference in New Issue
Block a user