Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, buildGoModule, fetchFromGitHub, nix-update-script, nixosTests }: 2 3buildGoModule rec { 4 pname = "rootlesskit"; 5 version = "1.1.1"; 6 7 src = fetchFromGitHub { 8 owner = "rootless-containers"; 9 repo = "rootlesskit"; 10 rev = "v${version}"; 11 hash = "sha256-QjGjP7GiJiP2bJE707Oc4wZ9o/gRmSboK9xGbbyG5EM="; 12 }; 13 14 vendorSha256 = "sha256-mNuj4/e1qH3P5MfbwPLddXWhc8aDcQuoSSHZ+S+zKWw="; 15 16 passthru = { 17 updateScript = nix-update-script { }; 18 tests = nixosTests.docker-rootless; 19 }; 20 21 meta = with lib; { 22 homepage = "https://github.com/rootless-containers/rootlesskit"; 23 description = ''Kind of Linux-native "fake root" utility, made for mainly running Docker and Kubernetes as an unprivileged user''; 24 license = licenses.asl20; 25 maintainers = with maintainers; [ offline ]; 26 platforms = platforms.linux; 27 }; 28}