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