Skip to content

Instantly share code, notes, and snippets.

@sagehane
Last active June 16, 2023 02:41
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sagehane/74ffc1fd358adb897fbd7168df33f0d6 to your computer and use it in GitHub Desktop.
Save sagehane/74ffc1fd358adb897fbd7168df33f0d6 to your computer and use it in GitHub Desktop.
Nix env for Lenna's Inception
# 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;
};
}
# 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