nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib, stdenv, fetchFromGitHub }:
2
3stdenv.mkDerivation rec {
4 pname = "su-exec";
5 version = "0.2";
6
7 src = fetchFromGitHub {
8 owner = "ncopa";
9 repo = "su-exec";
10 rev = "v${version}";
11 sha256 = "12vqlnpv48cjfh25sn98k1myc7h2wiv5qw2y2awgp6sipzv88abv";
12 };
13
14 installPhase = ''
15 mkdir -p $out/bin
16 cp -a su-exec $out/bin/su-exec
17 '';
18
19 meta = with lib; {
20 description = "switch user and group id and exec";
21 homepage = "https://github.com/ncopa/su-exec";
22 license = licenses.mit;
23 maintainers = with maintainers; [ zimbatm ];
24 platforms = platforms.linux;
25 };
26}