Merge pull request #209489 from thiagokokada/bump-leiningen
leiningen: 2.9.10 -> 2.10.0
This commit is contained in:
commit
55947546b8
1 changed files with 16 additions and 7 deletions
|
@ -3,16 +3,17 @@
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "leiningen";
|
pname = "leiningen";
|
||||||
version = "2.9.10";
|
version = "2.10.0";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://raw.github.com/technomancy/leiningen/${version}/bin/lein-pkg";
|
url = "https://codeberg.org/leiningen/leiningen/raw/tag/${version}/bin/lein-pkg";
|
||||||
sha256 = "0ckzivinbgg6gw1nss544hy160yixvd3k6pqyyxqanyzsq9lvf6v";
|
hash = "sha256-sXV86UHky/Fcv2Sbe09BM2XmEtqJLSKEHsFyg5G7Zq8=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Check https://codeberg.org/leiningen/leiningen/releases to get the URL for the new version
|
||||||
jarsrc = fetchurl {
|
jarsrc = fetchurl {
|
||||||
url = "https://github.com/technomancy/leiningen/releases/download/${version}/${pname}-${version}-standalone.jar";
|
url = "https://codeberg.org/attachments/43cebda5-a7c2-405b-b641-5143a00051b5";
|
||||||
sha256 = "1ja9q8lav83h5qhayjgc39f6yyvk1n5f6gfwznn561xm007m6a52";
|
hash = "sha256-0nKZutNAdawoZNC9BVn4NcbixHbAsKKDvL21dP2tuzQ=";
|
||||||
};
|
};
|
||||||
|
|
||||||
JARNAME = "${pname}-${version}-standalone.jar";
|
JARNAME = "${pname}-${version}-standalone.jar";
|
||||||
|
@ -26,12 +27,18 @@ stdenv.mkDerivation rec {
|
||||||
# never be picked up by set-java-classpath.sh
|
# never be picked up by set-java-classpath.sh
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
|
|
||||||
mkdir -p $out/bin $out/share
|
mkdir -p $out/bin $out/share
|
||||||
cp -v $src $out/bin/lein
|
cp -v $src $out/bin/lein
|
||||||
cp -v $jarsrc $out/share/$JARNAME
|
cp -v $jarsrc $out/share/$JARNAME
|
||||||
|
|
||||||
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|
||||||
fixupPhase = ''
|
fixupPhase = ''
|
||||||
|
runHook preFixup
|
||||||
|
|
||||||
chmod +x $out/bin/lein
|
chmod +x $out/bin/lein
|
||||||
patchShebangs $out/bin/lein
|
patchShebangs $out/bin/lein
|
||||||
substituteInPlace $out/bin/lein \
|
substituteInPlace $out/bin/lein \
|
||||||
|
@ -40,6 +47,8 @@ stdenv.mkDerivation rec {
|
||||||
--prefix PATH ":" "${lib.makeBinPath [ rlwrap coreutils ]}" \
|
--prefix PATH ":" "${lib.makeBinPath [ rlwrap coreutils ]}" \
|
||||||
--set LEIN_GPG ${gnupg}/bin/gpg \
|
--set LEIN_GPG ${gnupg}/bin/gpg \
|
||||||
--set JAVA_CMD ${jdk}/bin/java
|
--set JAVA_CMD ${jdk}/bin/java
|
||||||
|
|
||||||
|
runHook postFixup
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
|
@ -47,8 +56,8 @@ stdenv.mkDerivation rec {
|
||||||
description = "Project automation for Clojure";
|
description = "Project automation for Clojure";
|
||||||
sourceProvenance = with lib.sourceTypes; [ binaryBytecode ];
|
sourceProvenance = with lib.sourceTypes; [ binaryBytecode ];
|
||||||
license = lib.licenses.epl10;
|
license = lib.licenses.epl10;
|
||||||
platforms = lib.platforms.linux ++ lib.platforms.darwin;
|
platforms = jdk.meta.platforms;
|
||||||
maintainers = with lib.maintainers; [ thiagokokada ];
|
maintainers = with lib.maintainers; [ ];
|
||||||
mainProgram = "lein";
|
mainProgram = "lein";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue