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 | |
| parent | 036895f35ed6cb1b7832c0c1dc42c5d95a8b247f (diff) | |
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.
| -rw-r--r-- | default.nix | 5 | ||||
| -rw-r--r-- | src/index.html (renamed from index.html) | 0 | ||||
| -rw-r--r-- | src/script.js (renamed from script.js) | 0 |
3 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 ''; } diff --git a/index.html b/src/index.html index a3a747d..a3a747d 100644 --- a/index.html +++ b/src/index.html diff --git a/script.js b/src/script.js index 8e539d8..8e539d8 100644 --- a/script.js +++ b/src/script.js |
