git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #130045 from bobvanderlinden/init-userhosts

userhosts: init at 1.0.0

commit578dd8d634f0a4666f7481f6ea9e578114da74f8 authorSandro <sandro.jaeckel@gmail.com> dateTue 20 Jul 2021, 13:56 (5 years ago) parentd828b56263f2f6
2 files changed+25
pkgs/tools/networking/userhosts/default.nix+23 pkgs/top-level/all-packages.nix+2
pkgs/tools/networking/userhosts/default.nixnew file+23
@@ -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+}
pkgs/top-level/all-packages.nix+2
@@ -21951,6 +21951,8 @@ in
2195121951
2195221952 usbutils = callPackage ../os-specific/linux/usbutils { };
2195321953
21954+ userhosts = callPackage ../tools/networking/userhosts { };
21955+
2195421956 usermount = callPackage ../os-specific/linux/usermount { };
2195521957
2195621958 util-linux = if stdenv.isLinux then callPackage ../os-specific/linux/util-linux { }