mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-29 09:04:17 +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.
37 lines
916 B
Nix
37 lines
916 B
Nix
{ lib
|
|
, rustPlatform
|
|
, fetchCrate
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "hayagriva";
|
|
version = "0.8.0";
|
|
|
|
src = fetchCrate {
|
|
inherit pname version;
|
|
hash = "sha256-B0q5jwJVDpxywTuSspsfDameDfEkok5oTz/Oty9LkOI=";
|
|
};
|
|
|
|
cargoHash = "sha256-N+3W4x5p5qas47uwVT0NrJNe9udE+0rQLx/ypo1pbR4=";
|
|
|
|
buildFeatures = [ "cli" ];
|
|
|
|
checkFlags = [
|
|
# requires internet access
|
|
"--skip=try_archive"
|
|
"--skip=always_archive"
|
|
|
|
# requires a separate large repository
|
|
"--skip=csl::tests::test_csl"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Work with references: Literature database management, storage, and citation formatting";
|
|
homepage = "https://github.com/typst/hayagriva";
|
|
changelog = "https://github.com/typst/hayagriva/releases/tag/v${version}";
|
|
license = with licenses; [ asl20 mit ];
|
|
maintainers = with maintainers; [ figsoda ];
|
|
mainProgram = "hayagriva";
|
|
};
|
|
}
|