summary refs log tree commit diff
path: root/pkgs/desktops/maxx
diff options
context:
space:
mode:
authorgnidorah <gnidorah@users.noreply.github.com>2017-07-04 13:42:53 +0300
committergnidorah <gnidorah@users.noreply.github.com>2017-07-04 13:42:53 +0300
commit7f13a3f5b8e8241c97612f74f8603025d1259c4d (patch)
treeb78b933006b255765d89778b00728182ed95851b /pkgs/desktops/maxx
parent87cfea92f894e6c8fa57eedaa32d73234559473d (diff)
downloadnixpkgs-7f13a3f5b8e8241c97612f74f8603025d1259c4d.tar
nixpkgs-7f13a3f5b8e8241c97612f74f8603025d1259c4d.tar.gz
nixpkgs-7f13a3f5b8e8241c97612f74f8603025d1259c4d.tar.bz2
nixpkgs-7f13a3f5b8e8241c97612f74f8603025d1259c4d.tar.lz
nixpkgs-7f13a3f5b8e8241c97612f74f8603025d1259c4d.tar.xz
nixpkgs-7f13a3f5b8e8241c97612f74f8603025d1259c4d.tar.zst
nixpkgs-7f13a3f5b8e8241c97612f74f8603025d1259c4d.zip
maxx: init at 1.0.0
Diffstat (limited to 'pkgs/desktops/maxx')
-rw-r--r--pkgs/desktops/maxx/default.nix65
1 files changed, 65 insertions, 0 deletions
diff --git a/pkgs/desktops/maxx/default.nix b/pkgs/desktops/maxx/default.nix
new file mode 100644
index 00000000000..95cbd617dc2
--- /dev/null
+++ b/pkgs/desktops/maxx/default.nix
@@ -0,0 +1,65 @@
+{ stdenv, fetchurl
+, libX11, libXext, libXi, libXau, libXrender, libXft, libXmu, libSM, libXcomposite, libXfixes, libXpm
+, libXinerama, libXdamage, libICE, libXtst
+, fontconfig, pango, cairo, glib, libxml2, atk, gtk2, gdk_pixbuf, mesa_noglu, ncurses5
+, bash }:
+
+let
+  version = "Indy-1.0.0";
+
+  deps = [
+    libX11 libXext libXi libXau libXrender libXft libXmu libSM libXcomposite libXfixes libXpm
+    libXinerama libXdamage libICE libXtst
+    stdenv.cc.cc fontconfig pango cairo glib libxml2 atk gtk2 gdk_pixbuf mesa_noglu ncurses5
+  ];
+in stdenv.mkDerivation {
+  name = "MaXX-${version}";
+
+  srcs = [
+    (fetchurl {
+      url = "http://maxxinteractive.com/downloads/${version}/FEDORA/MaXX-${version}-NO-ARCH.tar.gz";
+      sha256 = "004ia6xl8y2hmbq7j98ppgiwffjc62224x9q6w5z17sjibs8xcvx";
+    })
+    (fetchurl {
+      url = "http://maxxinteractive.com/downloads/${version}/FEDORA/MaXX-${version}-x86_64.tar.gz";
+      sha256 = "134z7hinh01w43m6xiqgh939w5w79860g4kzsd911rfcl3z353av";
+    })
+  ];
+
+  buildPhase = ''
+    while IFS= read -r -d $'\0' i; do
+      if isELF "$i"; then
+        patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" "$i" || true
+        patchelf --set-rpath "${stdenv.lib.makeLibraryPath deps}" "$i"
+      fi
+    done < <(find "." -type f -print0)
+
+    substituteInPlace bin/adminterm \
+      --replace /bin/bash ${bash}/bin/bash
+
+    substituteInPlace share/misc/HOME/initMaXX-Desktop-Home.sh \
+      --replace "cp " "cp --no-preserve=mode "
+  '';
+
+  installPhase = ''
+    maxx=$out/opt/MaXX
+    mkdir -p "$maxx" $out/share
+
+    mv -- ./* "$maxx"
+    ln -s $maxx/share/icons $out/share
+    ln -s $maxx/share/themes $out/share
+  '';
+
+  meta = with stdenv.lib; {
+    description = "A replica of IRIX Interactive Desktop";
+    homepage = http://www.maxxinteractive.com;
+    license = licenses.free;
+    maintainers = [ maintainers.gnidorah ];
+    platforms = ["x86_64-linux"];
+    hydraPlatforms = [];
+    longDescription = ''
+      A clone of IRIX Interactive Desktop made in agreement with SGI. 
+      Provides simple and fast retro desktop environment.
+    '';
+  };
+}