nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 rustPlatform,
4 fetchFromGitHub,
5 nix-update-script,
6}:
7
8rustPlatform.buildRustPackage rec {
9 pname = "microfetch";
10 version = "0.4.9";
11
12 src = fetchFromGitHub {
13 owner = "NotAShelf";
14 repo = "microfetch";
15 tag = "v${version}";
16 hash = "sha256-F3yRJrOzBzSDLadVTZqOPMaqF+3NSzedi222EawqVWQ=";
17 };
18
19 cargoHash = "sha256-Ewtge3yaegzZM4DgUXSquyJM7xcpmSp6lLmMrfrgy4Y=";
20
21 passthru.updateScript = nix-update-script { };
22
23 meta = {
24 description = "Microscopic fetch script in Rust, for NixOS systems";
25 homepage = "https://github.com/NotAShelf/microfetch";
26 license = lib.licenses.gpl3Only;
27 maintainers = with lib.maintainers; [
28 nydragon
29 NotAShelf
30 ];
31 mainProgram = "microfetch";
32 platforms = lib.platforms.linux;
33 };
34}