Skip to content

Commit

Permalink
Merge pull request #163 from DeterminateSystems/edolstra/fix-162
Browse files Browse the repository at this point in the history
Handle unset derivation outputs attribute
  • Loading branch information
edolstra authored Sep 13, 2024
2 parents 8b800df + 68bee5e commit 8c17c5f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/mixed-flake.nix → src/flake-contents/flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
allSchemas = (flake.outputs.schemas or defaultSchemas) // schemaOverrides;

# FIXME: make this configurable
defaultSchemas = (builtins.getFlake "https://api.flakehub.com/f/pinned/DeterminateSystems/flake-schemas/0.1.3/0190b841-54d3-7b7a-8550-24942bc38caf/source.tar.gz?narHash=sha256-c2AZH9cOnSpPXV8Lwy19/I8EgW7G%2BE%2BZh6YQBZZwzxI%3D").schemas;
defaultSchemas = (builtins.getFlake "https://api.flakehub.com/f/pinned/DeterminateSystems/flake-schemas/0.1.5/0190ef2f-61e0-794b-ba14-e82f225e55e6/source.tar.gz?narHash=sha256-G5CxYeJVm4lcEtaO87LKzOsVnWeTcHGKbKxNamNWgOw%3D").schemas;

# Ignore legacyPackages for now, since it's very big and throws uncatchable errors.
schemaOverrides.legacyPackages = {
Expand Down Expand Up @@ -90,7 +90,7 @@
value = attrs.derivation.${outputName}.outPath;
}
)
attrs.derivation.outputs
(attrs.derivation.outputs or [ "out" ])
)
else
null;
Expand Down
2 changes: 1 addition & 1 deletion src/flake_info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ impl FlakeMetadata {
// error: path '/tmp' is a symlink
let tempdir_path = tempdir.path().canonicalize()?;

let flake_contents = include_str!("mixed-flake.nix")
let flake_contents = include_str!("flake-contents/flake.nix")
.replace(
FLAKE_URL_PLACEHOLDER_UUID,
&self.flake_locked_url.escape_default().to_string(),
Expand Down

0 comments on commit 8c17c5f

Please sign in to comment.