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.
26 lines
747 B
Nix
26 lines
747 B
Nix
{ lib, fetchFromGitHub, python3, git, git-filter-repo }:
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
pname = "git-relevant-history";
|
|
version = "2022-09-15";
|
|
src = fetchFromGitHub {
|
|
owner = "rainlabs-eu";
|
|
repo = pname;
|
|
rev = "84552324d7cb4790db86282fc61bf98a05b7a4fd";
|
|
hash = "sha256-46a6TR1Hi3Lg2DTmOp1aV5Uhd4IukTojZkA3TVbTnRY=";
|
|
};
|
|
propagatedBuildInputs = [
|
|
git git-filter-repo
|
|
python3.pkgs.docopt
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Extract only relevant history from git repo";
|
|
homepage = "https://github.com/rainlabs-eu/git-relevant-history";
|
|
license = licenses.asl20;
|
|
platforms = platforms.all;
|
|
maintainers = [ maintainers.bendlas ];
|
|
mainProgram = "git-relevant-history";
|
|
};
|
|
}
|