nix: Fix deprecation warning (resolves #9)

This commit is contained in:
Sridhar Ratnakumar 2022-05-04 11:59:28 -04:00
parent 4b7f22c8c3
commit 3801d894be

View file

@ -43,6 +43,8 @@
}) })
]; ];
}; };
# cf. https://github.com/kolloch/crate2nix/issues/110
inherit (import "${crate2nix}/tools.nix" { inherit pkgs; }) inherit (import "${crate2nix}/tools.nix" { inherit pkgs; })
generatedCargoNix; generatedCargoNix;
@ -53,6 +55,9 @@
src = ./.; src = ./.;
}) })
{ {
inherit pkgs;
buildRustCrate = null; # https://github.com/kolloch/crate2nix/pull/178#issuecomment-820692187
# Individual crate overrides go here # Individual crate overrides go here
# Example: https://github.com/balsoft/simple-osd-daemons/blob/6f85144934c0c1382c7a4d3a2bbb80106776e270/flake.nix#L28-L50 # Example: https://github.com/balsoft/simple-osd-daemons/blob/6f85144934c0c1382c7a4d3a2bbb80106776e270/flake.nix#L28-L50
defaultCrateOverrides = pkgs.defaultCrateOverrides // { defaultCrateOverrides = pkgs.defaultCrateOverrides // {