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 = "su-exec"; 9 version = "0.2"; 10 11 src = fetchFromGitHub { 12 owner = "ncopa"; 13 repo = "su-exec"; 14 rev = "v${version}"; 15 hash = "sha256-eymE9r9Rm/u4El5wXHbkAh7ma5goWV0EdJIhsq+leIs="; 16 }; 17 18 installPhase = '' 19 mkdir -p $out/bin 20 cp -a su-exec $out/bin/su-exec 21 ''; 22 23 meta = with lib; { 24 description = "Switch user and group id and exec"; 25 mainProgram = "su-exec"; 26 homepage = "https://github.com/ncopa/su-exec"; 27 license = licenses.mit; 28 maintainers = with maintainers; [ zimbatm ]; 29 platforms = platforms.linux; 30 }; 31}