forked from DGNum/colmena
flake.nix: Update nixpkgs, remove nix-eval-jobs
This commit is contained in:
parent
bf6b88867d
commit
b7262f6781
4 changed files with 5 additions and 48 deletions
31
flake.lock
31
flake.lock
|
@ -31,37 +31,13 @@
|
|||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nix-eval-jobs": {
|
||||
"inputs": {
|
||||
"flake-utils": [
|
||||
"flake-utils"
|
||||
],
|
||||
"nixpkgs": [
|
||||
"nixpkgs"
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1660713017,
|
||||
"narHash": "sha256-w6KLNkT/2fI7UvPg3NoKj7gve4CgUHpyWOFq0BUwW7o=",
|
||||
"owner": "zhaofengli",
|
||||
"repo": "nix-eval-jobs",
|
||||
"rev": "b4c078a4870c5b1a5b74420ca1dca41f4d75b7cc",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "zhaofengli",
|
||||
"ref": "colmena",
|
||||
"repo": "nix-eval-jobs",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1669542132,
|
||||
"narHash": "sha256-DRlg++NJAwPh8io3ExBJdNW7Djs3plVI5jgYQ+iXAZQ=",
|
||||
"lastModified": 1674641431,
|
||||
"narHash": "sha256-qfo19qVZBP4qn5M5gXc/h1MDgAtPA5VxJm9s8RUAkVk=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "a115bb9bd56831941be3776c8a94005867f316a7",
|
||||
"rev": "9b97ad7b4330aacda9b2343396eb3df8a853b4fc",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -75,7 +51,6 @@
|
|||
"inputs": {
|
||||
"flake-compat": "flake-compat",
|
||||
"flake-utils": "flake-utils",
|
||||
"nix-eval-jobs": "nix-eval-jobs",
|
||||
"nixpkgs": "nixpkgs",
|
||||
"stable": "stable"
|
||||
}
|
||||
|
|
20
flake.nix
20
flake.nix
|
@ -7,27 +7,20 @@
|
|||
|
||||
flake-utils.url = "github:numtide/flake-utils";
|
||||
|
||||
nix-eval-jobs = {
|
||||
# Temporary fork of nix-eval-job with changes to be upstreamed
|
||||
url = "github:zhaofengli/nix-eval-jobs/colmena";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
inputs.flake-utils.follows = "flake-utils";
|
||||
};
|
||||
|
||||
flake-compat = {
|
||||
url = "github:edolstra/flake-compat";
|
||||
flake = false;
|
||||
};
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs, flake-utils, nix-eval-jobs, ... }: let
|
||||
outputs = { self, nixpkgs, flake-utils, ... }: let
|
||||
supportedSystems = [ "x86_64-linux" "i686-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ];
|
||||
colmenaOptions = import ./src/nix/hive/options.nix;
|
||||
colmenaModules = import ./src/nix/hive/modules.nix;
|
||||
in flake-utils.lib.eachSystem supportedSystems (system: let
|
||||
pkgs = import nixpkgs {
|
||||
inherit system;
|
||||
overlays = [ self._evalJobsOverlay ];
|
||||
overlays = [];
|
||||
};
|
||||
in rec {
|
||||
# We still maintain the expression in a Nixpkgs-acceptable form
|
||||
|
@ -87,15 +80,6 @@
|
|||
];
|
||||
};
|
||||
}) // {
|
||||
# Temporary fork of nix-eval-job with changes to be upstreamed
|
||||
_evalJobsOverlay = final: prev: let
|
||||
patched = nix-eval-jobs.packages.${final.system}.nix-eval-jobs.overrideAttrs (old: {
|
||||
version = "2.9.0-colmena";
|
||||
});
|
||||
in {
|
||||
nix-eval-jobs = patched;
|
||||
};
|
||||
|
||||
overlay = final: prev: {
|
||||
colmena = final.callPackage ./package.nix { };
|
||||
};
|
||||
|
|
|
@ -2,7 +2,6 @@ let
|
|||
flake = (import ../flake-compat.nix).defaultNix;
|
||||
in import flake.inputs.stable.outPath {
|
||||
overlays = [
|
||||
flake._evalJobsOverlay
|
||||
flake.overlay
|
||||
|
||||
# Pass through original flake inputs
|
||||
|
|
|
@ -2,7 +2,6 @@ let
|
|||
flake = (import ../flake-compat.nix).defaultNix;
|
||||
in import flake.inputs.nixpkgs.outPath {
|
||||
overlays = [
|
||||
flake._evalJobsOverlay
|
||||
flake.overlay
|
||||
|
||||
# Pass through original flake inputs
|
||||
|
|
Loading…
Reference in a new issue