WIP nix-isolate

This commit is contained in:
2020-10-05 12:33:44 +02:00
parent 0a26c72440
commit 896ebd4ace
10 changed files with 142 additions and 23 deletions

23
bsc/nixtools/default.nix Normal file
View File

@@ -0,0 +1,23 @@
{
stdenv
, targetCluster
, nixPrefix
}:
stdenv.mkDerivation rec {
name = "nixtools-${targetCluster}";
#version = "${src.shortRev}";
src = ~/nixtools;
makeFlags = [ "DESTDIR=$(out)" ];
preBuild = "env";
dontPatchShebangs = true;
inherit nixPrefix targetCluster;
postPatch = ''
substituteAllInPlace scripts/cobi/runexp
sed -i s:@nixtools@:$out:g scripts/cobi/runexp
'';
#src = builtins.fetchGit {
# url = "ssh://git@bscpm02.bsc.es/rarias/nixtools";
# ref = "master";
#};
}