biglybt: 3.5.0.0 -> 3.6.0.0
[NixPkgs.git] / pkgs / applications / misc / gcfflasher / default.nix
blobb9a49e17232996ecfc2f01cf90f22531c8e04343
1 { lib
2 , stdenv
3 , fetchFromGitHub
4 , pkg-config
5 , libgpiod
6 , cmake
7 }:
9 stdenv.mkDerivation rec {
10   pname = "gcfflasher";
11   version = "4.4.0";
13   src = fetchFromGitHub {
14     owner = "dresden-elektronik";
15     repo = pname;
16     rev = "refs/tags/v${version}";
17     hash = "sha256-o0S4NtgQ/Rlpmkk8pTocmP0N+5F7BX8lUsczOKjujwk=";
18   };
20   nativeBuildInputs = [
21     pkg-config
22     cmake
23   ];
25   buildInputs = lib.optionals stdenv.isLinux [
26     libgpiod
27   ];
29   installPhase = ''
30     runHook preInstall
31     install -Dm0755 GCFFlasher $out/bin/GCFFlasher
32     runHook postInstall
33   '';
35   meta = with lib; {
36     description = "CFFlasher is the tool to program the firmware of dresden elektronik's Zigbee products";
37     license = licenses.bsd3;
38     homepage = "https://github.com/dresden-elektronik/gcfflasher";
39     maintainers = with maintainers; [ fleaz ];
40     platforms = platforms.all;
41     mainProgram = "GCFFlasher";
42   };