Skip to content

Commit

Permalink
flake.nix: override package name
Browse files Browse the repository at this point in the history
Otherwise `nix run` won't work.
  • Loading branch information
cole-h committed Feb 26, 2021
1 parent c72259c commit d9ff077
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,11 @@
inherit pkgs;
};
in
cargoNix.rootCrate.build;
cargoNix.rootCrate.build // {
# buildRustCrate prefixes the package's name with `rust_`,
# making `nix run` fail. Force the name to `agenix`.
name = "agenix";
};
in
{
inherit agenix;
Expand Down

0 comments on commit d9ff077

Please sign in to comment.