forked from rarias/bscpkgs
WIP nix-isolate
This commit is contained in:
23
bsc/nixtools/default.nix
Normal file
23
bsc/nixtools/default.nix
Normal 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";
|
||||
#};
|
||||
}
|
||||
Reference in New Issue
Block a user