mirror of
https://github.com/urbit/shrub.git
synced 2024-12-25 13:04:17 +03:00
build: use generic builder in urbit derivation
'installPhase' captures all the important stuff that builder.sh previously did, and use of the generic builder allows stages of the build to be more easily overridden.
This commit is contained in:
parent
4915ceb96b
commit
46a438f26e
@ -1,15 +0,0 @@
|
|||||||
source $stdenv/setup
|
|
||||||
|
|
||||||
cp -r $src ./src
|
|
||||||
chmod -R u+w ./src
|
|
||||||
cd src
|
|
||||||
|
|
||||||
bash ./configure
|
|
||||||
|
|
||||||
make clean
|
|
||||||
make all -j8
|
|
||||||
make test
|
|
||||||
|
|
||||||
mkdir -p $out/bin
|
|
||||||
cp ./build/urbit $out/bin/$exename
|
|
||||||
cp ./build/urbit-worker $out/bin/$exename-worker
|
|
@ -27,9 +27,17 @@ let
|
|||||||
inherit name meta;
|
inherit name meta;
|
||||||
exename = name;
|
exename = name;
|
||||||
src = ../../../pkg/urbit;
|
src = ../../../pkg/urbit;
|
||||||
builder = ./builder.sh;
|
|
||||||
nativeBuildInputs = deps ++ vendor;
|
nativeBuildInputs = deps ++ vendor;
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
make all -j8
|
||||||
|
make test
|
||||||
|
|
||||||
|
mkdir -p $out/bin
|
||||||
|
cp ./build/urbit $out/bin/$exename
|
||||||
|
cp ./build/urbit-worker $out/bin/$exename-worker
|
||||||
|
'';
|
||||||
|
|
||||||
# See https://github.com/NixOS/nixpkgs/issues/18995
|
# See https://github.com/NixOS/nixpkgs/issues/18995
|
||||||
hardeningDisable = if debug then [ "all" ] else [];
|
hardeningDisable = if debug then [ "all" ] else [];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user