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.
24 lines
659 B
Nix
24 lines
659 B
Nix
{ lib, rustPlatform, fetchFromGitHub }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "mdbook-open-on-gh";
|
|
version = "2.4.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "badboy";
|
|
repo = pname;
|
|
rev = version;
|
|
hash = "sha256-73738Vei7rQ67LQIOrHPGOtsBnHClaXClRWDmA5pP58=";
|
|
};
|
|
|
|
cargoHash = "sha256-TQBjgQaoI88xGdhkffNWRH6aZ99WWbkkpiPu4LqBD3g=";
|
|
|
|
meta = with lib; {
|
|
description = "mdbook preprocessor to add a open-on-github link on every page";
|
|
mainProgram = "mdbook-open-on-gh";
|
|
homepage = "https://github.com/badboy/mdbook-open-on-gh";
|
|
license = [ licenses.mpl20 ];
|
|
maintainers = with maintainers; [ matthiasbeyer ];
|
|
};
|
|
}
|