btrbk: add mainProgram
[NixPkgs.git] / pkgs / by-name / pi / pio / package.nix
blobf79c12256e234faaec9bece4f29e911ce5de7a46
1 { lib, rustPlatform, fetchFromGitHub, stdenv, darwin }:
3 rustPlatform.buildRustPackage rec {
4   pname = "pio";
5   version = "0.4.0";
7   src = fetchFromGitHub {
8     owner = "siiptuo";
9     repo = "pio";
10     rev = version;
11     hash = "sha256-iR6G+G1UOT1ThLI3yhz3na1HmN6z2qUiI6NSKT0krtY=";
12   };
14   cargoHash = "sha256-jVOpk+Z3yEEoDexvxT9I0aVHJKVq47y8km/9ltoqrDA=";
16   buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
17     darwin.apple_sdk.frameworks.Accelerate
18   ];
20   meta = with lib; {
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 ];
26     mainProgram = "pio";
27   };