aboutsummaryrefslogtreecommitdiff
path: root/my-pkgs/adom.nix
diff options
context:
space:
mode:
authorDylan <boss@tehbox.org>2026-10-17 21:53:43 +1300
committerDylan <boss@tehbox.org>2026-10-17 21:53:43 +1300
commit280e1bbe5e733128a451260685cc8ecd10a042a3 (patch)
tree78bab82353bbfa00f9a781015e246c274a5c983b /my-pkgs/adom.nix
parentbcfc69e424802276cc52fb6e00fb4a42e9c37816 (diff)
downloadnixos-configuration-280e1bbe5e733128a451260685cc8ecd10a042a3.tar.gz
nixos-configuration-280e1bbe5e733128a451260685cc8ecd10a042a3.zip
feat: Dendritic pattern
This re-write was done with the help of claude, and still needs a decent amount of changes before it properly follows the dendritic pattern
Diffstat (limited to 'my-pkgs/adom.nix')
-rw-r--r--my-pkgs/adom.nix51
1 files changed, 0 insertions, 51 deletions
diff --git a/my-pkgs/adom.nix b/my-pkgs/adom.nix
deleted file mode 100644
index e91842a..0000000
--- a/my-pkgs/adom.nix
+++ /dev/null
@@ -1,51 +0,0 @@
-{ 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
-'';
-}