nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 fetchgit,
5 cmake,
6 pkg-config,
7 installShellFiles,
8 libftdi1,
9 popt,
10}:
11
12stdenv.mkDerivation {
13 pname = "sd-mux-ctrl-unstable";
14 version = "2020-02-17";
15
16 src = fetchgit {
17 url = "https://git.tizen.org/cgit/tools/testlab/sd-mux";
18 rev = "9dd189d973da64e033a0c5c2adb3d94b23153d94";
19 hash = "sha256-b0uoxVPfSrqNt0wJoQho9jlpQQUjofgFm93P+UNFtDs=";
20 };
21
22 nativeBuildInputs = [
23 cmake
24 pkg-config
25 installShellFiles
26 ];
27
28 buildInputs = [
29 libftdi1
30 popt
31 ];
32
33 postInstall = ''
34 install -D -m 644 ../doc/man/sd-mux-ctrl.1 $out/share/man/man1/sd-mux-ctrl.1
35 installShellCompletion --cmd sd-mux-ctrl \
36 --bash ../etc/bash_completion.d/sd-mux-ctrl
37 '';
38
39 meta = with lib; {
40 description = "Tool for controlling multiple sd-mux devices";
41 homepage = "https://git.tizen.org/cgit/tools/testlab/sd-mux";
42 license = licenses.asl20;
43 maintainers = with maintainers; [
44 newam
45 sarcasticadmin
46 ];
47 platforms = platforms.unix;
48 mainProgram = "sd-mux-ctrl";
49 };
50}