From 05fbd4f228a1bfd551e5b0825f02b53814b3504d Mon Sep 17 00:00:00 2001 From: Julian Stecklina Date: Mon, 25 Mar 2024 15:47:52 +0100 Subject: ci: limit to x86_64 and aarch64 linux targets --- flake.lock | 17 ++++++++++------- flake.nix | 10 ++++++++-- 2 files changed, 18 insertions(+), 9 deletions(-) diff --git a/flake.lock b/flake.lock index c83cf0a..d0dc48f 100644 --- a/flake.lock +++ b/flake.lock @@ -23,7 +23,9 @@ }, "flake-utils": { "inputs": { - "systems": "systems" + "systems": [ + "systems" + ] }, "locked": { "lastModified": 1710146030, @@ -60,7 +62,8 @@ "fenix": "fenix", "flake-utils": "flake-utils", "nixpkgs": "nixpkgs", - "rust-overlay": "rust-overlay" + "rust-overlay": "rust-overlay", + "systems": "systems" } }, "rust-analyzer-src": { @@ -105,16 +108,16 @@ }, "systems": { "locked": { - "lastModified": 1681028828, - "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", + "lastModified": 1689347949, + "narHash": "sha256-12tWmuL2zgBgZkdoB6qXZsgJEH9LR3oUgpaQq2RbI80=", "owner": "nix-systems", - "repo": "default", - "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", + "repo": "default-linux", + "rev": "31732fcf5e8fea42e59c2488ad31a0e651500f68", "type": "github" }, "original": { "owner": "nix-systems", - "repo": "default", + "repo": "default-linux", "type": "github" } } diff --git a/flake.nix b/flake.nix index 904be02..8919c5a 100644 --- a/flake.nix +++ b/flake.nix @@ -2,8 +2,14 @@ description = "Kernel development environments"; inputs = { + systems.url = "github:nix-systems/default-linux"; + nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable"; - flake-utils.url = "github:numtide/flake-utils"; + + flake-utils = { + url = "github:numtide/flake-utils"; + inputs.systems.follows = "systems"; + }; rust-overlay = { url = "github:oxalica/rust-overlay"; @@ -17,7 +23,7 @@ }; }; - outputs = { self, nixpkgs, rust-overlay, fenix, flake-utils }: + outputs = { self, nixpkgs, rust-overlay, fenix, flake-utils, ... }: flake-utils.lib.eachDefaultSystem (system: let pkgs = nixpkgs.legacyPackages."${system}"; -- cgit v1.3.1