nixpkgs/pkgs/by-name/hi/himitsu-firefox/package.nix
aleksana 571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
We are migrating packages that meet below requirements:

1. using `callPackage`
2. called path is a directory
3. overriding set is empty (`{ }`)
4. not containing path expressions other than relative path (to
makenixpkgs-vet happy)
5. not referenced by nix files outside of the directory, other
than`pkgs/top-level/all-packages.nix`
6. not referencing nix files outside of the directory
7. not referencing `default.nix` (since it's changed to `package.nix`)
8. `outPath` doesn't change after migration

The tool is here: https://github.com/Aleksanaa/by-name-migrate.
2024-11-09 20:04:51 +08:00

52 lines
1.2 KiB
Nix

{ lib
, stdenv
, fetchFromSourcehut
, hare
, himitsu
, zip
}:
stdenv.mkDerivation rec {
pname = "himitsu-firefox";
version = "0.3";
src = fetchFromSourcehut {
name = pname + "-src";
owner = "~sircmpwn";
repo = pname;
rev = "d6d0fdb30aefc93f6ff7d48e5737557051f1ffea";
hash = "sha256-5RbNdEGPnfDt1KDeU2LnuRsqqqMRyV/Dh2cgEWkz4vQ=";
};
nativeBuildInputs = [
hare
zip
];
buildInputs = [
himitsu
];
preConfigure = ''
export HARECACHE=$(mktemp -d)
'';
buildFlags = [ "LIBEXECDIR=$(out)/libexec" ];
# Only install the native component; per the docs:
# > To install the add-on for Firefox ESR, run make install-xpi. Be advised
# > that this will probably not work. The recommended installation procedure
# > for the native extension is to install it from addons.mozilla.org instead.
installTargets = [ "install-native" ];
installFlags = [ "PREFIX=" "DESTDIR=$(out)" ];
meta = with lib; {
homepage = "https://git.sr.ht/~sircmpwn/himitsu-firefox";
description = "Himitsu integration for Firefox";
license = licenses.gpl3Only;
maintainers = with maintainers; [ auchter ];
inherit (hare.meta) platforms badPlatforms;
broken = true;
};
}