|
|
@ -32,6 +32,7 @@
|
|
|
|
rustTarget = pkgs.rust-bin.fromRustupToolchainFile ./rust-toolchain.toml;
|
|
|
|
rustTarget = pkgs.rust-bin.fromRustupToolchainFile ./rust-toolchain.toml;
|
|
|
|
craneLib = (crane.mkLib pkgs).overrideToolchain rustTarget;
|
|
|
|
craneLib = (crane.mkLib pkgs).overrideToolchain rustTarget;
|
|
|
|
git-view = craneLib.buildPackage {
|
|
|
|
git-view = craneLib.buildPackage {
|
|
|
|
|
|
|
|
name = "git-view";
|
|
|
|
src = craneLib.cleanCargoSource (craneLib.path ./.);
|
|
|
|
src = craneLib.cleanCargoSource (craneLib.path ./.);
|
|
|
|
buildInputs = [] ++ pkgs.lib.optionals pkgs.stdenv.isDarwin [pkgs.libiconv];
|
|
|
|
buildInputs = [] ++ pkgs.lib.optionals pkgs.stdenv.isDarwin [pkgs.libiconv];
|
|
|
|
};
|
|
|
|
};
|
|
|
|