forked from tangled.org/core
this repo has no description

nix: add flake-compat

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

+17
default.nix
···
+
# Default setup from https://git.lix.systems/lix-project/flake-compat
+
+
let
+
lockFile = builtins.fromJSON (builtins.readFile ./flake.lock);
+
flake-compat-node = lockFile.nodes.${lockFile.nodes.root.inputs.flake-compat};
+
flake-compat = builtins.fetchTarball {
+
inherit (flake-compat-node.locked) url;
+
sha256 = flake-compat-node.locked.narHash;
+
};
+
+
flake = (
+
import flake-compat {
+
src = ./.;
+
}
+
);
+
in
+
flake.defaultNix
+15
flake.lock
···
{
"nodes": {
+
"flake-compat": {
+
"flake": false,
+
"locked": {
+
"lastModified": 1751685974,
+
"narHash": "sha256-NKw96t+BgHIYzHUjkTK95FqYRVKB8DHpVhefWSz/kTw=",
+
"rev": "549f2762aebeff29a2e5ece7a7dc0f955281a1d1",
+
"type": "tarball",
+
"url": "https://git.lix.systems/api/v1/repos/lix-project/flake-compat/archive/549f2762aebeff29a2e5ece7a7dc0f955281a1d1.tar.gz?rev=549f2762aebeff29a2e5ece7a7dc0f955281a1d1"
+
},
+
"original": {
+
"type": "tarball",
+
"url": "https://git.lix.systems/lix-project/flake-compat/archive/main.tar.gz"
+
}
+
},
"flake-utils": {
"inputs": {
"systems": "systems"
···
},
"root": {
"inputs": {
+
"flake-compat": "flake-compat",
"gomod2nix": "gomod2nix",
"htmx-src": "htmx-src",
"htmx-ws-src": "htmx-ws-src",
+5
flake.nix
···
url = "github:nix-community/gomod2nix";
inputs.nixpkgs.follows = "nixpkgs";
};
+
flake-compat = {
+
url = "https://git.lix.systems/lix-project/flake-compat/archive/main.tar.gz";
+
flake = false;
+
};
indigo = {
url = "github:oppiliappan/indigo";
flake = false;
···
inter-fonts-src,
sqlite-lib-src,
ibm-plex-mono-src,
+
...
}: let
supportedSystems = ["x86_64-linux" "x86_64-darwin" "aarch64-linux" "aarch64-darwin"];
forAllSystems = nixpkgs.lib.genAttrs supportedSystems;