forked from tangled.org/core
Monorepo for Tangled — https://tangled.org

flake.nix: switch nixpkgs from nixos-24.11 to nixos-unstable

NixOS 24.11 doesn't provide go-1.24 which is now required for this
project.

Additionally fix the `CGO_ENABLED` warnings that comes with the newer
nixpkgs version.

Changed files
+12 -13
+5 -5
flake.lock
···
"inter-fonts-src": {
"flake": false,
"locked": {
-
"lastModified": 1731680160,
+
"lastModified": 1731705360,
"narHash": "sha256-5vdKKvHAeZi6igrfpbOdhZlDX2/5+UvzlnCQV6DdqoQ=",
"type": "tarball",
"url": "https://github.com/rsms/inter/releases/download/v4.1/Inter-4.1.zip"
···
},
"nixpkgs": {
"locked": {
-
"lastModified": 1746055187,
-
"narHash": "sha256-3dqArYSMP9hM7Qpy5YWhnSjiqniSaT2uc5h2Po7tmg0=",
+
"lastModified": 1746663147,
+
"narHash": "sha256-Ua0drDHawlzNqJnclTJGf87dBmaO/tn7iZ+TCkTRpRc=",
"owner": "nixos",
"repo": "nixpkgs",
-
"rev": "3e362ce63e16b9572d8c2297c04f7c19ab6725a5",
+
"rev": "dda3dcd3fe03e991015e9a74b22d35950f264a54",
"type": "github"
},
"original": {
"owner": "nixos",
-
"ref": "nixos-24.11",
+
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
+7 -8
flake.nix
···
description = "atproto github";
inputs = {
-
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.11";
+
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
indigo = {
url = "github:oppiliappan/indigo";
flake = false;
···
inherit (gitignore.lib) gitignoreSource;
in {
overlays.default = final: prev: let
-
goModHash = "sha256-CmBuvv3duQQoc8iTW4244w1rYLGeqMQS+qQ3wwReZZg=";
+
goModHash = "sha256-zcfTNo7QsiihzLa4qHEX8uGGtbcmBn8TlSm0YHBRNw8=";
buildCmdPackage = name:
final.buildGoModule {
pname = name;
···
src = gitignoreSource ./.;
subPackages = ["cmd/${name}"];
vendorHash = goModHash;
-
CGO_ENABLED = 0;
+
env.CGO_ENABLED = 0;
};
in {
indigo-lexgen = final.buildGoModule {
···
doCheck = false;
subPackages = ["cmd/appview"];
vendorHash = goModHash;
-
CGO_ENABLED = 1;
+
env.CGO_ENABLED = 1;
stdenv = pkgsStatic.stdenv;
};
···
runHook postInstall
'';
-
CGO_ENABLED = 1;
+
env.CGO_ENABLED = 1;
};
knotserver-unwrapped = final.pkgsStatic.buildGoModule {
pname = "knotserver";
···
src = gitignoreSource ./.;
subPackages = ["cmd/knotserver"];
vendorHash = goModHash;
-
CGO_ENABLED = 1;
+
env.CGO_ENABLED = 1;
};
repoguard = buildCmdPackage "repoguard";
keyfetch = buildCmdPackage "keyfetch";
···
cp -f ${inter-fonts-src}/web/InterDisplay*.woff2 appview/pages/static/fonts/
cp -f ${ibm-plex-mono-src}/fonts/complete/woff2/IBMPlexMono-Regular.woff2 appview/pages/static/fonts/
'';
-
CGO_ENABLED=1;
+
env.CGO_ENABLED = 1;
};
});
apps = forAllSystems (system: let
···
};
};
}
-