ofborg/default.nix
Graham Christensen 781bdcdf8d
Setup ircbot
2017-12-04 20:58:08 -05:00

16 lines
405 B
Nix

{ pkgs ? import ./nix {}
}:
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;
ircbot = stripDeps (pkgs.callPackage ./nix/ircbot-carnix.nix {}).ircbot_0_1_0;
}