default.nix (776B)
1 { 2 lib, 3 rustPlatform, 4 fetchFromSourcehut, 5 versionCheckHook, 6 }: 7 8 rustPlatform.buildRustPackage (finalAttrs: { 9 pname = "estampa"; 10 version = "0.1.3"; 11 12 src = fetchFromSourcehut { 13 owner = "~nixgoat"; 14 repo = "estampa"; 15 rev = "v${finalAttrs.version}"; 16 hash = "sha256-uBoYJ2HI55cS5HUQm7PMaVO+NKHQKZ9HtG06u/5f+vk="; 17 }; 18 19 cargoHash = "sha256-c9Y6PMvIty7dzVggMIQuz1iczvga6IILEyPR/REpFS8="; 20 21 nativeCheckInputs = [ 22 versionCheckHook 23 ]; 24 doInstallCheck = true; 25 26 __darwinAllowLocalNetworking = true; 27 28 meta = { 29 description = "Minimalist server for the Misfin protocol"; 30 homepage = "https://git.sr.ht/~nixgoat/estampa"; 31 license = lib.licenses.agpl3Plus; 32 maintainers = [ lib.maintainers.sikmir ]; 33 mainProgram = "estampa"; 34 }; 35 })