diff --git a/flake.lock b/flake.lock index c679e3c..0f133c7 100644 --- a/flake.lock +++ b/flake.lock @@ -17,16 +17,16 @@ }, "nixpkgs": { "locked": { - "lastModified": 1647186833, - "narHash": "sha256-62CMNrhICLcI/5jNSQDAQpUUvtvTXBsYWSU6ZlhPIzs=", - "owner": "Mic92", + "lastModified": 1650161686, + "narHash": "sha256-70ZWAlOQ9nAZ08OU6WY7n4Ij2kOO199dLfNlvO/+pf8=", + "owner": "NixOS", "repo": "nixpkgs", - "rev": "de173cbbb66e9b454e0e836cec1b807856934539", + "rev": "1ffba9f2f683063c2b14c9f4d12c55ad5f4ed887", "type": "github" }, "original": { - "owner": "Mic92", - "ref": "nix-unstable", + "owner": "NixOS", + "ref": "nixos-unstable", "repo": "nixpkgs", "type": "github" } diff --git a/flake.nix b/flake.nix index 5ab579e..8b5bc6c 100644 --- a/flake.nix +++ b/flake.nix @@ -1,9 +1,7 @@ { description = "Hydra's builtin hydra-eval-jobs as a standalone"; - # switch back when https://github.com/NixOS/nixpkgs/pull/164012 is merged - #inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; - inputs.nixpkgs.url = "github:Mic92/nixpkgs/nix-unstable"; + inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; inputs.flake-utils.url = "github:numtide/flake-utils"; outputs = { self, nixpkgs, flake-utils }: @@ -18,7 +16,9 @@ checks = let mkVariant = nix: (packages.nix-eval-jobs.override { - inherit nix; + # TODO: fix to stable after next nix release + nix = pkgs.nixUnstable; + #inherit nix; }).overrideAttrs (_: { name = "nix-eval-jobs-${nix.version}"; inherit (nix) version; @@ -46,7 +46,9 @@ touch $out ''; - build = mkVariant pkgs.nix; + # TODO fix to unstable in next release + build = mkVariant pkgs.nixUnstable; + #build = mkVariant pkgs.nix; build-unstable = mkVariant pkgs.nixUnstable; }; diff --git a/src/nix-eval-jobs.cc b/src/nix-eval-jobs.cc index fd33320..628a245 100644 --- a/src/nix-eval-jobs.cc +++ b/src/nix-eval-jobs.cc @@ -211,13 +211,15 @@ static void worker( auto localStore = state.store.dynamic_pointer_cast(); auto drvPath = localStore->printStorePath(drv->requireDrvPath()); auto storePath = localStore->parseStorePath(drvPath); - auto outputs = drv->queryOutputs(false); + auto outputs = drv->queryOutputs(); reply["name"] = drv->queryName(); reply["system"] = drv->querySystem(); reply["drvPath"] = drvPath; for (auto out : outputs){ - reply["outputs"][out.first] = localStore->printStorePath(out.second); + if (out.second) { + reply["outputs"][out.first] = localStore->printStorePath(*out.second); + } } if (myArgs.meta) {