nixpkgs/pkgs/os-specific/linux/gt/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

33 lines
891 B
Nix
Raw Normal View History

2021-12-23 23:31:29 +01:00
{ stdenv, lib, fetchFromGitHub, cmake, bash-completion, pkg-config, libconfig
, asciidoc
, libusbgx
}:
stdenv.mkDerivation {
pname = "gt";
2022-07-07 16:35:20 +02:00
version = "unstable-2022-05-08";
2021-12-23 23:31:29 +01:00
src = fetchFromGitHub {
owner = "linux-usb-gadgets";
repo = "gt";
2022-07-07 16:35:20 +02:00
rev = "7f9c45d98425a27444e49606ce3cf375e6164e8e";
sha256 = "sha256-km4U+t4Id2AZx6GpH24p2WNmvV5RVjJ14sy8tWLCQsk=";
2021-12-23 23:31:29 +01:00
};
2022-07-07 16:35:20 +02:00
sourceRoot = "source/source";
2021-12-23 23:31:29 +01:00
preConfigure = ''
cmakeFlagsArray+=("-DBASH_COMPLETION_COMPLETIONSDIR=$out/share/bash-completions/completions")
'';
2022-07-07 16:35:20 +02:00
2021-12-23 23:31:29 +01:00
nativeBuildInputs = [ cmake pkg-config asciidoc ];
2022-07-07 16:35:20 +02:00
2021-12-23 23:31:29 +01:00
buildInputs = [ bash-completion libconfig libusbgx];
meta = {
description = "Linux command line tool for setting up USB gadgets using configfs";
license = with lib.licenses; [ asl20 ];
maintainers = with lib.maintainers; [ lheckemann ];
platforms = lib.platforms.linux;
};
}