@@ -0,0 +1,23 @@
1+{lib, stdenv, fetchFromGitHub, pkg-config, ncurses, libnl }:
2+
3+stdenv.mkDerivation rec {
4+ pname = "userhosts";
5+ version = "1.0.0";
6+
7+ src = fetchFromGitHub {
8+ owner = "figiel";
9+ repo = "hosts";
10+ rev = "v${version}";
11+ hash = "sha256-9uF0fYl4Zz/Ia2UKx7CBi8ZU8jfWoBfy2QSgTSwXo5A";
12+ };
13+
14+ installFlags = [ "PREFIX=$(out)" ];
15+
16+ meta = with lib; {
17+ description = "A libc wrapper providing per-user hosts file";
18+ homepage = "https://github.com/figiel/hosts";
19+ maintainers = [ maintainers.bobvanderlinden ];
20+ license = licenses.cc0;
21+ platforms = platforms.linux;
22+ };
23+}