mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 07:13:23 +01:00
isabelle: Add desktop entry
This commit is contained in:
parent
9111bd40b2
commit
e32da890c9
1 changed files with 18 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
|||
{ lib, stdenv, fetchurl, perl, perlPackages, makeWrapper, nettools, java, polyml, z3, rlwrap }:
|
||||
{ lib, stdenv, fetchurl, perl, perlPackages, makeWrapper, nettools, java, polyml, z3, rlwrap, makeDesktopItem }:
|
||||
# nettools needed for hostname
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
|
@ -68,9 +68,26 @@ stdenv.mkDerivation rec {
|
|||
cd $out/$dirname
|
||||
bin/isabelle install $out/bin
|
||||
|
||||
# icon
|
||||
mkdir -p "$out/share/icons/hicolor/isabelle/apps"
|
||||
cp "$out/Isabelle${version}/lib/icons/isabelle.xpm" "$out/share/icons/hicolor/isabelle/apps/"
|
||||
|
||||
# desktop item
|
||||
mkdir -p "$out/share"
|
||||
cp -r "${desktopItem}/share/applications" "$out/share/applications"
|
||||
|
||||
wrapProgram $out/$dirname/src/HOL/Tools/ATP/scripts/remote_atp --set PERL5LIB ${perlPackages.makeFullPerlPath [ perlPackages.LWP ]}
|
||||
'';
|
||||
|
||||
desktopItem = makeDesktopItem {
|
||||
name = "isabelle";
|
||||
exec = "isabelle jedit";
|
||||
icon = "isabelle";
|
||||
desktopName = "Isabelle";
|
||||
comment = meta.description;
|
||||
categories = "Education;Science;Math;";
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
description = "A generic proof assistant";
|
||||
|
||||
|
|
Loading…
Reference in a new issue