git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #130583 from jvanbruegge/isabelle2021

Isabelle: 2020 -> 2021

commitd53846e29ef3d614b73ff749c0dab659d8991062 authorBen Siraphob <bensiraphob@gmail.com> dateMon 19 Jul 2021, 20:56 (5 years ago) parent41f1752e32da89
4 files changed+33−6
nixos/doc/manual/from_md/release-notes/rl-2111.section.xml+6 nixos/doc/manual/release-notes/rl-2111.section.md+2 pkgs/applications/science/logic/isabelle/default.nix+23−4 pkgs/development/compilers/polyml/default.nix+2−2
nixos/doc/manual/from_md/release-notes/rl-2111.section.xml+6
@@ -517,6 +517,12 @@
517517 changelog</link>.
518518 </para>
519519 </listitem>
520+ <listitem>
521+ <para>
522+ The <literal>isabelle</literal> package has been upgraded from
523+ 2020 to 2021
524+ </para>
525+ </listitem>
520526 </itemizedlist>
521527 </section>
522528 <section xml:id="sec-release-21.11-notable-changes">
nixos/doc/manual/release-notes/rl-2111.section.md+2
@@ -130,6 +130,8 @@ In addition to numerous new and upgraded packages, this release has the followin
130130
131131- `icingaweb2` was upgraded to a new release which requires a manual database upgrade, see [upstream changelog](https://github.com/Icinga/icingaweb2/releases/tag/v2.9.0).
132132
133+- The `isabelle` package has been upgraded from 2020 to 2021
134+
133135## Other Notable Changes {#sec-release-21.11-notable-changes}
134136
135137- The setting [`services.openssh.logLevel`](options.html#opt-services.openssh.logLevel) `"VERBOSE"` `"INFO"`. This brings NixOS in line with upstream and other Linux distributions, and reduces log spam on servers due to bruteforcing botnets.
pkgs/applications/science/logic/isabelle/default.nix+23−4
@@ -1,20 +1,20 @@
1−{ lib, stdenv, fetchurl, perl, perlPackages, makeWrapper, nettools, java, polyml, z3, rlwrap }:
1+{ lib, stdenv, fetchurl, perl, perlPackages, makeWrapper, nettools, java, polyml, z3, rlwrap, makeDesktopItem }:
22# nettools needed for hostname
33
44stdenv.mkDerivation rec {
55 pname = "isabelle";
6− version = "2020";
6+ version = "2021";
77
88 dirname = "Isabelle${version}";
99
1010 src = if stdenv.isDarwin
1111 then fetchurl {
1212 url = "https://isabelle.in.tum.de/website-${dirname}/dist/${dirname}_macos.tar.gz";
13− sha256 = "1sfr5filsaqj93g5y4p9n8g5652dhr4whj25x4lifdxr2pp560xx";
13+ sha256 = "1c2qm2ksmpyxyccyyn4lyj2wqj5m74nz2i0c5abrd1hj45zcnh1m";
1414 }
1515 else fetchurl {
1616 url = "https://isabelle.in.tum.de/website-${dirname}/dist/${dirname}_linux.tar.gz";
17− sha256 = "1bibabhlsvf6qsjjkgxcpq3cvl1z7r8yfcgqbhbvsiv69n3gyfk3";
17+ sha256 = "1isgc9w4q95638dcag9gxz1kmf97pkin3jz1dm2lhd64b2k12y2x";
1818 };
1919
2020 nativeBuildInputs = [ makeWrapper ];
@@ -48,6 +48,8 @@ stdenv.mkDerivation rec {
4848 ISABELLE_JDK_HOME=${java}
4949 EOF
5050
51+ sed -i -e 's/naproche_server : bool = true/naproche_server : bool = false/' contrib/naproche-*/etc/options
52+
5153 echo ISABELLE_LINE_EDITOR=${rlwrap}/bin/rlwrap >>etc/settings
5254
5355 for comp in contrib/jdk* contrib/polyml-* contrib/z3-*; do
@@ -66,9 +68,26 @@ stdenv.mkDerivation rec {
6668 cd $out/$dirname
6769 bin/isabelle install $out/bin
6870
71+ # icon
72+ mkdir -p "$out/share/icons/hicolor/isabelle/apps"
73+ cp "$out/Isabelle${version}/lib/icons/isabelle.xpm" "$out/share/icons/hicolor/isabelle/apps/"
74+
75+ # desktop item
76+ mkdir -p "$out/share"
77+ cp -r "${desktopItem}/share/applications" "$out/share/applications"
78+
6979 wrapProgram $out/$dirname/src/HOL/Tools/ATP/scripts/remote_atp --set PERL5LIB ${perlPackages.makeFullPerlPath [ perlPackages.LWP ]}
7080 '';
7181
82+ desktopItem = makeDesktopItem {
83+ name = "isabelle";
84+ exec = "isabelle jedit";
85+ icon = "isabelle";
86+ desktopName = "Isabelle";
87+ comment = meta.description;
88+ categories = "Education;Science;Math;";
89+ };
90+
7291 meta = with lib; {
7392 description = "A generic proof assistant";
7493
pkgs/development/compilers/polyml/default.nix+2−2
@@ -2,7 +2,7 @@
22
33stdenv.mkDerivation rec {
44 pname = "polyml";
5− version = "5.8.1";
5+ version = "5.8.2";
66
77 prePatch = lib.optionalString stdenv.isDarwin ''
88 substituteInPlace configure.ac --replace stdc++ c++
@@ -22,7 +22,7 @@ stdenv.mkDerivation rec {
2222 owner = "polyml";
2323 repo = "polyml";
2424 rev = "v${version}";
25− sha256 = "0gcx2fjiwsiazlyfhm7zlrd563blc4fy9w2mspib9divbavaxin6";
25+ sha256 = "0vvla816g9rk9aa75gq63rb7bf6yla27p8wh1s1ycgq2in2zk0py";
2626 };
2727
2828 meta = with lib; {