mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-29 10:23:29 +00:00
2641d97cbf
Reproduction script: # Bulk rewrite ./maintainers/scripts/sha-to-sri.py pkgs/by-name # Revert some packages which will need manual intervention for n in amdvlk azure-cli cargo-profiler corefonts flatito fluxcd gist perf_data_converter protoc-gen-js solana-cli swt verible; do git checkout -- "pkgs/by-name/${n:0:2}/${n}" done
28 lines
640 B
Nix
28 lines
640 B
Nix
{ lib, stdenv, fetchFromGitHub }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "su-exec";
|
|
version = "0.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ncopa";
|
|
repo = "su-exec";
|
|
rev = "v${version}";
|
|
hash = "sha256-eymE9r9Rm/u4El5wXHbkAh7ma5goWV0EdJIhsq+leIs=";
|
|
};
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/bin
|
|
cp -a su-exec $out/bin/su-exec
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "switch user and group id and exec";
|
|
mainProgram = "su-exec";
|
|
homepage = "https://github.com/ncopa/su-exec";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ zimbatm ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|