tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
leiningen: 2.9.10 -> 2.10.0
Thiago Kenji Okada
3 years ago
0e94cfb6
980a070e
+15
-6
1 changed file
expand all
collapse all
unified
split
pkgs
development
tools
build-managers
leiningen
default.nix
+15
-6
pkgs/development/tools/build-managers/leiningen/default.nix
···
3
3
4
4
stdenv.mkDerivation rec {
5
5
pname = "leiningen";
6
6
-
version = "2.9.10";
6
6
+
version = "2.10.0";
7
7
8
8
src = fetchurl {
9
9
-
url = "https://raw.github.com/technomancy/leiningen/${version}/bin/lein-pkg";
10
10
-
sha256 = "0ckzivinbgg6gw1nss544hy160yixvd3k6pqyyxqanyzsq9lvf6v";
9
9
+
url = "https://codeberg.org/leiningen/leiningen/raw/tag/${version}/bin/lein-pkg";
10
10
+
hash = "sha256-sXV86UHky/Fcv2Sbe09BM2XmEtqJLSKEHsFyg5G7Zq8=";
11
11
};
12
12
13
13
+
# Check https://codeberg.org/leiningen/leiningen/releases to get the URL for the new version
13
14
jarsrc = fetchurl {
14
14
-
url = "https://github.com/technomancy/leiningen/releases/download/${version}/${pname}-${version}-standalone.jar";
15
15
-
sha256 = "1ja9q8lav83h5qhayjgc39f6yyvk1n5f6gfwznn561xm007m6a52";
15
15
+
url = "https://codeberg.org/attachments/43cebda5-a7c2-405b-b641-5143a00051b5";
16
16
+
hash = "sha256-0nKZutNAdawoZNC9BVn4NcbixHbAsKKDvL21dP2tuzQ=";
16
17
};
17
18
18
19
JARNAME = "${pname}-${version}-standalone.jar";
···
26
27
# never be picked up by set-java-classpath.sh
27
28
28
29
installPhase = ''
30
30
+
runHook preInstall
31
31
+
29
32
mkdir -p $out/bin $out/share
30
33
cp -v $src $out/bin/lein
31
34
cp -v $jarsrc $out/share/$JARNAME
35
35
+
36
36
+
runHook postInstall
32
37
'';
33
38
34
39
fixupPhase = ''
40
40
+
runHook preFixup
41
41
+
35
42
chmod +x $out/bin/lein
36
43
patchShebangs $out/bin/lein
37
44
substituteInPlace $out/bin/lein \
···
40
47
--prefix PATH ":" "${lib.makeBinPath [ rlwrap coreutils ]}" \
41
48
--set LEIN_GPG ${gnupg}/bin/gpg \
42
49
--set JAVA_CMD ${jdk}/bin/java
50
50
+
51
51
+
runHook postFixup
43
52
'';
44
53
45
54
meta = {
···
47
56
description = "Project automation for Clojure";
48
57
sourceProvenance = with lib.sourceTypes; [ binaryBytecode ];
49
58
license = lib.licenses.epl10;
50
50
-
platforms = lib.platforms.linux ++ lib.platforms.darwin;
59
59
+
platforms = jdk.meta.platforms;
51
60
maintainers = with lib.maintainers; [ ];
52
61
mainProgram = "lein";
53
62
};