Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5}: 6 7stdenv.mkDerivation rec { 8 pname = "userhosts"; 9 version = "1.0.0"; 10 11 src = fetchFromGitHub { 12 owner = "figiel"; 13 repo = "hosts"; 14 rev = "v${version}"; 15 hash = "sha256-9uF0fYl4Zz/Ia2UKx7CBi8ZU8jfWoBfy2QSgTSwXo5A"; 16 }; 17 18 installFlags = [ "PREFIX=$(out)" ]; 19 20 meta = with lib; { 21 description = "Libc wrapper providing per-user hosts file"; 22 homepage = "https://github.com/figiel/hosts"; 23 maintainers = [ maintainers.bobvanderlinden ]; 24 license = licenses.cc0; 25 platforms = platforms.linux; 26 }; 27}