mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-12 00:33:10 +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.
70 lines
1.2 KiB
Nix
70 lines
1.2 KiB
Nix
{ stdenv
|
|
, lib
|
|
, fetchFromGitHub
|
|
, python3Packages
|
|
, gettext
|
|
, git
|
|
, qt5
|
|
, gitUpdater
|
|
}:
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
pname = "git-cola";
|
|
version = "4.8.2";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "git-cola";
|
|
repo = "git-cola";
|
|
rev = "v${version}";
|
|
hash = "sha256-8OErZ6uKTWE245BoBu9lQyTLA43DfWaYDv3wbPWaufg=";
|
|
};
|
|
|
|
buildInputs = lib.optionals stdenv.hostPlatform.isLinux [
|
|
qt5.qtwayland
|
|
];
|
|
|
|
propagatedBuildInputs = with python3Packages; [
|
|
setuptools
|
|
git
|
|
pyqt5
|
|
qtpy
|
|
send2trash
|
|
polib
|
|
];
|
|
|
|
nativeBuildInputs = with python3Packages; [
|
|
setuptools-scm
|
|
gettext
|
|
qt5.wrapQtAppsHook
|
|
];
|
|
|
|
nativeCheckInputs = with python3Packages; [
|
|
git
|
|
pytestCheckHook
|
|
];
|
|
|
|
disabledTestPaths = [
|
|
"qtpy/"
|
|
"contrib/win32"
|
|
] ++ lib.optionals stdenv.hostPlatform.isDarwin [
|
|
"cola/inotify.py"
|
|
];
|
|
|
|
preFixup = ''
|
|
makeWrapperArgs+=("''${qtWrapperArgs[@]}")
|
|
'';
|
|
|
|
passthru.updateScript = gitUpdater {
|
|
rev-prefix = "v";
|
|
};
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/git-cola/git-cola";
|
|
description = "Sleek and powerful Git GUI";
|
|
license = licenses.gpl2;
|
|
maintainers = [ maintainers.bobvanderlinden ];
|
|
mainProgram = "git-cola";
|
|
};
|
|
}
|