···16 zathura_cb
17 (if useMupdf then zathura_pdf_mupdf else zathura_pdf_poppler)
18 ],
019}:
20symlinkJoin {
21 inherit (zathura_core) version;
···36 let
37 fishCompletion = "share/fish/vendor_completions.d/zathura.fish";
38 in
39- ''
0000040 makeWrapper ${zathura_core.bin}/bin/zathura $out/bin/zathura \
41 --prefix PATH ":" "${lib.makeBinPath [ file ]}" \
42 --prefix ZATHURA_PLUGINS_PATH : "$out/lib/zathura"
···46 # so we need to fix the path to reference $out instead.
47 rm "$out/${fishCompletion}"
48 substitute "${zathura_core.out}/${fishCompletion}" "$out/${fishCompletion}" \
49- --replace "${zathura_core.out}" "$out"
50 '';
5152- meta = with lib; {
53- homepage = "https://pwmt.org/projects/zathura/";
54 description = "Highly customizable and functional PDF viewer";
55 longDescription = ''
56 Zathura is a highly customizable and functional PDF viewer based on the
···58 is an application that provides a minimalistic and space saving interface
59 as well as an easy usage that mainly focuses on keyboard interaction.
60 '';
61- license = licenses.zlib;
62- platforms = platforms.unix;
63- maintainers = with maintainers; [
64 smironov
65 globin
66 TethysSvensson
···16 zathura_cb
17 (if useMupdf then zathura_pdf_mupdf else zathura_pdf_poppler)
18 ],
19+ stdenv,
20}:
21symlinkJoin {
22 inherit (zathura_core) version;
···37 let
38 fishCompletion = "share/fish/vendor_completions.d/zathura.fish";
39 in
40+ (lib.optionalString stdenv.hostPlatform.isLinux ''
41+ makeWrapper ${zathura_core.bin}/bin/zathura-sandbox $out/bin/zathura-sandbox \
42+ --prefix PATH ":" "${lib.makeBinPath [ file ]}" \
43+ --prefix ZATHURA_PLUGINS_PATH : "$out/lib/zathura"
44+ '')
45+ + ''
46 makeWrapper ${zathura_core.bin}/bin/zathura $out/bin/zathura \
47 --prefix PATH ":" "${lib.makeBinPath [ file ]}" \
48 --prefix ZATHURA_PLUGINS_PATH : "$out/lib/zathura"
···52 # so we need to fix the path to reference $out instead.
53 rm "$out/${fishCompletion}"
54 substitute "${zathura_core.out}/${fishCompletion}" "$out/${fishCompletion}" \
55+ --replace-fail "${zathura_core.out}" "$out"
56 '';
5758+ meta = {
59+ homepage = "https://pwmt.org/projects/zathura";
60 description = "Highly customizable and functional PDF viewer";
61 longDescription = ''
62 Zathura is a highly customizable and functional PDF viewer based on the
···64 is an application that provides a minimalistic and space saving interface
65 as well as an easy usage that mainly focuses on keyboard interaction.
66 '';
67+ license = lib.licenses.zlib;
68+ platforms = lib.platforms.unix;
69+ maintainers = with lib.maintainers; [
70 smironov
71 globin
72 TethysSvensson
···1-{ callPackage
2-, fetchurl
034 # This is a bit unusual, but makes version and hash easily
5 # overridable. This is useful when people have an older version of
6 # Softmaker Office or when the upstream archive was replaced and
7 # nixpkgs is not in sync yet.
8-, officeVersion ? {
9- version = "1032";
10- edition = "2021";
11- hash = "sha256-LchSqLVBdkmWJQ8hCEvtwRPgIUSDE0URKPzCkEexGbc=";
12-}
1314-, ... } @ args:
01516-callPackage ./generic.nix (args // rec {
17- inherit (officeVersion) version edition;
001819- pname = "softmaker-office";
20- suiteName = "SoftMaker Office";
2122- src = fetchurl {
23- inherit (officeVersion) hash;
24- url = "https://www.softmaker.net/down/softmaker-office-${edition}-${version}-amd64.tgz";
25- };
2627- archive = "office${edition}.tar.lzma";
28-})
0
···1+{
2+ callPackage,
3+ fetchurl,
45 # This is a bit unusual, but makes version and hash easily
6 # overridable. This is useful when people have an older version of
7 # Softmaker Office or when the upstream archive was replaced and
8 # nixpkgs is not in sync yet.
9+ officeVersion ? {
10+ version = "1222";
11+ edition = "2024";
12+ hash = "sha256-eyYBK5ZxPcBakOvXUQZIU2aftyH6PXh/rtqC/1BJhg4=";
13+ },
1415+ ...
16+}@args:
1718+callPackage ./generic.nix (
19+ args
20+ // rec {
21+ inherit (officeVersion) version edition;
2223+ pname = "softmaker-office";
24+ suiteName = "SoftMaker Office";
2526+ src = fetchurl {
27+ inherit (officeVersion) hash;
28+ url = "https://www.softmaker.net/down/softmaker-office-${edition}-${version}-amd64.tgz";
29+ };
3031+ archive = "office${edition}.tar.lzma";
32+ }
33+)
···1+--- old/linux/CMakeLists.txt 2024-11-30 12:48:42.346266052 +0000
2++++ new/linux/CMakeLists.txt 2024-11-30 12:50:45.495928529 +0000
3+@@ -9,29 +9,10 @@
4+ set(PROJECT_NAME "metadata_god")
5+ project(${PROJECT_NAME} LANGUAGES CXX)
6+7+-# Download the binaries if they are not already present.
8+-set(LibRoot "${CMAKE_CURRENT_SOURCE_DIR}/${LibraryVersion}")
9+-set(ArchivePath "${LibRoot}.tar.gz")
10+-if(NOT EXISTS ${ArchivePath})
11+- file(DOWNLOAD
12+- "https://github.com/KRTirtho/metadata_god/releases/download/${LibraryVersion}/other.tar.gz"
13+- ${ArchivePath}
14+- TLS_VERIFY ON
15+- )
16+-endif()
17+-
18+-# Extract the binaries, overriding any already present.
19+-file(REMOVE_RECURSE ${LibRoot})
20+-file(MAKE_DIRECTORY ${LibRoot})
21+-execute_process(
22+- COMMAND ${CMAKE_COMMAND} -E tar xzf ${ArchivePath}
23+- WORKING_DIRECTORY ${LibRoot}
24+-)
25+-
26+ # List of absolute paths to libraries that should be bundled with the plugin.
27+ # This list could contain prebuilt libraries, or libraries created by an
28+ # external build triggered from this build file.
29+ set(metadata_god_bundled_libraries
30+- "${LibRoot}/${FLUTTER_TARGET_PLATFORM}/libmetadata_god.so"
31++ @output_lib@
32+ PARENT_SCOPE
33+ )