hoc/default.nix.bak
Valentin Brandl b1bce024de
add
2020-03-18 18:14:32 +01:00

28 lines
539 B
Nix

{ sources ? import ./nix/sources.nix
, pkgs ? import sources.nixpkgs { }
, callPackage ? pkgs.callPackage
}:
let
cargoNix = callPackage ./Cargo.nix {
# defaultCrateOverrides = pkgs.defaultCrateOverrides // {
# libgit2-sys = attrs: {
# buildInputs = [ pkgs.openssl ];
# };
# };
};
hoc = cargoNix.rootCrate.build;
in
pkgs.symlinkJoin {
name = hoc.name;
version = hoc.crateVersion;
paths = [ hoc ];
# buildInputs = [ pkgs.openssl pkgs.cacert ];
postBuild = ''
rm -rf $out/bin/hoc.d
'';
}