mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-07 13:33:12 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
33 lines
913 B
Nix
33 lines
913 B
Nix
{ lib, rustPlatform, fetchFromGitHub, fetchpatch }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "fundoc";
|
|
version = "0.5.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "daynin";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-8WWaYgfqGWrTV2EEeSPz1BN2ur7gsxFiHeDNMJdVDcw=";
|
|
};
|
|
|
|
cargoPatches = [
|
|
# updates outdated lock file and fixes a test
|
|
(fetchpatch {
|
|
name = "fix-tests.patch";
|
|
url = "https://github.com/daynin/fundoc/commit/7dd3cf53a1d1ed72b00bf38ea3a45ba4590da7ef.patch";
|
|
hash = "sha256-9Xsw2P4t9gzwc/qDU6U5+HZevPiQOOQo88gybC8QpyM=";
|
|
})
|
|
];
|
|
|
|
cargoHash = "sha256-yapFUkG2JfGb3N3iVEDpQunOyRnbNTs+q3zQ23B23/s=";
|
|
|
|
meta = with lib; {
|
|
description = "Language agnostic documentation generator";
|
|
mainProgram = "fundoc";
|
|
homepage = "https://github.com/daynin/fundoc";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ figsoda ];
|
|
};
|
|
}
|