From 9f9facd90504283f47c1b2714b2b6b6fb2716ee6 Mon Sep 17 00:00:00 2001 From: Zhaofeng Li Date: Sun, 8 Sep 2024 12:44:22 -0400 Subject: [PATCH] flake: Remove flake-utils --- flake.lock | 34 ---------------------------------- flake.nix | 9 +++++++-- 2 files changed, 7 insertions(+), 36 deletions(-) diff --git a/flake.lock b/flake.lock index 1e31e3b..944a4aa 100644 --- a/flake.lock +++ b/flake.lock @@ -56,24 +56,6 @@ "type": "github" } }, - "flake-utils": { - "inputs": { - "systems": "systems" - }, - "locked": { - "lastModified": 1710146030, - "narHash": "sha256-SZ5L6eA7HJ/nmkzGG7/ISclqe6oZdOZTNoesiInkXPQ=", - "owner": "numtide", - "repo": "flake-utils", - "rev": "b1d9ab70662946ef0850d488da1c9019f3a9752a", - "type": "github" - }, - "original": { - "owner": "numtide", - "repo": "flake-utils", - "type": "github" - } - }, "nixpkgs": { "locked": { "lastModified": 1724999960, @@ -111,25 +93,9 @@ "crane": "crane", "flake-compat": "flake-compat", "flake-parts": "flake-parts", - "flake-utils": "flake-utils", "nixpkgs": "nixpkgs", "nixpkgs-stable": "nixpkgs-stable" } - }, - "systems": { - "locked": { - "lastModified": 1681028828, - "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", - "owner": "nix-systems", - "repo": "default", - "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", - "type": "github" - }, - "original": { - "owner": "nix-systems", - "repo": "default", - "type": "github" - } } }, "root": "root", diff --git a/flake.nix b/flake.nix index 68667fd..868ea70 100644 --- a/flake.nix +++ b/flake.nix @@ -4,7 +4,6 @@ inputs = { nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; nixpkgs-stable.url = "github:NixOS/nixpkgs/nixos-24.05"; - flake-utils.url = "github:numtide/flake-utils"; flake-parts = { url = "github:hercules-ci/flake-parts"; @@ -23,7 +22,13 @@ }; outputs = inputs @ { self, flake-parts, ... }: let - supportedSystems = inputs.flake-utils.lib.defaultSystems ++ [ "riscv64-linux" ]; + supportedSystems = [ + "x86_64-linux" + "aarch64-linux" + "riscv64-linux" + "aarch64-darwin" + "x86_64-darwin" + ]; inherit (inputs.nixpkgs) lib;