mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 23:13:19 +00:00
signald: 0.13.1 -> 0.14.1
This commit is contained in:
parent
3d29e43201
commit
f97a6f81d1
@ -1,17 +1,15 @@
|
||||
{ lib, stdenv, fetchurl, fetchgit, jre_headless, coreutils, gradle_6, git, perl
|
||||
{ lib, stdenv, fetchurl, fetchgit, fetchFromGitLab, jre_headless, coreutils, gradle_6, git, perl
|
||||
, makeWrapper }:
|
||||
|
||||
let
|
||||
pname = "signald";
|
||||
version = "0.14.1";
|
||||
|
||||
version = "0.13.1";
|
||||
|
||||
# This package uses the .git directory
|
||||
src = fetchgit {
|
||||
url = "https://gitlab.com/signald/signald";
|
||||
src = fetchFromGitLab {
|
||||
owner = pname;
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "1ilmg0i1kw2yc7m3hxw1bqdpl3i9wwbj8623qmz9cxhhavbcd5i7";
|
||||
leaveDotGit = true;
|
||||
sha256 = "K/G5+w1GINLZwJIG5a7u0TxlGe+Cyp4wQm+pgm28qCA=";
|
||||
};
|
||||
|
||||
buildConfigJar = fetchurl {
|
||||
@ -19,8 +17,6 @@ let
|
||||
sha256 = "0y1f42y7ilm3ykgnm6s3ks54d71n8lsy5649xgd9ahv28lj05x9f";
|
||||
};
|
||||
|
||||
patches = [ ./git-describe-always.patch ./gradle-plugin.patch ];
|
||||
|
||||
postPatch = ''
|
||||
patchShebangs gradlew
|
||||
sed -i -e 's|BuildConfig.jar|${buildConfigJar}|' build.gradle
|
||||
@ -29,7 +25,7 @@ let
|
||||
# fake build to pre-download deps into fixed-output derivation
|
||||
deps = stdenv.mkDerivation {
|
||||
name = "${pname}-deps";
|
||||
inherit src version postPatch patches;
|
||||
inherit src version postPatch;
|
||||
nativeBuildInputs = [ gradle_6 perl ];
|
||||
buildPhase = ''
|
||||
export GRADLE_USER_HOME=$(mktemp -d)
|
||||
@ -45,11 +41,17 @@ let
|
||||
forceShare = [ "dummy" ];
|
||||
outputHashAlgo = "sha256";
|
||||
outputHashMode = "recursive";
|
||||
outputHash = "0w8ixp1l0ch1jc2dqzxdx3ljlh17hpgns2ba7qvj43nr4prl71l7";
|
||||
# Downloaded jars differ by platform
|
||||
outputHash = {
|
||||
x86_64-linux = "/gJFoT+vvdSWr33oI44XiZXlFfyUjtRVB1M6CMzSztM=";
|
||||
aarch64-linux = "v71stMWBbNALasfGAHvsVTBaDOZfpKK3sQrjNJ6FG1A=";
|
||||
}.${stdenv.system} or (throw "Unsupported platform");
|
||||
};
|
||||
|
||||
in stdenv.mkDerivation rec {
|
||||
inherit pname src version postPatch patches;
|
||||
inherit pname src version postPatch;
|
||||
|
||||
patches = [ ./gradle-plugin.patch ];
|
||||
|
||||
buildPhase = ''
|
||||
runHook preBuild
|
||||
@ -90,6 +92,6 @@ in stdenv.mkDerivation rec {
|
||||
homepage = "https://signald.org";
|
||||
license = licenses.gpl3Plus;
|
||||
maintainers = with maintainers; [ expipiplus1 ];
|
||||
platforms = platforms.unix;
|
||||
platforms = [ "x86_64-linux" "aarch64-linux" ];
|
||||
};
|
||||
}
|
||||
|
@ -1,9 +0,0 @@
|
||||
diff --git a/version.sh b/version.sh
|
||||
index 7aeeb3c..060cba3 100755
|
||||
--- a/version.sh
|
||||
+++ b/version.sh
|
||||
@@ -1,3 +1,3 @@
|
||||
#!/bin/sh
|
||||
-VERSION=$(git describe --exact-match 2> /dev/null) || VERSION=$(git describe --abbrev=0)+git$(date +%Y-%m-%d)r$(git rev-parse --short=8 HEAD).$(git rev-list $(git describe --abbrev=0)..HEAD --count)
|
||||
+VERSION=$(git describe --exact-match 2> /dev/null) || VERSION=$(git describe --always --abbrev=0)+git$(date +%Y-%m-%d)r$(git rev-parse --short=8 HEAD).$(git rev-list $(git describe --always --abbrev=0)..HEAD --count)
|
||||
echo $VERSION
|
@ -2,7 +2,7 @@ diff --git a/build.gradle b/build.gradle
|
||||
index 11d7a99..66805bb 100644
|
||||
--- a/build.gradle
|
||||
+++ b/build.gradle
|
||||
@@ -3,9 +3,12 @@ import org.gradle.nativeplatform.platform.internal.OperatingSystemInternal
|
||||
@@ -18,9 +18,12 @@ import org.gradle.nativeplatform.platform.internal.OperatingSystemInternal
|
||||
import org.gradle.nativeplatform.platform.internal.DefaultNativePlatform
|
||||
import org.xml.sax.SAXParseException
|
||||
|
||||
@ -17,10 +17,3 @@ index 11d7a99..66805bb 100644
|
||||
|
||||
apply plugin: 'java'
|
||||
apply plugin: 'application'
|
||||
@@ -185,4 +188,4 @@ task integrationTest(type: Test) {
|
||||
testClassesDirs = sourceSets.integrationTest.output.classesDirs
|
||||
classpath = sourceSets.integrationTest.runtimeClasspath
|
||||
outputs.upToDateWhen { false }
|
||||
-}
|
||||
\ No newline at end of file
|
||||
+}
|
||||
|
Loading…
Reference in New Issue
Block a user