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 {}
|
||||
}:
|
||||
{
|
||||
ofborg.rs = (pkgs.callPackage ./nix/ofborg-carnix.nix {}).ofborg_0_1_0;
|
||||
let
|
||||
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";
|
||||
sha256 = "09808bwcd3d5j2mnlzxq60g53rd07af7in1yfmpxvmi30sw4hi9b";
|
||||
})
|
||||
|
||||
];
|
||||
|
||||
moveToOut = ''
|
||||
|
|
Loading…
Reference in a new issue