mirror of
https://github.com/stancl/tenancy-docs.git
synced 2025-12-12 02:04:03 +00:00
nix: Use lib.cleanSource
The old hash worked for me locally but not on another machine when pulled from GH (reproduced locally too with --rebuild). The issue was that having *specific* detached git state makes composer produce different metadata in vendor/composer/installed.php (and other files). Being detached *from a branch* does not seem to have an effect, but being detached *from a commit* does. Therefore, the vendor/ metadata was highly affected by local git/jujutsu state.
This commit is contained in:
parent
ab2fe374b9
commit
7cf0c721f9
1 changed files with 3 additions and 3 deletions
|
|
@ -66,9 +66,9 @@
|
|||
composerDeps = php74.buildComposerProject2 {
|
||||
pname = "tenancy-docs-composer";
|
||||
version = "1.0.0";
|
||||
src = ./.;
|
||||
src = pkgs.lib.cleanSource ./.;
|
||||
|
||||
vendorHash = "sha256-X7yyQ/fV5vKul+jZlw1vMsPsMrBMVUGhMMDMJDUugsU=";
|
||||
vendorHash = "sha256-Gc5eqGEURko8Wigke7EZBFnEfvK8vXkLRsU3kv/tbFo=";
|
||||
|
||||
postInstall = ''
|
||||
cp -R ./vendor/* $out
|
||||
|
|
@ -77,7 +77,7 @@
|
|||
in pkgs.buildNpmPackage {
|
||||
pname = "tenancy-docs";
|
||||
version = "1.0.0";
|
||||
src = ./.;
|
||||
src = pkgs.lib.cleanSource ./.;
|
||||
|
||||
nodejs = pkgs.nodejs_24;
|
||||
npmDepsHash = "sha256-ufeN4BXCAlZZypViznlkXWosSgZ5nsPvMJJ0FVLXxJI=";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue