summary refs log tree commit diff
diff options
context:
space:
mode:
authordan4ik <6057430gu@gmail.com>2021-07-02 15:13:33 +0700
committerdan4ik <6057430gu@gmail.com>2021-07-02 15:13:33 +0700
commit87699227bb751dcab926296c351f918f7f40691c (patch)
tree4a1c0272fb74ccd292a2d18f47d1b05bc4e20147
parentd8079260a3028ae3221d7a5467443ee3a9edd2b8 (diff)
downloadnixpkgs-87699227bb751dcab926296c351f918f7f40691c.tar
nixpkgs-87699227bb751dcab926296c351f918f7f40691c.tar.gz
nixpkgs-87699227bb751dcab926296c351f918f7f40691c.tar.bz2
nixpkgs-87699227bb751dcab926296c351f918f7f40691c.tar.lz
nixpkgs-87699227bb751dcab926296c351f918f7f40691c.tar.xz
nixpkgs-87699227bb751dcab926296c351f918f7f40691c.tar.zst
nixpkgs-87699227bb751dcab926296c351f918f7f40691c.zip
icecat-bin: init at 60.7.0
-rw-r--r--pkgs/applications/networking/browsers/icecat-bin/default.nix135
-rw-r--r--pkgs/top-level/all-packages.nix2
2 files changed, 137 insertions, 0 deletions
diff --git a/pkgs/applications/networking/browsers/icecat-bin/default.nix b/pkgs/applications/networking/browsers/icecat-bin/default.nix
new file mode 100644
index 00000000000..51d2516edb0
--- /dev/null
+++ b/pkgs/applications/networking/browsers/icecat-bin/default.nix
@@ -0,0 +1,135 @@
+{ stdenv
+, lib
+, fetchurl
+, autoPatchelfHook
+, wrapGAppsHook
+, gnome2
+, nss
+, xdg-utils
+, xorg
+, alsa-lib
+, atk
+, cairo
+, cups
+, curl
+, dbus
+, expat
+, fontconfig
+, freetype
+, gdk-pixbuf
+, glib
+, gtk3
+, libX11
+, libxcb
+, libXScrnSaver
+, libXcomposite
+, libXcursor
+, libXdamage
+, libXext
+, libXfixes
+, libXi
+, libXrandr
+, libXrender
+, libXtst
+, libdrm
+, libnotify
+, libopus
+, libpulseaudio
+, libuuid
+, libxshmfence
+, mesa
+, nspr
+, pango
+, systemd
+, at-spi2-atk
+, at-spi2-core
+, xlibs
+}:
+
+let
+  mirror = "https://mirror.tochlab.net/pub/gnu/gnuzilla";
+  name = "icecat";
+in
+
+stdenv.mkDerivation rec {
+  pname = "icecat-bin";
+  version = "60.7.0";
+
+  src = fetchurl {
+    url = "${mirror}/${version}/${name}-${version}.en-US.gnulinux-x86_64.tar.bz2";
+    sha256 = "sha256-Tw3/565dmKY71EsrDb05+T1gBWORIU6FZYkqsa3jaoU=";
+  };
+
+  nativeBuildInputs = [
+    autoPatchelfHook
+    wrapGAppsHook
+  ];
+
+  buildInputs = [
+    nss
+    xdg-utils
+    xorg.libxkbfile
+    alsa-lib
+    at-spi2-atk
+    at-spi2-core
+    atk
+    cairo
+    cups
+    curl
+    dbus
+    expat
+    fontconfig.lib
+    freetype
+    gdk-pixbuf
+    glib
+    gnome2.GConf
+    gnome2.gtk
+    gtk3
+    libX11
+    libXScrnSaver
+    libXcomposite
+    libXcursor
+    libXdamage
+    libXext
+    libXfixes
+    libXi
+    libXrandr
+    libXrender
+    libXtst
+    libdrm
+    libnotify
+    libopus
+    libuuid
+    libxcb
+    libxshmfence
+    mesa
+    nspr
+    nss
+    pango
+    xlibs.libXt
+    stdenv.cc.cc.lib
+  ];
+
+  unpackPhase = ''
+    mkdir -p $TMP/ $out/{opt,bin}
+    tar -xvf $src -C $TMP/
+  '';
+
+  installPhase = ''
+    cp -r $TMP/icecat/* $out/opt/
+    ln -sf $out/opt/icecat-bin $out/bin/icecat
+  '';
+
+  runtimeDependencies = [
+    libpulseaudio.out
+    (lib.getLib systemd)
+  ];
+
+  meta = with lib; {
+    description = "Binary build of the GNU version of the Mozilla Firefox browser";
+    homepage = "https://www.gnu.org/software/gnuzilla/";
+    license = licenses.gpl3Plus;
+    maintainers = with maintainers; [ dan4ik605743 ];
+    platforms = platforms.linux;
+  };
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index b6961be94b8..1d1bc6df8a8 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -24723,6 +24723,8 @@ in
 
   icewm = callPackage ../applications/window-managers/icewm {};
 
+  icecat-bin = callPackage ../applications/networking/browsers/icecat-bin { };
+
   id3v2 = callPackage ../applications/audio/id3v2 { };
 
   ideamaker = libsForQt5.callPackage ../applications/misc/ideamaker { };