2023-07-25 15:36:57 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub }:
|
2021-07-12 20:29:41 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "userhosts";
|
|
|
|
version = "1.0.0";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "figiel";
|
|
|
|
repo = "hosts";
|
|
|
|
rev = "v${version}";
|
|
|
|
hash = "sha256-9uF0fYl4Zz/Ia2UKx7CBi8ZU8jfWoBfy2QSgTSwXo5A";
|
|
|
|
};
|
|
|
|
|
|
|
|
installFlags = [ "PREFIX=$(out)" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Libc wrapper providing per-user hosts file";
|
|
|
|
homepage = "https://github.com/figiel/hosts";
|
|
|
|
maintainers = [ maintainers.bobvanderlinden ];
|
|
|
|
license = licenses.cc0;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|