Remove excess dependencies
This commit is contained in:
parent
f6d64b8e26
commit
694b9ce1c5
13
default.nix
13
default.nix
|
@ -1,5 +1,14 @@
|
||||||
{ pkgs ? import ./nix {}
|
{ pkgs ? import ./nix {}
|
||||||
}:
|
}:
|
||||||
{
|
let
|
||||||
ofborg.rs = (pkgs.callPackage ./nix/ofborg-carnix.nix {}).ofborg_0_1_0;
|
stripDeps = pkg: pkgs.runCommand "${pkg.name}-deps-stripped" {}
|
||||||
|
''
|
||||||
|
cp -r ${pkg} $out
|
||||||
|
chmod -R a+w $out
|
||||||
|
rm -rf $out/lib
|
||||||
|
find $out/bin -name '*.d' -delete
|
||||||
|
chmod -R a-w $out
|
||||||
|
'';
|
||||||
|
in {
|
||||||
|
ofborg.rs = stripDeps (pkgs.callPackage ./nix/ofborg-carnix.nix {}).ofborg_0_1_0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -23,7 +23,6 @@ in import (hostpkgs.stdenv.mkDerivation {
|
||||||
name = "mkRustCrate-rebased.patch";
|
name = "mkRustCrate-rebased.patch";
|
||||||
sha256 = "09808bwcd3d5j2mnlzxq60g53rd07af7in1yfmpxvmi30sw4hi9b";
|
sha256 = "09808bwcd3d5j2mnlzxq60g53rd07af7in1yfmpxvmi30sw4hi9b";
|
||||||
})
|
})
|
||||||
|
|
||||||
];
|
];
|
||||||
|
|
||||||
moveToOut = ''
|
moveToOut = ''
|
||||||
|
|
Loading…
Reference in a new issue