about summary refs log tree commit diff
path: root/pkgs/tools/graphics/oxipng/default.nix
blob: 23f9692597a3a19b3c51622d222d33d3572d97f9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{ lib, stdenv, fetchCrate, rustPlatform }:

rustPlatform.buildRustPackage rec {
  version = "9.0.0";
  pname = "oxipng";

  src = fetchCrate {
    inherit version pname;
    hash = "sha256-1OpSweosYiqtLqCcAw1EsAtBAYVc/VH8kRtVSpmTytM=";
  };

  cargoHash = "sha256-kPdAfqMNOoQPSdv+VLRDUr6AXGPy47UnldXwvpwKp6s=";

  doCheck = !stdenv.isAarch64 && !stdenv.isDarwin;

  meta = {
    homepage = "https://github.com/shssoichiro/oxipng";
    description = "A multithreaded lossless PNG compression optimizer";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ dywedir ];
    mainProgram = "oxipng";
  };
}