configuration/packages/pngquant-interactive.nix

42 lines
893 B
Nix
Raw Normal View History

2023-01-22 01:43:54 +00:00
{ fetchFromGitHub
2023-02-07 02:41:49 +00:00
, gitUpdater
2023-01-22 01:43:54 +00:00
, lib
, rustPlatform
# Dependencies
, cmake
, curl
2023-06-01 06:03:19 +00:00
, git
2023-01-22 01:43:54 +00:00
, libXcursor
, libXinerama
, mesa
, pango
, pkg-config
}:
rustPlatform.buildRustPackage rec {
pname = "pngquant-interactive";
2023-06-20 00:09:02 +00:00
version = "0.2.0";
2023-01-22 01:43:54 +00:00
src = fetchFromGitHub {
owner = "AndrewKvalheim";
repo = "pngquant-interactive";
rev = "v${version}";
2023-06-20 00:09:02 +00:00
hash = "sha256-lEXBQ6toomT8Q8QDGz5l+ywcCGcuO3gKBymMDMlk+ak=";
2023-01-22 01:43:54 +00:00
};
2023-06-20 00:09:02 +00:00
cargoHash = "sha256-pyQevvMX7895pqlERs6N+kT1OxkTWwKW3fhNYzYve+8=";
2023-01-22 01:43:54 +00:00
2023-06-01 06:03:19 +00:00
nativeBuildInputs = [ cmake curl git pkg-config ];
2023-01-22 01:43:54 +00:00
buildInputs = [ libXcursor libXinerama mesa pango ];
2023-02-07 02:41:49 +00:00
passthru.updateScript = gitUpdater { rev-prefix = "v"; };
2023-01-22 01:43:54 +00:00
meta = {
description = "Graphical interface for pngquant with a live preview";
homepage = "https://github.com/AndrewKvalheim/pngquant-interactive";
license = lib.licenses.gpl3;
mainProgram = pname;
};
}