Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at python-updates 35 lines 1.1 kB view raw
1{ 2 lib, 3 rustPlatform, 4 fetchFromGitHub, 5 nix-update-script, 6 versionCheckHook, 7}: 8 9rustPlatform.buildRustPackage (finalAttrs: { 10 pname = "github-distributed-owners"; 11 version = "0.1.11"; 12 13 src = fetchFromGitHub { 14 owner = "andrewring"; 15 repo = "github-distributed-owners"; 16 tag = "v${finalAttrs.version}"; 17 hash = "sha256-oLRcH1lgRxlYIlyk3bPWO5YmCIq462YUjBjMSPOF7Ic="; 18 }; 19 20 cargoHash = "sha256-pt/GoXF/uSU78pZqG8PgFe+tlbwZH2qpGQD7jgC52NM="; 21 nativeInstallCheckInputs = [ versionCheckHook ]; 22 versionCheckProgramArg = "--version"; 23 doInstallCheck = true; 24 25 passthru.updateScript = nix-update-script { }; 26 27 meta = { 28 description = "Generate GitHub CODEOWNERS files from OWNERS files distributed through the file tree"; 29 homepage = "https://github.com/andrewring/github-distributed-owners"; 30 changelog = "https://github.com/andrewring/github-distributed-owners/releases/tag/v${finalAttrs.version}"; 31 license = lib.licenses.mit; 32 maintainers = with lib.maintainers; [ cameroncuttingedge ]; 33 mainProgram = "github-distributed-owners"; 34 }; 35})