mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-09-21 20:49:52 +03:00
Merge pull request #152010 from fgaz/warzone2100/4.2.4
warzone2100: 4.2.3 -> 4.2.4, add version test
This commit is contained in:
commit
87cf1dd1b2
@ -26,6 +26,9 @@
|
|||||||
, vulkan-loader
|
, vulkan-loader
|
||||||
, shaderc
|
, shaderc
|
||||||
|
|
||||||
|
, testVersion
|
||||||
|
, warzone2100
|
||||||
|
|
||||||
, withVideos ? false
|
, withVideos ? false
|
||||||
}:
|
}:
|
||||||
|
|
||||||
@ -39,11 +42,11 @@ in
|
|||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
inherit pname;
|
inherit pname;
|
||||||
version = "4.2.3";
|
version = "4.2.4";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://sourceforge/${pname}/releases/${version}/${pname}_src.tar.xz";
|
url = "mirror://sourceforge/${pname}/releases/${version}/${pname}_src.tar.xz";
|
||||||
sha256 = "sha256-nmHl/Qk8Knck9kDF8cuPUzOUxNNx0Vk/g1NW/H82vo0=";
|
sha256 = "sha256-IkD1WkeKas9qtUUTTo9w4cEoGAoX+d+Cr2C5PTUFaEg=";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
@ -100,6 +103,14 @@ stdenv.mkDerivation rec {
|
|||||||
cp ${sequences_src} $out/share/warzone2100/sequences.wz
|
cp ${sequences_src} $out/share/warzone2100/sequences.wz
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
passthru.tests = {
|
||||||
|
version = testVersion {
|
||||||
|
package = warzone2100;
|
||||||
|
# The command always exits with code 1
|
||||||
|
command = "(warzone2100 --version || [ $? -eq 1 ])";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "A free RTS game, originally developed by Pumpkin Studios";
|
description = "A free RTS game, originally developed by Pumpkin Studios";
|
||||||
longDescription = ''
|
longDescription = ''
|
||||||
|
Loading…
Reference in New Issue
Block a user