Merge pull request #238512 from marsam/update-elasticmq
elasticmq-server-bin: 1.4.1 -> 1.4.2
This commit is contained in:
commit
48d9f9bce0
1 changed files with 35 additions and 35 deletions
|
@ -1,19 +1,18 @@
|
||||||
{ lib, stdenv, fetchurl, jdk, jre, makeWrapper, runCommand, python3Packages, writeText }:
|
{ lib, stdenv, fetchurl, jdk, jre, makeBinaryWrapper, runCommand, python3Packages, writeText }:
|
||||||
|
|
||||||
let
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
elasticmq-server = stdenv.mkDerivation rec {
|
|
||||||
pname = "elasticmq-server";
|
pname = "elasticmq-server";
|
||||||
version = "1.4.1";
|
version = "1.4.2";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://s3-eu-west-1.amazonaws.com/softwaremill-public/${pname}-${version}.jar";
|
url = "https://s3-eu-west-1.amazonaws.com/softwaremill-public/${finalAttrs.pname}-${finalAttrs.version}.jar";
|
||||||
sha256 = "sha256-F1G9shYvntFiSgLdXPkSTpN/MP86ewhHRIchbXues+s=";
|
sha256 = "sha256-71GlX8zwiC5tZm2LGSUdOa4ZDZUQQJ9zTY8viu2MQLk=";
|
||||||
};
|
};
|
||||||
|
|
||||||
# don't do anything?
|
# don't do anything?
|
||||||
unpackPhase = "${jdk}/bin/jar xf $src favicon.png";
|
unpackPhase = "${jdk}/bin/jar xf $src favicon.png";
|
||||||
|
|
||||||
nativeBuildInputs = [ makeWrapper ];
|
nativeBuildInputs = [ makeBinaryWrapper ];
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p $out/bin $out/share/elasticmq-server
|
mkdir -p $out/bin $out/share/elasticmq-server
|
||||||
|
@ -25,17 +24,18 @@ let
|
||||||
--add-flags "-jar $out/share/elasticmq-server/elasticmq-server.jar"
|
--add-flags "-jar $out/share/elasticmq-server/elasticmq-server.jar"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
passthru.tests.elasticmqTest = import ./elasticmq-test.nix {
|
||||||
|
inherit runCommand python3Packages writeText;
|
||||||
|
elasticmq-server = finalAttrs.finalPackage;
|
||||||
|
};
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "https://github.com/softwaremill/elasticmq";
|
|
||||||
description = "Message queueing system with Java, Scala and Amazon SQS-compatible interfaces";
|
description = "Message queueing system with Java, Scala and Amazon SQS-compatible interfaces";
|
||||||
|
homepage = "https://github.com/softwaremill/elasticmq";
|
||||||
|
changelog = "https://github.com/softwaremill/elasticmq/releases/tag/v${finalAttrs.version}";
|
||||||
sourceProvenance = with sourceTypes; [ binaryBytecode ];
|
sourceProvenance = with sourceTypes; [ binaryBytecode ];
|
||||||
license = licenses.asl20;
|
license = licenses.asl20;
|
||||||
platforms = platforms.unix;
|
platforms = platforms.unix;
|
||||||
maintainers = with maintainers; [ peterromfeldhk ];
|
maintainers = with maintainers; [ peterromfeldhk ];
|
||||||
};
|
};
|
||||||
};
|
|
||||||
in elasticmq-server.overrideAttrs (_: {
|
|
||||||
passthru.tests.elasticmqTest = import ./elasticmq-test.nix {
|
|
||||||
inherit elasticmq-server runCommand python3Packages writeText;
|
|
||||||
};
|
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue