2020-02-14 15:53:53 +01:00
|
|
|
{ sources ? import ./nix/sources.nix
|
|
|
|
, pkgs ? import sources.nixpkgs { }
|
|
|
|
, callPackage ? pkgs.callPackage
|
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
2020-02-15 20:26:30 +01:00
|
|
|
cargoNix = callPackage ./Cargo.nix {
|
|
|
|
# defaultCrateOverrides = pkgs.defaultCrateOverrides // {
|
|
|
|
# libgit2-sys = attrs: {
|
|
|
|
# buildInputs = [ pkgs.openssl ];
|
|
|
|
# };
|
|
|
|
# };
|
|
|
|
};
|
2020-02-14 15:53:53 +01:00
|
|
|
|
|
|
|
hoc = cargoNix.rootCrate.build;
|
|
|
|
in
|
|
|
|
pkgs.symlinkJoin {
|
|
|
|
name = hoc.name;
|
|
|
|
version = hoc.crateVersion;
|
|
|
|
paths = [ hoc ];
|
|
|
|
|
2020-02-15 20:26:30 +01:00
|
|
|
# buildInputs = [ pkgs.openssl pkgs.cacert ];
|
2020-02-14 15:53:53 +01:00
|
|
|
|
|
|
|
postBuild = ''
|
|
|
|
rm -rf $out/bin/hoc.d
|
|
|
|
'';
|
|
|
|
}
|