diff options
| author | BossCode45 <boss@tehbox.org> | 2025-06-18 18:20:45 +1200 |
|---|---|---|
| committer | BossCode45 <boss@tehbox.org> | 2025-06-18 18:20:45 +1200 |
| commit | c1b48e9f2bfc4ae0e48d0c8e35ad1f4a2189ec30 (patch) | |
| tree | 4aa62f97d00c3ce2b8b01f8b1c80e545d3772315 /my-pkgs/adom.nix | |
| parent | 950de2748306cf41038a6bbd98c849815b256c27 (diff) | |
| download | nixos-configuration-c1b48e9f2bfc4ae0e48d0c8e35ad1f4a2189ec30.tar.gz nixos-configuration-c1b48e9f2bfc4ae0e48d0c8e35ad1f4a2189ec30.zip | |
feat: Packaged adom and updated some stuff
Made a package for the game adom
Also switched form lightdm to sddm
YATwm works slightly better
Note: The current flake.nix will fail for anyone else as it uses a
path to find the flake
Diffstat (limited to 'my-pkgs/adom.nix')
| -rw-r--r-- | my-pkgs/adom.nix | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/my-pkgs/adom.nix b/my-pkgs/adom.nix new file mode 100644 index 0000000..25d2dae --- /dev/null +++ b/my-pkgs/adom.nix @@ -0,0 +1,51 @@ +{ stdenv, fetchurl, autoPatchelfHook, makeDesktopItem, makeWrapper, ncurses5, libtinfo, SDL2, SDL2_image, SDL2_mixer, SDL2_net, SDL2_ttf, luajit} : + +stdenv.mkDerivation rec { + pname = "adom"; + version = "3.3.3"; + src = fetchurl { + url = "https://sjc4.dl.dbolical.com/dl/2019/01/29/adom_noteye_linux_ubuntu_64_${version}.tar.gz?st=PcXL3PZSxDxr6H6v58PFfw==&e=1750223221"; + hash = "sha256-7c39tEPlrpWIL6QH0BIOLLrFFIlhEHPw5F3knMUh+BA="; + }; + + nativeBuildInputs = [ + autoPatchelfHook + makeWrapper + ]; + + buildInputs = [ + (ncurses5.override { unicodeSupport = false; }) + ncurses5 + SDL2 + SDL2_image + SDL2_mixer + SDL2_net + SDL2_ttf + luajit + stdenv.cc.cc.lib + ]; + + sourceRoot = "adom"; + installPhase = let desktopEntry = makeDesktopItem { + name = "adom"; + desktopName = "Adom"; + exec = "OUT_DIR/bin/adom"; + #path = "OUT_DIR/share"; + }; in '' + runHook preInstall + install -m755 -D adom $out/bin/adom + wrapProgram $out/bin/adom \ + --chdir $out/share + install -m644 -D lib/libnoteye.so $out/lib/libnoteye.so + mkdir -p $out/share + cp -r common $out/share/ + cp -r docs $out/share/ + cp -r games $out/share/ + cp -r gfx $out/share/ + cp -r licenses $out/share/ + cp -r sound $out/share/ + mkdir -p $out/share/applications + sed -e "s|OUT_DIR|$out|g" ${desktopEntry}/share/applications/adom.desktop > $out/share/applications/adom.desktop + runHook postInstall +''; +} |
