nixpkgs/pkgs/by-name/hb/hblock/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

42 lines
911 B
Nix
Raw Normal View History

2023-05-08 14:22:21 +00:00
{ lib
, stdenv
, fetchFromGitHub
, makeWrapper
, coreutils
, gawk
, curl
, gnugrep
}:
stdenv.mkDerivation rec {
pname = "hblock";
2024-10-23 01:49:01 +00:00
version = "3.5.0";
2023-05-08 14:22:21 +00:00
src = fetchFromGitHub {
owner = "hectorm";
repo = "hblock";
rev = "v${version}";
2024-10-23 01:49:01 +00:00
hash = "sha256-XnBmKOZBHWyjNlv+L24LYns05oGTOJnNNzM0jCwZMuI=";
2023-05-08 14:22:21 +00:00
};
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";
2023-05-08 14:22:21 +00:00
homepage = "https://github.com/hectorm/hblock";
license = licenses.mit;
maintainers = with maintainers; [ alanpearce ];
2023-06-08 12:43:05 +00:00
platforms = platforms.unix;
2023-05-08 14:22:21 +00:00
};
}