depot/third_party/nixpkgs/pkgs/tools/graphics/vkbasalt-cli/default.nix
Default email 5ca88bfbb9 Project import generated by Copybara.
GitOrigin-RevId: 9f918d616c5321ad374ae6cb5ea89c9e04bf3e58
2024-07-31 10:19:44 +00:00

32 lines
718 B
Nix

{ lib
, python3Packages
, fetchFromGitLab
, vkbasalt
}:
python3Packages.buildPythonApplication rec {
pname = "vkbasalt-cli";
version = "3.1.1";
src = fetchFromGitLab {
owner = "TheEvilSkeleton";
repo = pname;
rev = "v${version}";
hash = "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 = [ ];
mainProgram = "vkbasalt";
};
}