flake: update nixpkgs, add formatter, run nix fmt

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-10 01:58:40 +01:00
parent d4c86b0417
commit a76effd096
4 changed files with 23 additions and 21 deletions

6
flake.lock generated
View File

@@ -2,11 +2,11 @@
"nodes": { "nodes": {
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1743583204, "lastModified": 1772963539,
"narHash": "sha256-F7n4+KOIfWrwoQjXrL2wD9RhFYLs2/GGe/MQY1sSdlE=", "narHash": "sha256-9jVDGZnvCckTGdYT53d/EfznygLskyLQXYwJLKMPsZs=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "2c8d3f48d33929642c1c12cd243df4cc7d2ce434", "rev": "9dcb002ca1690658be4a04645215baea8b95f31d",
"type": "github" "type": "github"
}, },
"original": { "original": {

View File

@@ -51,6 +51,8 @@
}; };
}; };
formatter = forAllSystems ({ pkgs, ... }: pkgs.nixfmt-tree);
packages = forAllSystems ( packages = forAllSystems (
{ pkgs }: { pkgs }:
{ {

View File

@@ -64,7 +64,8 @@ stdenv.mkDerivation {
qttools qttools
wrapQtAppsHook wrapQtAppsHook
icoutils icoutils
] ++ lib.optional stdenv.hostPlatform.isLinux copyDesktopItems; ]
++ lib.optional stdenv.hostPlatform.isLinux copyDesktopItems;
buildInputs = [ buildInputs = [
qtbase qtbase

View File

@@ -75,8 +75,7 @@ stdenv.mkDerivation rec {
runHook postInstall runHook postInstall
''; '';
preFixup = preFixup = ''
''
sed -i 's/net7.0/net8.0/' $out/share/vintagestory/Vintagestory.runtimeconfig.json sed -i 's/net7.0/net8.0/' $out/share/vintagestory/Vintagestory.runtimeconfig.json
sed -i 's/7.0.0/8.0.11/' $out/share/vintagestory/Vintagestory.runtimeconfig.json sed -i 's/7.0.0/8.0.11/' $out/share/vintagestory/Vintagestory.runtimeconfig.json