Remove excess dependencies

This commit is contained in:
Graham Christensen 2017-12-04 20:43:40 -05:00
parent f6d64b8e26
commit 694b9ce1c5
No known key found for this signature in database
GPG key ID: ACA1C1D120C83D5C
2 changed files with 11 additions and 3 deletions

View file

@ -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;
} }

View file

@ -23,7 +23,6 @@ in import (hostpkgs.stdenv.mkDerivation {
name = "mkRustCrate-rebased.patch"; name = "mkRustCrate-rebased.patch";
sha256 = "09808bwcd3d5j2mnlzxq60g53rd07af7in1yfmpxvmi30sw4hi9b"; sha256 = "09808bwcd3d5j2mnlzxq60g53rd07af7in1yfmpxvmi30sw4hi9b";
}) })
]; ];
moveToOut = '' moveToOut = ''