26 lines
720 B
Nix
26 lines
720 B
Nix
{ lib, stdenv, rustPlatform, fetchFromGitHub, pkg-config, libudev-zero }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "elf2uf2-rs";
|
|
version = "2038e9a199101ee8a16d046a87136be2a607001d";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "JoNil";
|
|
repo = pname;
|
|
rev = "${version}";
|
|
# sha256 = "sha256-CHuTpnAnD4I5PY47sceSxfjGdPZznXWfARE4YBfYoIg=";
|
|
# sha256 = "sha256-tvjncEmVHFurhRtWN6m8JT0XIgrti4QTnZ2XioBtqxo=";
|
|
sha256 = "sha256-CHuTpnAnD4I5PY47sceSxfjGdPZznXWfARE4YBfYoIg=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs = [
|
|
libudev-zero
|
|
];
|
|
|
|
# cargoHash = "sha256-OefAKK5rvh4HSHd26Pac4BSbcNO3ntqBReYepulV8Dk=";
|
|
cargoHash = "sha256-tvjncEmVHFurhRtWN6m8JT0XIgrti4QTnZ2XioBtqxo=";
|
|
}
|