9 stdenv.mkDerivation rec {
11 version = "4.0.3-beta";
13 src = fetchFromGitHub {
14 owner = "dresden-elektronik";
16 rev = "refs/tags/v${version}";
17 hash = "sha256-m+iDBfsHo+PLYd3K8JaKwhIXcnj+Q8w7gIgmHp+0plk=";
26 substituteInPlace CMakeLists.txt \
27 --replace 'main_windows.c' 'main_posix.c'
30 buildInputs = lib.optionals stdenv.isLinux [
36 install -Dm0755 GCFFlasher $out/bin/GCFFlasher
41 description = "CFFlasher is the tool to program the firmware of dresden elektronik's Zigbee products";
42 license = licenses.bsd3;
43 homepage = "https://github.com/dresden-elektronik/gcfflasher";
44 maintainers = with maintainers; [ fleaz ];