-
-
Notifications
You must be signed in to change notification settings - Fork 388
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
nix(nix/package): split into multiple files, allow overriding of JXL …
…and vtf2img
- Loading branch information
Showing
4 changed files
with
95 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
{ | ||
buildPythonPackage, | ||
cmake, | ||
fetchPypi, | ||
lib, | ||
packaging, | ||
pillow, | ||
rustPlatform, | ||
}: | ||
|
||
buildPythonPackage rec { | ||
pname = "pillow_jxl_plugin"; | ||
version = "1.3.2"; | ||
pyproject = true; | ||
|
||
src = fetchPypi { | ||
inherit pname version; | ||
hash = "sha256-efBoek8yUFR+ArhS55lm9F2XhkZ7/I3GsScQEe8U/2I="; | ||
}; | ||
|
||
cargoDeps = rustPlatform.fetchCargoVendor { | ||
inherit src; | ||
hash = "sha256-vZHrwGfgo3fIIOY7p0vy4XIKiHoddPDdJggkBen+w/A="; | ||
}; | ||
|
||
nativeBuildInputs = [ | ||
cmake | ||
rustPlatform.cargoSetupHook | ||
rustPlatform.maturinBuildHook | ||
]; | ||
|
||
dontUseCmakeConfigure = true; | ||
|
||
pythonImportsCheck = [ "pillow_jxl" ]; | ||
|
||
dependencies = [ | ||
packaging | ||
pillow | ||
]; | ||
|
||
meta = { | ||
description = "Pillow plugin for JPEG-XL, using Rust for bindings."; | ||
homepage = "https://github.com/Isotr0py/pillow-jpegxl-plugin"; | ||
license = lib.licenses.gpl3; | ||
maintainers = with lib.maintainers; [ xarvex ]; | ||
platforms = lib.platforms.unix; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
buildPythonPackage, | ||
fetchPypi, | ||
lib, | ||
pillow, | ||
}: | ||
|
||
buildPythonPackage rec { | ||
pname = "vtf2img"; | ||
version = "0.1.0"; | ||
|
||
src = fetchPypi { | ||
inherit pname version; | ||
hash = "sha256-YmWs8673d72wH4nTOXP4AFGs2grIETln4s1MD5PfE0A="; | ||
}; | ||
|
||
pythonImportsCheck = [ "vtf2img" ]; | ||
|
||
dependencies = [ pillow ]; | ||
|
||
meta = { | ||
description = "A Python library to convert Valve Texture Format (VTF) files to images."; | ||
homepage = "https://github.com/julienc91/vtf2img"; | ||
license = lib.licenses.mit; | ||
maintainers = with lib.maintainers; [ xarvex ]; | ||
mainProgram = "vtf2img"; | ||
platforms = lib.platforms.unix; | ||
}; | ||
} |