Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
41 lines
882 B
Nix
41 lines
882 B
Nix
{
|
|
lib,
|
|
pkg-config,
|
|
rustPlatform,
|
|
stdenv,
|
|
systemdLibs,
|
|
fetchFromGitHub,
|
|
nix-update-script,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage (finalAttrs: {
|
|
pname = "sftool";
|
|
version = "0.1.14";
|
|
src = fetchFromGitHub {
|
|
owner = "OpenSiFli";
|
|
repo = "sftool";
|
|
tag = finalAttrs.version;
|
|
hash = "sha256-xheGgtE9hZVNa4ceqQCrfiYJwlIuXm00J//0VeZ/afE=";
|
|
};
|
|
|
|
cargoHash = "sha256-pimr4OL709EWIoLk/Wq+QAiveLyR/V70nPuzYfZSH/o=";
|
|
|
|
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 = with lib.maintainers; [ eihqnh ];
|
|
mainProgram = "sftool";
|
|
};
|
|
})
|