gifski: fix tests by running them in debug mode
This commit is contained in:
parent
2ac27de2bc
commit
44dddc3f18
1 changed files with 11 additions and 3 deletions
|
@ -14,7 +14,7 @@ rustPlatform.buildRustPackage rec {
|
||||||
owner = "ImageOptim";
|
owner = "ImageOptim";
|
||||||
repo = "gifski";
|
repo = "gifski";
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "sha256-sPsq/hntNqOdPJcoob1jrDUrLLiBEnfRoDANyFUjOuM=";
|
hash = "sha256-sPsq/hntNqOdPJcoob1jrDUrLLiBEnfRoDANyFUjOuM=";
|
||||||
};
|
};
|
||||||
|
|
||||||
cargoLock = {
|
cargoLock = {
|
||||||
|
@ -35,8 +35,15 @@ rustPlatform.buildRustPackage rec {
|
||||||
|
|
||||||
buildFeatures = [ "video" ];
|
buildFeatures = [ "video" ];
|
||||||
|
|
||||||
# error: the crate `gifski` is compiled with the panic strategy `abort` which is incompatible with this crate's strategy of `unwind`
|
# When the default checkType of release is used, we get the following error:
|
||||||
doCheck = !stdenv.isDarwin;
|
#
|
||||||
|
# error: the crate `gifski` is compiled with the panic strategy `abort` which
|
||||||
|
# is incompatible with this crate's strategy of `unwind`
|
||||||
|
#
|
||||||
|
# It looks like https://github.com/rust-lang/cargo/issues/6313, which does not
|
||||||
|
# outline a solution.
|
||||||
|
#
|
||||||
|
checkType = "debug";
|
||||||
|
|
||||||
# error: linker `/usr/bin/x86_64-linux-gnu-gcc` not found
|
# error: linker `/usr/bin/x86_64-linux-gnu-gcc` not found
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
|
@ -49,5 +56,6 @@ rustPlatform.buildRustPackage rec {
|
||||||
changelog = "https://github.com/ImageOptim/gifski/releases/tag/${src.rev}";
|
changelog = "https://github.com/ImageOptim/gifski/releases/tag/${src.rev}";
|
||||||
license = licenses.agpl3Plus;
|
license = licenses.agpl3Plus;
|
||||||
maintainers = with maintainers; [ figsoda marsam ];
|
maintainers = with maintainers; [ figsoda marsam ];
|
||||||
|
mainProgram = "gifski";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue