tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
gcfflasher: init at 4.0.3-beta
fleaz
3 years ago
a5b2cf49
b9a0cd40
+48
2 changed files
expand all
collapse all
unified
split
pkgs
applications
misc
gcfflasher
default.nix
top-level
all-packages.nix
+46
pkgs/applications/misc/gcfflasher/default.nix
···
1
1
+
{ lib
2
2
+
, stdenv
3
3
+
, fetchFromGitHub
4
4
+
, pkg-config
5
5
+
, libgpiod
6
6
+
, cmake
7
7
+
}:
8
8
+
9
9
+
stdenv.mkDerivation rec {
10
10
+
pname = "gcfflasher";
11
11
+
version = "4.0.3-beta";
12
12
+
13
13
+
src = fetchFromGitHub {
14
14
+
owner = "dresden-elektronik";
15
15
+
repo = pname;
16
16
+
rev = "refs/tags/v${version}";
17
17
+
hash = "sha256-m+iDBfsHo+PLYd3K8JaKwhIXcnj+Q8w7gIgmHp+0plk=";
18
18
+
};
19
19
+
20
20
+
nativeBuildInputs = [
21
21
+
pkg-config
22
22
+
cmake
23
23
+
];
24
24
+
25
25
+
postPatch = ''
26
26
+
substituteInPlace CMakeLists.txt \
27
27
+
--replace 'main_windows.c' 'main_posix.c'
28
28
+
'';
29
29
+
30
30
+
buildInputs = lib.optionals stdenv.isLinux [
31
31
+
libgpiod
32
32
+
];
33
33
+
34
34
+
installPhase = ''
35
35
+
runHook preInstall
36
36
+
install -Dm0755 GCFFlasher $out/bin/GCFFlasher
37
37
+
runHook postInstall
38
38
+
'';
39
39
+
40
40
+
meta = with lib; {
41
41
+
description = "CFFlasher is the tool to program the firmware of dresden elektronik's Zigbee products";
42
42
+
license = licenses.bsd3;
43
43
+
homepage = "https://github.com/dresden-elektronik/gcfflasher";
44
44
+
maintainers = with maintainers; [ fleaz ];
45
45
+
};
46
46
+
}
+2
pkgs/top-level/all-packages.nix
···
7353
7353
gtk = gtk2-x11;
7354
7354
};
7355
7355
7356
7356
+
gcfflasher = callPackage ../applications/misc/gcfflasher { };
7357
7357
+
7356
7358
gdmap = callPackage ../tools/system/gdmap { };
7357
7359
7358
7360
gef = callPackage ../development/tools/misc/gef { };