mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-20 19:16:11 +00:00

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
987 B
Nix
37 lines
987 B
Nix
{ lib, rustPlatform, fetchFromGitHub, git }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "glitter";
|
|
version = "1.6.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "milo123459";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-dImQLC7owPf2EB5COO5vjN3a6k7gJ88D2hMSUW2/wn4=";
|
|
};
|
|
|
|
cargoHash = "sha256-7JQcY3HCG3UQ0Mfz/+ZZ0axGEpQoH410FT72tjHW7EE=";
|
|
|
|
nativeCheckInputs = [
|
|
git
|
|
];
|
|
|
|
# tests require it to be in a git repository
|
|
preCheck = ''
|
|
git init
|
|
'';
|
|
|
|
# error: Found argument '--test-threads' which wasn't expected, or isn't valid in this context
|
|
checkFlags = [ "--skip" "runs_correctly" ];
|
|
|
|
meta = with lib; {
|
|
description = "Git wrapper that allows you to compress multiple commands into one";
|
|
homepage = "https://github.com/milo123459/glitter";
|
|
changelog = "https://github.com/Milo123459/glitter/releases/tag/v${version}";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ figsoda ];
|
|
mainProgram = "glitter";
|
|
};
|
|
}
|