A collection of scripts

Add support for aarch64-linux to flake.nix

Technically, all architectures that support Linux should work, but I
don't have all the architectures on hand to actually test that.

yemou 1e613a83 b5bcc101

Changed files
+24 -23
+3 -3
flake.lock
··· 2 2 "nodes": { 3 3 "nixpkgs": { 4 4 "locked": { 5 - "lastModified": 1705316053, 6 - "narHash": "sha256-J2Ey5mPFT8gdfL2XC0JTZvKaBw/b2pnyudEXFvl+dQM=", 5 + "lastModified": 1715961556, 6 + "narHash": "sha256-+NpbZRCRisUHKQJZF3CT+xn14ZZQO+KjxIIanH3Pvn4=", 7 7 "owner": "NixOS", 8 8 "repo": "nixpkgs", 9 - "rev": "c3e128f3c0ecc1fb04aef9f72b3dcc2f6cecf370", 9 + "rev": "4a6b83b05df1a8bd7d99095ec4b4d271f2956b64", 10 10 "type": "github" 11 11 }, 12 12 "original": {
+21 -20
flake.nix
··· 3 3 nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; 4 4 }; 5 5 6 - outputs = { self, nixpkgs, ... }: { 7 - overlays.default = final: prev: rec { 8 - colorgrab = final.callPackage ./.nix/colorgrab.nix { }; 9 - prefon = final.callPackage ./.nix/prefon.nix { }; 10 - scr = final.callPackage ./.nix/scr.nix { }; 11 - thm = final.callPackage ./.nix/thm.nix { }; 12 - yemou-scripts = final.symlinkJoin { 13 - name = "yemou-scripts"; 14 - paths = [ colorgrab prefon scr thm ]; 6 + outputs = { self, nixpkgs, ... }: 7 + let 8 + forAllSystems = function: nixpkgs.lib.genAttrs [ "x86_64-linux" "aarch64-linux" ] 9 + (system: function (import nixpkgs { 10 + inherit system; 11 + overlays = [ self.overlays.default ]; 12 + })); 13 + in 14 + { 15 + overlays.default = final: prev: rec { 16 + colorgrab = final.callPackage ./.nix/colorgrab.nix { }; 17 + prefon = final.callPackage ./.nix/prefon.nix { }; 18 + scr = final.callPackage ./.nix/scr.nix { }; 19 + thm = final.callPackage ./.nix/thm.nix { }; 20 + yemou-scripts = final.symlinkJoin { 21 + name = "yemou-scripts"; 22 + paths = [ colorgrab prefon scr thm ]; 23 + }; 15 24 }; 16 - }; 17 25 18 - packages."x86_64-linux" = 19 - let 20 - pkgs = import nixpkgs { 21 - system = "x86_64-linux"; 22 - overlays = [ self.overlays.default ]; 23 - }; 24 - in 25 - { 26 + packages = forAllSystems (pkgs: { 26 27 colorgrab = pkgs.colorgrab; 27 28 default = pkgs.yemou-scripts; 28 29 prefon = pkgs.prefon; 29 30 scr = pkgs.scr; 30 31 thm = pkgs.thm; 31 32 yemou-scripts = pkgs.yemou-scripts; 32 - }; 33 - }; 33 + }); 34 + }; 34 35 }