bscpkgs/bsc/nixtools/default.nix

26 lines
552 B
Nix
Raw Normal View History

2020-10-05 18:33:44 +08:00
{
stdenv
2020-10-05 22:40:22 +08:00
, glibc
2020-10-05 18:33:44 +08:00
, targetCluster
, nixPrefix
}:
stdenv.mkDerivation rec {
name = "nixtools-${targetCluster}";
#version = "${src.shortRev}";
src = ~/nixtools;
2020-10-05 22:40:22 +08:00
buildInputs = [ glibc.static ];
2020-10-05 18:33:44 +08:00
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";
#};
}