nixpkgs/pkgs/by-name/sd/sd-mux-ctrl/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

32 lines
995 B
Nix

{ lib, stdenv, fetchgit, cmake, pkg-config, installShellFiles, libftdi1, popt}:
stdenv.mkDerivation rec {
pname = "sd-mux-ctrl-unstable";
version = "2020-02-17";
src = fetchgit {
url = "https://git.tizen.org/cgit/tools/testlab/sd-mux";
rev = "9dd189d973da64e033a0c5c2adb3d94b23153d94";
hash = "sha256-b0uoxVPfSrqNt0wJoQho9jlpQQUjofgFm93P+UNFtDs=";
};
nativeBuildInputs = [ cmake pkg-config installShellFiles ];
buildInputs = [ libftdi1 popt ];
postInstall = ''
install -D -m 644 ../doc/man/sd-mux-ctrl.1 $out/share/man/man1/sd-mux-ctrl.1
installShellCompletion --cmd sd-mux-ctrl \
--bash ../etc/bash_completion.d/sd-mux-ctrl
'';
meta = with lib; {
description = "Tool for controlling multiple sd-mux devices";
homepage = "https://git.tizen.org/cgit/tools/testlab/sd-mux";
license = licenses.asl20;
maintainers = with maintainers; [ newam sarcasticadmin ];
platforms = platforms.unix;
mainProgram = "sd-mux-ctrl";
};
}