2022-12-17 10:02:37 +00:00
|
|
|
{ lib
|
|
|
|
, python3Packages
|
|
|
|
, fetchFromGitLab
|
|
|
|
, vkbasalt
|
|
|
|
}:
|
|
|
|
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
|
|
pname = "vkbasalt-cli";
|
|
|
|
version = "3.1.1";
|
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
owner = "TheEvilSkeleton";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "sha256-4MFqndnvwAsqyer9kMNuCZFP/Xdl7W//AyCe7n83328=";
|
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace vkbasalt/lib.py \
|
|
|
|
--replace /usr ${vkbasalt}
|
|
|
|
'';
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "vkbasalt.lib" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Command-line utility for vkBasalt";
|
|
|
|
homepage = "https://gitlab.com/TheEvilSkeleton/vkbasalt-cli";
|
|
|
|
license = with licenses; [ lgpl3Only gpl3Only ];
|
|
|
|
maintainers = with maintainers; [ martfont ];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "vkbasalt";
|
2022-12-17 10:02:37 +00:00
|
|
|
};
|
|
|
|
}
|