Files
quantenzitrone 6b61249106 various: switch to finalAttrs pattern
this shouldn't create any rebuilds
2026-01-30 02:36:22 +01:00

28 lines
593 B
Nix

{
lib,
stdenv,
fetchFromGitHub,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "userhosts";
version = "1.0.0";
src = fetchFromGitHub {
owner = "figiel";
repo = "hosts";
rev = "v${finalAttrs.version}";
hash = "sha256-9uF0fYl4Zz/Ia2UKx7CBi8ZU8jfWoBfy2QSgTSwXo5A";
};
installFlags = [ "PREFIX=$(out)" ];
meta = {
description = "Libc wrapper providing per-user hosts file";
homepage = "https://github.com/figiel/hosts";
maintainers = [ lib.maintainers.bobvanderlinden ];
license = lib.licenses.cc0;
platforms = lib.platforms.linux;
};
})