flake.nix: Use own nix-eval-jobs fork

Currently we depend on changes that are not yet in a released
version of nix-eval-jobs. This pin needs to go before the 0.3
release.
This commit is contained in:
Zhaofeng Li 2022-01-22 17:50:53 -08:00
parent cf9a72a1d4
commit faf84d5718
3 changed files with 69 additions and 3 deletions

View file

@ -5,16 +5,22 @@
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
utils.url = "github:numtide/flake-utils";
# not yet upstreamed
nix-eval-jobs.url = "github:zhaofengli/nix-eval-jobs/colmena";
flake-compat = {
url = "github:edolstra/flake-compat";
flake = false;
};
};
outputs = { self, nixpkgs, utils, ... }: let
outputs = { self, nixpkgs, utils, nix-eval-jobs, ... }: let
supportedSystems = [ "x86_64-linux" "i686-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ];
in utils.lib.eachSystem supportedSystems (system: let
pkgs = import nixpkgs { inherit system; };
pkgs = import nixpkgs {
inherit system;
overlays = [ self._evalJobsOverlay ];
};
in rec {
# We still maintain the expression in a Nixpkgs-acceptable form
defaultPackage = self.packages.${system}.colmena;
@ -58,6 +64,14 @@
'';
};
}) // {
# For use in integration tests
_evalJobsOverlay =
(final: prev: {
nix-eval-jobs = (final.callPackage nix-eval-jobs.outPath {}).overrideAttrs (old: {
version = "0.0.3-colmena";
});
});
overlay = final: prev: {
colmena = final.callPackage ./package.nix { };
};