Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nom DerivationParseError with impure-derivations experimental feature #167

Open
MatthewCroughan opened this issue Nov 24, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@MatthewCroughan
Copy link

Looks like impure-derivations look slightly different than normal derivations, and contain an unexpected field.

user: matthew ~/tmp/h via ❄️  impure (shell) 
❯ cat f.nix 
{ stdenv }:
stdenv.mkDerivation {
  name = "impure";
  __impure = true; # marks this derivation as impure
  outputHashAlgo = "sha256";
  outputHashMode = "recursive";
  buildCommand = "date > $out";
}

user: matthew ~/tmp/h via ❄️  impure (shell) 
❯ nom build --impure --expr '(import <nixpkgs> {}).callPackage ./f.nix {}' -L
this derivation will be built:
nix-output-monitor error: DerivationParseError "string"
  /nix/store/ip3aw29yb2fvrd9ia5m7s3zd64lqjpip-impure.drv
resolved derivation: '/nix/store/ip3aw29yb2fvrd9ia5m7s3zd64lqjpip-impure.drv' -> '/nix/store/skhbmasyz1cbb8yn47vfgw6sbwslllxy-impure.drv'
nix-output-monitor error: DerivationParseError "string"
nix-output-monitor error: DerivationParseError "string"
nix-output-monitor error: DerivationParseError "string"
impure> building '/nix/store/skhbmasyz1cbb8yn47vfgw6sbwslllxy-impure.drv'
nix-output-monitor error: DerivationParseError "string"
┏━━━ Builds         
┗━ ∑ ⏵ 1 │ ✔ 0 │ ⏸ 1 │ Finished at 09:46:16 after 1s
@maralorn maralorn added the bug Something isn't working label Nov 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Next
Development

No branches or pull requests

2 participants