forked from tangled.org/core
Monorepo for Tangled

nix: add flake-compat

Signed-off-by: Ruby Iris Juric <ruby@srxl.me>

authored by foxgirl.engineering and committed by Tangled a2789275 422dd272

+17
default.nix
··· 1 + # Default setup from https://git.lix.systems/lix-project/flake-compat 2 + 3 + let 4 + lockFile = builtins.fromJSON (builtins.readFile ./flake.lock); 5 + flake-compat-node = lockFile.nodes.${lockFile.nodes.root.inputs.flake-compat}; 6 + flake-compat = builtins.fetchTarball { 7 + inherit (flake-compat-node.locked) url; 8 + sha256 = flake-compat-node.locked.narHash; 9 + }; 10 + 11 + flake = ( 12 + import flake-compat { 13 + src = ./.; 14 + } 15 + ); 16 + in 17 + flake.defaultNix
+15
flake.lock
··· 1 1 { 2 2 "nodes": { 3 + "flake-compat": { 4 + "flake": false, 5 + "locked": { 6 + "lastModified": 1751685974, 7 + "narHash": "sha256-NKw96t+BgHIYzHUjkTK95FqYRVKB8DHpVhefWSz/kTw=", 8 + "rev": "549f2762aebeff29a2e5ece7a7dc0f955281a1d1", 9 + "type": "tarball", 10 + "url": "https://git.lix.systems/api/v1/repos/lix-project/flake-compat/archive/549f2762aebeff29a2e5ece7a7dc0f955281a1d1.tar.gz?rev=549f2762aebeff29a2e5ece7a7dc0f955281a1d1" 11 + }, 12 + "original": { 13 + "type": "tarball", 14 + "url": "https://git.lix.systems/lix-project/flake-compat/archive/main.tar.gz" 15 + } 16 + }, 3 17 "flake-utils": { 4 18 "inputs": { 5 19 "systems": "systems" ··· 136 150 }, 137 151 "root": { 138 152 "inputs": { 153 + "flake-compat": "flake-compat", 139 154 "gomod2nix": "gomod2nix", 140 155 "htmx-src": "htmx-src", 141 156 "htmx-ws-src": "htmx-ws-src",
+5
flake.nix
··· 7 7 url = "github:nix-community/gomod2nix"; 8 8 inputs.nixpkgs.follows = "nixpkgs"; 9 9 }; 10 + flake-compat = { 11 + url = "https://git.lix.systems/lix-project/flake-compat/archive/main.tar.gz"; 12 + flake = false; 13 + }; 10 14 indigo = { 11 15 url = "github:oppiliappan/indigo"; 12 16 flake = false; ··· 50 54 inter-fonts-src, 51 55 sqlite-lib-src, 52 56 ibm-plex-mono-src, 57 + ... 53 58 }: let 54 59 supportedSystems = ["x86_64-linux" "x86_64-darwin" "aarch64-linux" "aarch64-darwin"]; 55 60 forAllSystems = nixpkgs.lib.genAttrs supportedSystems;