Genode Packages collection
https://git.sr.ht/~ehmry/genodepkgs/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
55 lines
1.3 KiB
55 lines
1.3 KiB
# SPDX-License-Identifier: CC0-1.0 |
|
|
|
{ stdenv, buildPackages, fetchurl, llvmPackages, pkgconfig, base, os }: |
|
|
|
# WARNING: recursive make, fucked as usual |
|
|
|
let version = "0.6.3"; |
|
in stdenv.mkDerivation { |
|
pname = "solo5"; |
|
inherit version; |
|
|
|
outputs = [ "out" "tests" ]; |
|
|
|
nativeBuildInputs = [ pkgconfig ]; |
|
|
|
buildInputs = [ base os ]; |
|
|
|
src = fetchurl { |
|
url = |
|
"https://github.com/Solo5/solo5/releases/download/v${version}/solo5-v${version}.tar.gz"; |
|
sha256 = "08z2gv0jlsq6r92vacapdj0hqhyfqfy3xdjn5k9c1pd23a2syq7w"; |
|
}; |
|
|
|
enableParallelBuilding = true; |
|
|
|
patches = [ ./genode.patch ]; |
|
|
|
configurePhase = '' |
|
runHook preConfigure |
|
rm -fr tests/test_tls |
|
HOSTCC=${buildPackages.stdenv.cc}/bin/cc sh configure.sh |
|
runHook postConfigure |
|
''; |
|
|
|
installPhase = '' |
|
runHook preInstall |
|
mkdir -p $out/bin $tests/bin |
|
make install-opam-genode PREFIX=$out |
|
local wrong_path=`find $NIX_BUILD_TOP -name solo5.lib.so` |
|
for test in tests/*/*.genode; do |
|
cp $test $tests/bin/solo5-`basename $test .genode` |
|
done |
|
runHook postInstall |
|
''; |
|
|
|
dontFixup = true; |
|
|
|
meta = with stdenv.lib; { |
|
description = "Sandboxed execution environment."; |
|
homepage = "https://github.com/solo5/solo5"; |
|
license = licenses.isc; |
|
maintainers = [ maintainers.ehmry ]; |
|
}; |
|
|
|
}
|
|
|