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