diff options
author | Jörg Thalheim <Mic92@users.noreply.github.com> | 2018-10-22 11:01:22 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-22 11:01:22 +0100 |
commit | 119d539d7242394184ee2b9823571d8f67c55eef (patch) | |
tree | 54355d8b9723d37690513e52775ade91d29a452b /pkgs | |
parent | 5f33fbbc7beef255c411fcbc3c4dea30fb260d6d (diff) | |
parent | c90ad779a00bb21d8976756a147789a068a5556b (diff) | |
download | nixlib-119d539d7242394184ee2b9823571d8f67c55eef.tar nixlib-119d539d7242394184ee2b9823571d8f67c55eef.tar.gz nixlib-119d539d7242394184ee2b9823571d8f67c55eef.tar.bz2 nixlib-119d539d7242394184ee2b9823571d8f67c55eef.tar.lz nixlib-119d539d7242394184ee2b9823571d8f67c55eef.tar.xz nixlib-119d539d7242394184ee2b9823571d8f67c55eef.tar.zst nixlib-119d539d7242394184ee2b9823571d8f67c55eef.zip |
Merge pull request #47864 from uskudnik/add-brave-browser
brave: init at 0.24.0
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/applications/networking/browsers/brave/default.nix | 108 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 2 |
2 files changed, 110 insertions, 0 deletions
diff --git a/pkgs/applications/networking/browsers/brave/default.nix b/pkgs/applications/networking/browsers/brave/default.nix new file mode 100644 index 000000000000..d097e0b448ca --- /dev/null +++ b/pkgs/applications/networking/browsers/brave/default.nix @@ -0,0 +1,108 @@ +{ stdenv, lib, fetchurl, + dpkg, + alsaLib, + at-spi2-atk, + atk, + cairo, + cups, + dbus, + expat, + fontconfig, + freetype, + gdk_pixbuf, + glib, + gnome2, + gtk3, + libuuid, + libX11, + libXcomposite, + libXcursor, + libXdamage, + libXext, + libXfixes, + libXi, + libXrandr, + libXrender, + libXScrnSaver, + libXtst, + nspr, + nss, + pango, + udev, + xorg, + zlib +}: + +let rpath = lib.makeLibraryPath [ + alsaLib + at-spi2-atk + atk + cairo + cups + dbus + expat + fontconfig + freetype + gdk_pixbuf + glib + gnome2.GConf + gtk3 + libuuid + libX11 + libXcomposite + libXcursor + libXdamage + libXext + libXfixes + libXi + libXrandr + libXrender + libXScrnSaver + libXtst + nspr + nss + pango + udev + xorg.libxcb + zlib +]; + + +in stdenv.mkDerivation rec { + name = "brave"; + version = "0.25.2"; + + src = fetchurl { + url = "https://github.com/brave/browser-laptop/releases/download/v${version}dev/brave_${version}_amd64.deb"; + sha256 = "1r3rsa6szps7mvvpqyw0mg16zn36x451dxq4nmn2l5ds5cp1f017"; + }; + + phases = [ "unpackPhase" "installPhase" ]; + + nativeBuildInputs = [ dpkg ]; + + unpackPhase = "dpkg-deb -x $src ."; + + installPhase = '' + mkdir -p $out + + cp -R usr/* $out + + patchelf \ + --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \ + --set-rpath "${rpath}" $out/bin/brave + ''; + + meta = with stdenv.lib; { + homepage = "https://brave.com/"; + description = "Privacy-oriented browser for Desktop and Laptop computers"; + longDescription = '' + Brave browser blocks the ads and trackers that slow you down, + chew up your bandwidth, and invade your privacy. Brave lets you + contribute to your favorite creators automatically. + ''; + license = licenses.mpl20; + maintainers = [ maintainers.uskudnik ]; + platforms = [ "x86_64-linux" ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 23734344323e..cfbc6687f9d1 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -15822,6 +15822,8 @@ with pkgs; brackets = callPackage ../applications/editors/brackets { gconf = gnome2.GConf; }; + brave = callPackage ../applications/networking/browsers/brave { }; + notmuch-bower = callPackage ../applications/networking/mailreaders/notmuch-bower { }; bristol = callPackage ../applications/audio/bristol { }; |