Last active
August 6, 2024 18:21
-
-
Save sagehane/74ffc1fd358adb897fbd7168df33f0d6 to your computer and use it in GitHub Desktop.
Nix env for Lenna's Inception
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# A simple shell expression for running Lenna's Inception | |
# Put this in the same directory as the game and run `nix develop` | |
{ | |
description = "FHS setup for Lenna's Inception"; | |
outputs = { self, nixpkgs }: | |
let | |
pkgs = import nixpkgs { inherit system; }; | |
system = "x86_64-linux"; | |
in | |
{ | |
devShells.${system}.default = | |
(pkgs.buildFHSEnv { | |
name = "lennasinception-env"; | |
targetPkgs = pkgs: (with pkgs; [ | |
# ALSA users? | |
#alsa-lib | |
glibc | |
libpulseaudio | |
freetype | |
libglvnd | |
zlib | |
]) ++ (with pkgs.xorg; [ | |
libXext | |
libX11 | |
libXrender | |
libXtst | |
libXi | |
libXxf86vm | |
]); | |
runScript = "./lennasinception"; | |
}).env; | |
}; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# A simple shell expression for running Lenna's Inception | |
# Put this in the same directory as the game and run `nix-shell` | |
{ pkgs ? import <nixpkgs> { } }: | |
(pkgs.buildFHSEnv { | |
name = "lennasinception-env"; | |
targetPkgs = pkgs: (with pkgs; [ | |
# ALSA users? | |
#alsa-lib | |
glibc | |
libpulseaudio | |
freetype | |
libglvnd | |
zlib | |
]) ++ (with pkgs.xorg; [ | |
libXext | |
libX11 | |
libXrender | |
libXtst | |
libXi | |
libXxf86vm | |
]); | |
runScript = "./lennasinception"; | |
}).env |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment