Files
nixpkgs/pkgs/by-name/hb/hblock/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

55 lines
1003 B
Nix

{
lib,
stdenv,
fetchFromGitHub,
makeWrapper,
coreutils,
gawk,
curl,
gnugrep,
}:
stdenv.mkDerivation rec {
pname = "hblock";
version = "3.5.1";
src = fetchFromGitHub {
owner = "hectorm";
repo = "hblock";
rev = "v${version}";
hash = "sha256-cke3MppQm8p8B9+5IcvCplw6CtyRbgq46wHqli7U77I=";
};
buildInputs = [
coreutils
curl
gnugrep
gawk
];
nativeBuildInputs = [ makeWrapper ];
installFlags = [
"prefix=$(out)"
];
postInstall = ''
wrapProgram "$out/bin/hblock" \
--prefix PATH : ${
lib.makeBinPath [
coreutils
curl
gnugrep
gawk
]
}
'';
meta = with lib; {
description = "Improve your security and privacy by blocking ads, tracking and malware domains";
mainProgram = "hblock";
homepage = "https://github.com/hectorm/hblock";
license = licenses.mit;
maintainers = with maintainers; [ alanpearce ];
platforms = platforms.unix;
};
}