nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 rustPlatform,
4 fetchFromGitHub,
5 nix-update-script,
6}:
7
8rustPlatform.buildRustPackage (finalAttrs: {
9 pname = "newdoc";
10 version = "2.18.5";
11
12 src = fetchFromGitHub {
13 owner = "redhat-documentation";
14 repo = "newdoc";
15 tag = "v${finalAttrs.version}";
16 hash = "sha256-oBPF2uN8YketMBmUTRwVLiQ4p1bA48j+9bTcfGTt+os=";
17 };
18
19 cargoHash = "sha256-9rpzmrSXqXs9JHi2eupqGUJKc8wWKxAWWoo8VtMauzg=";
20
21 passthru.updateScript = nix-update-script { };
22
23 meta = {
24 description = "Generate pre-populated module files formatted with AsciiDoc";
25 homepage = "https://redhat-documentation.github.io/newdoc/";
26 downloadPage = "https://github.com/redhat-documentation/newdoc";
27 changelog = "https://github.com/redhat-documentation/newdoc/blob/${finalAttrs.src.rev}/CHANGELOG.md";
28 license = lib.licenses.gpl3Plus;
29 maintainers = with lib.maintainers; [ iamanaws ];
30 mainProgram = "newdoc";
31 };
32})