refactor(nix): try using `overrideAttrs`

main
sgoudham 1 year ago
parent 24afcec7f3
commit d5875b556c
Signed by: hammy
GPG Key ID: 44E818FD5457EEA4

@ -32,7 +32,6 @@
rustTarget = pkgs.rust-bin.fromRustupToolchainFile ./rust-toolchain.toml;
craneLib = (crane.mkLib pkgs).overrideToolchain rustTarget;
git-view = craneLib.buildPackage {
name = "git-view";
src = craneLib.cleanCargoSource (craneLib.path ./.);
buildInputs = [] ++ pkgs.lib.optionals pkgs.stdenv.isDarwin [pkgs.libiconv];
};
@ -43,7 +42,9 @@
packages.default = git-view;
apps.default = flake-utils.lib.mkApp {
drv = git-view;
drv = git-view.overrideAttrs (finalAttrs: previousAttrs: {
name = "git-view";
});
};
devShells.default = pkgs.mkShell {

Loading…
Cancel
Save