2017-11-30 13:05:26 +00:00
|
|
|
{ pkgs ? import ./nix {}
|
|
|
|
}:
|
2017-12-05 01:43:40 +00:00
|
|
|
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;
|
2017-12-05 01:58:08 +00:00
|
|
|
ircbot = stripDeps (pkgs.callPackage ./nix/ircbot-carnix.nix {}).ircbot_0_1_0;
|
2017-11-30 03:32:33 +00:00
|
|
|
}
|