From 98db97f610f2c9ae1cdd96f1d94667bff496b3d5 Mon Sep 17 00:00:00 2001 From: Gabriel Fontes Date: Sun, 21 Apr 2024 01:26:55 -0300 Subject: [PATCH 1/2] make supportedSystems overridable Using https://github.com/nix-systems --- flake.lock | 18 +++++++++++++++++- flake.nix | 6 +++--- 2 files changed, 20 insertions(+), 4 deletions(-) diff --git a/flake.lock b/flake.lock index 62648c5..6798dcc 100644 --- a/flake.lock +++ b/flake.lock @@ -18,7 +18,23 @@ }, "root": { "inputs": { - "nixpkgs": "nixpkgs" + "nixpkgs": "nixpkgs", + "systems": "systems" + } + }, + "systems": { + "locked": { + "lastModified": 1680978846, + "narHash": "sha256-Gtqg8b/v49BFDpDetjclCYXm8mAnTrUzR0JnE2nv5aw=", + "owner": "nix-systems", + "repo": "x86_64-linux", + "rev": "2ecfcac5e15790ba6ce360ceccddb15ad16d08a8", + "type": "github" + }, + "original": { + "owner": "nix-systems", + "repo": "x86_64-linux", + "type": "github" } } }, diff --git a/flake.nix b/flake.nix index 54a0eaa..8583631 100644 --- a/flake.nix +++ b/flake.nix @@ -2,11 +2,11 @@ description = " A material you color generation tool for linux "; inputs = { nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; + systems.url = "github:nix-systems/x86_64-linux"; }; - outputs = { self, nixpkgs }: + outputs = { self, nixpkgs, systems }: let - supportedSystems = [ "x86_64-linux" ]; - forAllSystems = nixpkgs.lib.genAttrs supportedSystems; + forAllSystems = nixpkgs.lib.genAttrs (import systems); pkgsFor = nixpkgs.legacyPackages; in { packages = forAllSystems (system: { From 960e80364075fde0a130887c934dd2889d8cdf62 Mon Sep 17 00:00:00 2001 From: Gabriel Fontes Date: Sun, 21 Apr 2024 01:27:18 -0300 Subject: [PATCH 2/2] support x86_64-linux + aarch64-linux by default --- flake.lock | 10 +++++----- flake.nix | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/flake.lock b/flake.lock index 6798dcc..bb2002b 100644 --- a/flake.lock +++ b/flake.lock @@ -24,16 +24,16 @@ }, "systems": { "locked": { - "lastModified": 1680978846, - "narHash": "sha256-Gtqg8b/v49BFDpDetjclCYXm8mAnTrUzR0JnE2nv5aw=", + "lastModified": 1689347949, + "narHash": "sha256-12tWmuL2zgBgZkdoB6qXZsgJEH9LR3oUgpaQq2RbI80=", "owner": "nix-systems", - "repo": "x86_64-linux", - "rev": "2ecfcac5e15790ba6ce360ceccddb15ad16d08a8", + "repo": "default-linux", + "rev": "31732fcf5e8fea42e59c2488ad31a0e651500f68", "type": "github" }, "original": { "owner": "nix-systems", - "repo": "x86_64-linux", + "repo": "default-linux", "type": "github" } } diff --git a/flake.nix b/flake.nix index 8583631..6456e56 100644 --- a/flake.nix +++ b/flake.nix @@ -2,7 +2,7 @@ description = " A material you color generation tool for linux "; inputs = { nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; - systems.url = "github:nix-systems/x86_64-linux"; + systems.url = "github:nix-systems/default-linux"; }; outputs = { self, nixpkgs, systems }: let