Update nix dev env (#41886)

Update flake
This commit is contained in:
Tobias Berger
2025-12-17 23:00:57 +01:00
committed by GitHub
parent 3032251444
commit 97508e81a8
3 changed files with 35 additions and 19 deletions

8
flake.lock generated
View File

@@ -20,16 +20,16 @@
},
"nixpkgs": {
"locked": {
"lastModified": 1737097711,
"narHash": "sha256-Zql7TDxEMAOASLSu0wBlfM5SIY+4Pz2R/k17O/asCYc=",
"lastModified": 1765890948,
"narHash": "sha256-Xe6fZzDS8uy9f17Pv6NEeBS9R6MFyuepbQUy6Xq/wH0=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "3cbc78cfa611511c04f47c4932509f9dbdf4381a",
"rev": "f92e917d0cefd3eca9d56ae25d689da841a989fd",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "release-24.11",
"ref": "release-25.11",
"repo": "nixpkgs",
"type": "github"
}

View File

@@ -1,13 +1,22 @@
{
description = "Development environment for Space Station 14";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/release-24.11";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/release-25.11";
inputs.flake-utils.url = "github:numtide/flake-utils";
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system: let
pkgs = nixpkgs.legacyPackages.${system};
in {
devShells.default = import ./shell.nix { inherit pkgs; };
});
outputs =
{
self,
nixpkgs,
flake-utils,
}:
flake-utils.lib.eachDefaultSystem (
system:
let
pkgs = nixpkgs.legacyPackages.${system};
in
{
devShells.default = import ./shell.nix { inherit pkgs; };
}
);
}

View File

@@ -1,16 +1,20 @@
{ pkgs ? (let lock = builtins.fromJSON (builtins.readFile ./flake.lock);
in import (builtins.fetchTarball {
url =
"https://github.com/NixOS/nixpkgs/archive/${lock.nodes.nixpkgs.locked.rev}.tar.gz";
sha256 = lock.nodes.nixpkgs.locked.narHash;
}) { }) }:
{
pkgs ? (
let
lock = builtins.fromJSON (builtins.readFile ./flake.lock);
in
import (builtins.fetchTarball {
url = "https://github.com/NixOS/nixpkgs/archive/${lock.nodes.nixpkgs.locked.rev}.tar.gz";
sha256 = lock.nodes.nixpkgs.locked.narHash;
}) { }
),
}:
let
dependencies = with pkgs; [
dotnetCorePackages.sdk_9_0
icu
glfw
SDL2
libGL
openal
freetype
@@ -43,8 +47,11 @@ let
at-spi2-core
cups
python3
wayland
nixfmt
];
in pkgs.mkShell {
in
pkgs.mkShell {
name = "space-station-14-devshell";
buildInputs = [ pkgs.gtk3 ];
packages = dependencies;