nixpkgs/pkgs/tools/security/su-exec/default.nix
volth 46420bbaa3 treewide: name -> pname (easy cases) (#66585)
treewide replacement of

stdenv.mkDerivation rec {
  name = "*-${version}";
  version = "*";

to pname
2019-08-15 13:41:18 +01:00

27 lines
616 B
Nix

{ stdenv, fetchFromGitHub }:
stdenv.mkDerivation rec {
pname = "su-exec";
version = "0.2";
src = fetchFromGitHub {
owner = "ncopa";
repo = "su-exec";
rev = "v${version}";
sha256 = "12vqlnpv48cjfh25sn98k1myc7h2wiv5qw2y2awgp6sipzv88abv";
};
installPhase = ''
mkdir -p $out/bin
cp -a su-exec $out/bin/su-exec
'';
meta = with stdenv.lib; {
description = "switch user and group id and exec";
homepage = "https://github.com/ncopa/su-exec";
license = licenses.mit;
maintainers = with maintainers; [ zimbatm ];
platforms = platforms.linux;
};
}