❯ nix build --override-input cardanoHaskellPackageRepo path:/home/andrea/work/cardano-haskell-package-repo/_repo
warning: Git tree '/home/andrea/work/cardano-node' is dirty
warning: not writing modified lock file of flake 'git+file:///home/andrea/work/cardano-node':
• Updated input 'cardanoHaskellPackageRepo':
'github:input-output-hk/cardano-haskell-package-repo/d3aaed5fedc48ead7e606e2ccd0a3895c7bb6c7a' (2022-09-01)
→ 'path:/home/andrea/work/cardano-haskell-package-repo/_repo?lastModified=1662560110&narHash=sha256-9D%2fhQw%2f5NMiIhVGrDx4bqJK4ag7PLbuHSy9q%2f+mAORs=' (2022-09-07)
trace: To make project.plan-nix for cardano-node a fixed-output derivation but not materialized, set `plan-sha256` to the output of the 'calculateMaterializedSha' script in 'passthru'.
trace: To materialize project.plan-nix for cardano-node entirely, pass a writable path as the `materialized` argument and run the 'updateMaterialized' script in 'passthru'.
trace: To make project.plan-nix for haskell-project a fixed-output derivation but not materialized, set `plan-sha256` to the output of the 'calculateMaterializedSha' script in 'passthru'.
trace: To materialize project.plan-nix for haskell-project entirely, pass a writable path as the `materialized` argument and run the 'updateMaterialized' script in 'passthru'.
error: builder for '/nix/store/rimmd38cdqp1c2bjr4yn1gx9y46syqhm-plutus-core-1.0.0.0-3.cabal.drv' failed with exit code 1;
last 7 log lines:
>
> trying https://hackage.haskell.org/package/plutus-core-1.0.0.0/revision/3.cabal
> % Total % Received % Xferd Average Speed Time Time Time Current
> Dload Upload Total Spent Left Speed
> 0 59 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
> curl: (22) The requested URL returned error: 404
> error: cannot download plutus-core-1.0.0.0-3.cabal
/home/andrea/work/cardano-haskell-package-repo/_repo is a built haskell repository (so it has 01-index.tgz etc).
Somehow haskell.nix tries to fetch https://hackage.haskell.org/package/plutus-core-1.0.0.0/revision/3.cabal which instead should be available in _repo/index/plutus-core/1.0.0.0/plutus-core.cabal.
This happened
/home/andrea/work/cardano-haskell-package-repo/_repo
is a built haskell repository (so it has01-index.tgz
etc). Somehow haskell.nix tries to fetch https://hackage.haskell.org/package/plutus-core-1.0.0.0/revision/3.cabal which instead should be available in_repo/index/plutus-core/1.0.0.0/plutus-core.cabal
.