mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-18 07:59:03 +00:00
Merge pull request #333120 from newAM/sd-mux-ctrl
sd-mux-ctrl: add shell completions
This commit is contained in:
commit
9b7c719dda
@ -1,4 +1,4 @@
|
||||
{ lib, stdenv, fetchgit, cmake, pkg-config, libftdi1, popt}:
|
||||
{ lib, stdenv, fetchgit, cmake, pkg-config, installShellFiles, libftdi1, popt}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "sd-mux-ctrl-unstable";
|
||||
@ -10,19 +10,21 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "0fxl8m1zkkyxkc2zi8930m0njfgnd04a22acny6vljnzag2shjvg";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ cmake pkg-config ];
|
||||
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://wiki.tizen.org/SD_MUX";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ sarcasticadmin ];
|
||||
maintainers = with maintainers; [ newam sarcasticadmin ];
|
||||
platforms = platforms.unix;
|
||||
mainProgram = "sd-mux-ctrl";
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user