1 { lib, rustPlatform, fetchFromGitHub, stdenv, darwin }:
3 rustPlatform.buildRustPackage rec {
7 src = fetchFromGitHub {
11 hash = "sha256-iR6G+G1UOT1ThLI3yhz3na1HmN6z2qUiI6NSKT0krtY=";
14 cargoHash = "sha256-jVOpk+Z3yEEoDexvxT9I0aVHJKVq47y8km/9ltoqrDA=";
16 buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
17 darwin.apple_sdk.frameworks.Accelerate
21 description = "Utility to compress image files while maintaining quality";
22 homepage = "https://github.com/siiptuo/pio";
23 changelog = "https://github.com/siiptuo/pio/blob/${version}/CHANGELOG.md";
24 license = licenses.agpl3Plus;
25 maintainers = with maintainers; [ liassica ];