icecat-bin: fix default.nix
This commit is contained in:
parent
16d173961d
commit
d569ee3a08
1 changed files with 6 additions and 11 deletions
|
@ -1,6 +1,6 @@
|
||||||
{ stdenv
|
{ stdenv
|
||||||
, lib
|
, lib
|
||||||
, fetchurl
|
, fetchzip
|
||||||
, autoPatchelfHook
|
, autoPatchelfHook
|
||||||
, wrapGAppsHook
|
, wrapGAppsHook
|
||||||
, gnome2
|
, gnome2
|
||||||
|
@ -45,18 +45,13 @@
|
||||||
, at-spi2-core
|
, at-spi2-core
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
|
||||||
mirror = "https://mirror.tochlab.net/pub/gnu/gnuzilla";
|
|
||||||
name = "icecat";
|
|
||||||
in
|
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "icecat-bin";
|
pname = "icecat-bin";
|
||||||
version = "60.7.0";
|
version = "60.7.0";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchzip {
|
||||||
url = "${mirror}/${version}/${name}-${version}.en-US.gnulinux-x86_64.tar.bz2";
|
url = "https://mirror.tochlab.net/pub/gnu/gnuzilla/${version}/icecat-${version}.en-US.gnulinux-x86_64.tar.bz2";
|
||||||
sha256 = "sha256-Tw3/565dmKY71EsrDb05+T1gBWORIU6FZYkqsa3jaoU=";
|
sha256 = "sha256-bEapbQIcZXQ0Tip/X1Q0guowpr3wNDYsFbHGmTbc5mE=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
|
@ -111,11 +106,11 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
unpackPhase = ''
|
unpackPhase = ''
|
||||||
mkdir -p $TMP/ $out/{opt,bin}
|
mkdir -p $TMP/ $out/{opt,bin}
|
||||||
tar -xvf $src -C $TMP/
|
cp $src/* $TMP/ -r
|
||||||
'';
|
'';
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
cp -r $TMP/icecat/* $out/opt/
|
cp -r $TMP/* $out/opt/
|
||||||
ln -sf $out/opt/icecat-bin $out/bin/icecat
|
ln -sf $out/opt/icecat-bin $out/bin/icecat
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue