nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 34 lines 832 B view raw
1{ 2 lib, 3 fetchFromGitHub, 4 rustPlatform, 5}: 6 7rustPlatform.buildRustPackage rec { 8 version = "9.1.5"; 9 pname = "oxipng"; 10 11 # do not use fetchCrate (only repository includes tests) 12 src = fetchFromGitHub { 13 owner = "shssoichiro"; 14 repo = "oxipng"; 15 tag = "v${version}"; 16 hash = "sha256-UjiGQSLiUMuYm62wF7Xwhp2MRzCaQ9pbBBkvHnuspVw="; 17 }; 18 19 cargoHash = "sha256-sdhyxJDUlb6+SJ/kvfqsplHOeCEbA3ls66eur3eeVVA="; 20 21 # don't require qemu for aarch64-linux tests 22 # error: linker `aarch64-linux-gnu-gcc` not found 23 postPatch = '' 24 rm .cargo/config.toml 25 ''; 26 27 meta = { 28 homepage = "https://github.com/shssoichiro/oxipng"; 29 description = "Multithreaded lossless PNG compression optimizer"; 30 license = lib.licenses.mit; 31 maintainers = with lib.maintainers; [ dywedir ]; 32 mainProgram = "oxipng"; 33 }; 34}