diff options
| author | Martin Fischer <martin@push-f.com> | 2025-11-14 08:35:35 +0100 |
|---|---|---|
| committer | Martin Fischer <martin@push-f.com> | 2025-11-14 08:36:40 +0100 |
| commit | 067e52bc973931680da025b4f012f92f94bdbe53 (patch) | |
| tree | 77713dee7e54fa5b161178f8907fe3cf5cc70a84 /default.nix | |
| parent | 036895f35ed6cb1b7832c0c1dc42c5d95a8b247f (diff) | |
fix(build): move src files to src/
The nix derivation src didn't use lib.cleanSource. Putting the source files
into a separate directory is even better since it avoids unnecessary rebuilds.
Diffstat (limited to 'default.nix')
| -rw-r--r-- | default.nix | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/default.nix b/default.nix index 1fb47c4..5b1f258 100644 --- a/default.nix +++ b/default.nix @@ -3,10 +3,9 @@ pkgs.stdenv.mkDerivation { name = "geopos-share"; - src = ./.; + src = ./src; installPhase = '' - mkdir -p $out - cp index.html script.js $out + cp -r $src $out ''; } |
