Moved devShell to flake, comments in flake

This commit is contained in:
user 2024-12-26 02:49:11 +03:00
parent ad1491d944
commit e3ee174b53
2 changed files with 21 additions and 23 deletions

View File

@ -33,9 +33,30 @@
};
in
{
# Install the game on your own computer
packages.x86_64-linux = {
hl2 = pkgs.callPackage ./build.nix { inherit hl2-unwrapped; };
default = self.packages.x86_64-linux.hl2;
};
# Build the game for others
devShells.default = pkgs.mkShell rec {
nativeBuildInputs = with pkgs; [
makeWrapper
SDL2
freetype
fontconfig
zlib
bzip2
libjpeg
libpng
curl
openal
libopus
pkg-config
gcc
python3
];
};
};
}

View File

@ -1,23 +0,0 @@
{ pkgs ? import <nixpkgs> {} }:
pkgs.mkShell rec {
nativeBuildInputs = with pkgs; [
makeWrapper
SDL2
freetype
fontconfig
zlib
bzip2
libjpeg
libpng
curl
openal
libopus
pkg-config
gcc
];
buildInputs = [
(pkgs.python3.withPackages (ps: with ps; [
ipython
]))
];
}