nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 rustPlatform,
4 fetchFromGitHub,
5 pkg-config,
6 udev,
7}:
8
9rustPlatform.buildRustPackage rec {
10 pname = "framework-tool";
11 version = "0.5.0";
12
13 src = fetchFromGitHub {
14 owner = "FrameworkComputer";
15 repo = "framework-system";
16 tag = "v${version}";
17 hash = "sha256-wgleuZ0txkmv0+tyr31PiVTNyTSc+OPy/jJwL1Ryyu4=";
18 };
19
20 cargoHash = "sha256-W+k/PAcdwl9mvajB9D4SUH4o5VqpeD/BnK6ZEJzPpmI=";
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}