blob: 47564f0af7aa5075caff4261c752cac8f584cfba (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
{
lib,
pkg-config,
rustPlatform,
stdenv,
systemdLibs,
fetchFromGitHub,
nix-update-script,
}:
rustPlatform.buildRustPackage (finalAttrs: {
pname = "sftool";
version = "0.2.5";
src = fetchFromGitHub {
owner = "OpenSiFli";
repo = "sftool";
tag = finalAttrs.version;
hash = "sha256-ty95ZIFztbYOzdNfWNiDbPNbY3Jqyz2e2PZphPWE1mA=";
};
cargoHash = "sha256-0V+n6QhKfzQVy6emzNX6178PtYTaHVSWL5tW5BvqEpU=";
nativeBuildInputs = [
pkg-config
];
buildInputs = lib.optionals stdenv.hostPlatform.isLinux [
systemdLibs # libudev-sys
];
passthru.updateScript = nix-update-script { };
meta = {
description = "Download tool for the SiFli family of chips";
homepage = "https://github.com/OpenSiFli/sftool";
license = lib.licenses.asl20;
maintainers = [ ];
mainProgram = "sftool";
};
})
|