Skip to content

Commit

Permalink
Fix warning on nix lazy-trees
Browse files Browse the repository at this point in the history
`warning: Performing inefficient double copy of path '/home/artturin/nixgits/comma/' to the store. This can typically be avoided by rewriting an attribute like `src = ./.` to `src = builtins.path { path = ./.; name = "source"; }`.`
  • Loading branch information
Artturin committed Oct 13, 2024
1 parent b05a25e commit 0e0a5d2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@
in
naersk-lib.buildPackage {
pname = "comma";
root = ./.;
root = builtins.path {
name = "comma-source";
path = ./.;
};
nativeBuildInputs = with pkgs; [ makeWrapper ];
overrideMain = _: {
postInstall = ''
Expand Down

0 comments on commit 0e0a5d2

Please sign in to comment.