xournal: drop (#362376)
This commit is contained in:
@@ -1,64 +0,0 @@
|
||||
{ lib, stdenv, fetchurl, makeDesktopItem
|
||||
, ghostscript, atk, gtk2, glib, fontconfig, freetype
|
||||
, libgnomecanvas
|
||||
, pango, libX11, xorgproto, zlib, poppler
|
||||
, autoconf, automake, libtool, pkg-config}:
|
||||
|
||||
let
|
||||
isGdkQuartzBackend = (gtk2.gdktarget == "quartz");
|
||||
in
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
version = "0.4.8.2016";
|
||||
pname = "xournal";
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/xournal/xournal-${version}.tar.gz";
|
||||
sha256 = "09i88v3wacmx7f96dmq0l3afpyv95lh6jrx16xzm0jd1szdrhn5j";
|
||||
};
|
||||
|
||||
buildInputs = [
|
||||
ghostscript atk gtk2 glib fontconfig freetype
|
||||
libgnomecanvas
|
||||
pango libX11 xorgproto zlib poppler
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ autoconf automake libtool pkg-config ];
|
||||
|
||||
NIX_LDFLAGS = "-lz"
|
||||
+ lib.optionalString (!isGdkQuartzBackend) " -lX11";
|
||||
|
||||
desktopItem = makeDesktopItem {
|
||||
name = "xournal-${version}";
|
||||
exec = "xournal";
|
||||
icon = "xournal";
|
||||
desktopName = "Xournal";
|
||||
comment = meta.description;
|
||||
categories = [ "Office" "Graphics" ];
|
||||
mimeTypes = [ "application/pdf" "application/x-xoj" ];
|
||||
genericName = "PDF Editor";
|
||||
};
|
||||
|
||||
postInstall=''
|
||||
mkdir --parents $out/share/mime/packages
|
||||
cat << EOF > $out/share/mime/packages/xournal.xml
|
||||
<mime-info xmlns='http://www.freedesktop.org/standards/shared-mime-info'>
|
||||
<mime-type type="application/x-xoj">
|
||||
<comment>Xournal Document</comment>
|
||||
<glob pattern="*.xoj"/>
|
||||
</mime-type>
|
||||
</mime-info>
|
||||
EOF
|
||||
cp --recursive ${desktopItem}/share/applications $out/share
|
||||
mkdir --parents $out/share/icons
|
||||
cp $out/share/xournal/pixmaps/xournal.png $out/share/icons
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://xournal.sourceforge.net/";
|
||||
description = "Note-taking application (supposes stylus)";
|
||||
maintainers = [ maintainers.guibert ];
|
||||
license = licenses.gpl2;
|
||||
platforms = with platforms; linux ++ darwin;
|
||||
mainProgram = "xournal";
|
||||
};
|
||||
}
|
||||
@@ -1410,6 +1410,7 @@ mapAliases {
|
||||
xmlada = gnatPackages.xmlada; # Added 2024-02-25
|
||||
xmr-stak = throw "xmr-stak has been removed from nixpkgs because it was broken"; # Added 2024-07-15
|
||||
xmake-core-sv = throw "'xmake-core-sv' has been removed, use 'libsv' instead"; # Added 2024-10-10
|
||||
xournal = throw "'xournal' has been removed due to lack of activity upstream and depending on gnome2. Consider using 'xournalpp' instead."; # Added 2024-12-06
|
||||
xonsh-unwrapped = python3Packages.xonsh; # Added 2024-06-18
|
||||
xprite-editor = throw "'xprite-editor' has been removed due to lack of maintenance upstream. Consider using 'pablodraw' or 'aseprite' instead"; # Added 2024-09-14
|
||||
xulrunner = firefox-unwrapped; # Added 2023-11-03
|
||||
|
||||
@@ -16234,10 +16234,6 @@ with pkgs;
|
||||
inherit (gnome2) libglade GConf;
|
||||
};
|
||||
|
||||
xournal = callPackage ../applications/graphics/xournal {
|
||||
inherit (gnome2) libgnomecanvas;
|
||||
};
|
||||
|
||||
xournalpp = darwin.apple_sdk_11_0.callPackage ../applications/graphics/xournalpp {
|
||||
lua = lua5_3;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user