Skip to content

Commit 03a8c8b

Browse files
authored
oxipng: re-enable tests (#375349)
2 parents f91eb56 + ba542a0 commit 03a8c8b

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

pkgs/by-name/ox/oxipng/package.nix

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,24 @@
11
{
22
lib,
33
stdenv,
4-
fetchCrate,
4+
fetchFromGitHub,
55
rustPlatform,
66
}:
77

88
rustPlatform.buildRustPackage rec {
99
version = "9.1.3";
1010
pname = "oxipng";
1111

12-
src = fetchCrate {
13-
inherit version pname;
14-
hash = "sha256-kzN4YNsFqv/KUxpHao++oqc90Us6VllyFYkpdVUigD0=";
12+
# do not use fetchCrate (only repository includes tests)
13+
src = fetchFromGitHub {
14+
owner = "shssoichiro";
15+
repo = "oxipng";
16+
tag = "v${version}";
17+
hash = "sha256-8EOEcIw10hCyYi9SwDLDZ8J3ezLXa30RUY5I9ksfqTs=";
1518
};
1619

1720
cargoHash = "sha256-4PCLtBJliK3uteL8EVKLBVR2YZW1gwQOiSLQok+rqug=";
1821

19-
doCheck = !stdenv.hostPlatform.isAarch64 && !stdenv.hostPlatform.isDarwin;
20-
2122
meta = {
2223
homepage = "https://github.com/shssoichiro/oxipng";
2324
description = "Multithreaded lossless PNG compression optimizer";

0 commit comments

Comments
 (0)