1{
2 lib,
3 rustPlatform,
4 fetchFromGitHub,
5 pkg-config,
6 udev,
7}:
8
9rustPlatform.buildRustPackage rec {
10 pname = "framework-tool";
11 version = "0.4.5";
12
13 src = fetchFromGitHub {
14 owner = "FrameworkComputer";
15 repo = "framework-system";
16 tag = "v${version}";
17 hash = "sha256-WhdKU6vyOm5R9RInw9Fj8gELztLn4m5rFGgHbnItguU=";
18 };
19
20 cargoHash = "sha256-A7/Q4p26W0AzqlLguL2OJtmm7dAsBU/Yb636ScYXrPs=";
21
22 nativeBuildInputs = [ pkg-config ];
23 buildInputs = [ udev ];
24
25 meta = {
26 description = "Swiss army knife for Framework laptops";
27 homepage = "https://github.com/FrameworkComputer/framework-system";
28 license = lib.licenses.bsd3;
29 platforms = [ "x86_64-linux" ];
30 maintainers = with lib.maintainers; [
31 nickcao
32 leona
33 kloenk
34 johnazoidberg
35 ];
36 mainProgram = "framework_tool";
37 };
38}