nixpkgs/pkgs/by-name/su/su-exec/package.nix
nicoo 2641d97cbf pkgs/by-name: Convert hashes to SRI format
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
2024-09-15 11:24:31 +02:00

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;
};
}