tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
calcoo: init at 2.1.0
AndersonTorres
3 years ago
db1cef72
50941984
+81
3 changed files
expand all
collapse all
unified
split
pkgs
applications
misc
calcoo
0001-javac-encoding.diff
default.nix
top-level
all-packages.nix
+21
pkgs/applications/misc/calcoo/0001-javac-encoding.diff
···
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
···
1
+
diff -Naur calcoo-2.1.0-old/build.xml calcoo-2.1.0-new/build.xml
2
+
--- calcoo-2.1.0-old/build.xml 1969-12-31 21:00:01.000000000 -0300
3
+
+++ calcoo-2.1.0-new/build.xml 2022-04-16 15:41:59.763861191 -0300
4
+
@@ -16,7 +16,7 @@
5
+
<!-- Create the build directory structure used by compile -->
6
+
<mkdir dir="${build}"/>
7
+
<!-- Compile the java code from ${src} into ${build} -->
8
+
- <javac srcdir="${src}" destdir="${build}" includeantruntime="false"/>
9
+
+ <javac srcdir="${src}" destdir="${build}" includeantruntime="false" encoding="iso-8859-1"/>
10
+
</target>
11
+
12
+
<target name="copyresource" depends="compile">
13
+
@@ -31,7 +31,7 @@
14
+
<target name="testcompile">
15
+
<mkdir dir="${testbuild}"/>
16
+
<!-- Compile the java code from ${testsrc} into ${testbuild} -->
17
+
- <javac srcdir="${testsrc}" destdir="${testbuild}" includeantruntime="false">
18
+
+ <javac srcdir="${testsrc}" destdir="${testbuild}" includeantruntime="false" encoding="iso-8859-1">
19
+
<classpath>
20
+
<pathelement location="${junitpath}\junit.jar"/>
21
+
<pathelement location="${junitpath}\hamcrest-core.jar"/>
+58
pkgs/applications/misc/calcoo/default.nix
···
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
···
1
+
{ lib
2
+
, stdenv
3
+
, fetchzip
4
+
, ant
5
+
, jdk
6
+
, makeWrapper
7
+
}:
8
+
9
+
stdenv.mkDerivation rec {
10
+
pname = "calcoo";
11
+
version = "2.1.0";
12
+
13
+
src = fetchzip {
14
+
url = "mirror://sourceforge/project/calcoo/calcoo/${version}/${pname}-${version}.zip";
15
+
hash = "sha256-Bdavj7RaI5CkWiOJY+TPRIRfNelfW5qdl/74J1KZPI0=";
16
+
};
17
+
18
+
patches = [
19
+
# Sets javac encoding option on build.xml
20
+
./0001-javac-encoding.diff
21
+
];
22
+
23
+
nativeBuildInputs = [
24
+
ant
25
+
jdk
26
+
makeWrapper
27
+
];
28
+
29
+
dontConfigure = true;
30
+
31
+
buildPhase = ''
32
+
runHook preBuild
33
+
34
+
ant
35
+
36
+
runHook postBuild
37
+
'';
38
+
39
+
installPhase = ''
40
+
runHook preInstall
41
+
42
+
mkdir -p $out/bin $out/share/${pname}
43
+
mv dist/lib/calcoo.jar $out/share/${pname}
44
+
45
+
makeWrapper ${jdk}/bin/java $out/bin/calcoo \
46
+
--add-flags "-jar $out/share/${pname}/calcoo.jar"
47
+
48
+
runHook postInstall
49
+
'';
50
+
51
+
meta = with lib; {
52
+
homepage = "http://calcoo.sourceforge.net/";
53
+
description = "RPN and algebraic scientific calculator";
54
+
license = licenses.gpl2Plus;
55
+
maintainers = with maintainers; [ AndersonTorres ];
56
+
inherit (jdk.meta) platforms;
57
+
};
58
+
}
+2
pkgs/top-level/all-packages.nix
···
5730
5731
uniscribe = callPackage ../tools/text/uniscribe { };
5732
0
0
5733
galculator = callPackage ../applications/misc/galculator {
5734
gtk = gtk3;
5735
};
···
5730
5731
uniscribe = callPackage ../tools/text/uniscribe { };
5732
5733
+
calcoo = callPackage ../applications/misc/calcoo { };
5734
+
5735
galculator = callPackage ../applications/misc/galculator {
5736
gtk = gtk3;
5737
};