Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, stdenv 3, fetchFromSourcehut 4, hare 5, himitsu 6, zip 7}: 8 9stdenv.mkDerivation rec { 10 pname = "himitsu-firefox"; 11 version = "0.3"; 12 13 src = fetchFromSourcehut { 14 name = pname + "-src"; 15 owner = "~sircmpwn"; 16 repo = pname; 17 rev = "d6d0fdb30aefc93f6ff7d48e5737557051f1ffea"; 18 hash = "sha256-5RbNdEGPnfDt1KDeU2LnuRsqqqMRyV/Dh2cgEWkz4vQ="; 19 }; 20 21 nativeBuildInputs = [ 22 hare 23 zip 24 ]; 25 26 buildInputs = [ 27 himitsu 28 ]; 29 30 preConfigure = '' 31 export HARECACHE=$(mktemp -d) 32 ''; 33 34 buildFlags = [ "LIBEXECDIR=$(out)/libexec" ]; 35 36 # Only install the native component; per the docs: 37 # > To install the add-on for Firefox ESR, run make install-xpi. Be advised 38 # > that this will probably not work. The recommended installation procedure 39 # > for the native extension is to install it from addons.mozilla.org instead. 40 installTargets = [ "install-native" ]; 41 installFlags = [ "PREFIX=" "DESTDIR=$(out)" ]; 42 43 meta = with lib; { 44 homepage = "https://git.sr.ht/~sircmpwn/himitsu-firefox"; 45 description = "Himitsu integration for Firefox"; 46 license = licenses.gpl3Only; 47 maintainers = with maintainers; [ auchter ]; 48 inherit (hare.meta) platforms badPlatforms; 49 broken = true; 50 }; 51}