2024-08-04 21:42:56 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
rustPlatform,
|
|
|
|
fetchFromGitHub,
|
2024-08-17 09:50:16 +00:00
|
|
|
nix-update-script,
|
2024-08-04 21:42:56 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "microfetch";
|
2024-08-17 09:49:48 +00:00
|
|
|
version = "0.4.0";
|
2024-08-04 21:42:56 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "NotAShelf";
|
|
|
|
repo = "microfetch";
|
|
|
|
rev = "refs/tags/v${version}";
|
2024-08-17 09:49:48 +00:00
|
|
|
hash = "sha256-bRN16Iq9m6HaeT+KWCpeukTu1tnMOvtM6lDHO5OiIS4=";
|
2024-08-04 21:42:56 +00:00
|
|
|
};
|
|
|
|
|
2024-08-17 09:49:48 +00:00
|
|
|
cargoHash = "sha256-dGlAiPrOWFI8ogo/1S2ZK/ZPBtKGCyA72B+6B4bp5Mg=";
|
2024-08-04 21:42:56 +00:00
|
|
|
|
2024-08-17 09:50:16 +00:00
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
|
2024-08-04 21:42:56 +00:00
|
|
|
meta = {
|
|
|
|
description = "Microscopic fetch script in Rust, for NixOS systems";
|
|
|
|
homepage = "https://github.com/NotAShelf/microfetch";
|
|
|
|
license = lib.licenses.gpl3Only;
|
2024-08-17 09:50:28 +00:00
|
|
|
maintainers = with lib.maintainers; [
|
|
|
|
nydragon
|
|
|
|
NotAShelf
|
|
|
|
];
|
2024-08-04 21:42:56 +00:00
|
|
|
mainProgram = "microfetch";
|
|
|
|
platforms = lib.platforms.linux;
|
|
|
|
};
|
|
|
|
}
|