mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-30 08:44:31 +00:00
venera: init at 1.0.8 (#359919)
This commit is contained in:
commit
b222156aea
78
pkgs/by-name/ve/venera/package.nix
Normal file
78
pkgs/by-name/ve/venera/package.nix
Normal file
@ -0,0 +1,78 @@
|
||||
{
|
||||
lib,
|
||||
fetchFromGitHub,
|
||||
flutter,
|
||||
webkitgtk_4_1,
|
||||
pkg-config,
|
||||
copyDesktopItems,
|
||||
makeDesktopItem,
|
||||
}:
|
||||
flutter.buildFlutterApplication rec {
|
||||
pname = "venera";
|
||||
version = "1.0.8";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "venera-app";
|
||||
repo = "venera";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-zkV2EnTFjrP/XGH55htJVhC+njcatuto3/0FoayR2zc=";
|
||||
};
|
||||
|
||||
pubspecLock = lib.importJSON ./pubspec.lock.json;
|
||||
|
||||
gitHashes = {
|
||||
desktop_webview_window = "sha256-15tw3gLN9e886QjBFuYP34KLD1lN8AmQYXVza5Bvs40=";
|
||||
flutter_qjs = "sha256-IeOuw2oh3WpuYQgfE77BoPU8Qukp4l8SSmZtHebKU4M=";
|
||||
flutter_to_arch = "sha256-DdP82Bdl58XW/BxMyWV3Vh4JYC2DNTjZcQB0fvw72fA=";
|
||||
lodepng_flutter = "sha256-puw+eVe/ZtzV+PTsC0WmP0YLuWu5slFY0r0v/SHyzHI=";
|
||||
photo_view = "sha256-Z+9xgvk8YS+bgCbBW7BBY72tV6JUq2kCX5OwKFK4YPE=";
|
||||
scrollable_positioned_list = "sha256-6XmBlNxE7DEqY2LsEFtVrshn2Xt55XnmaiTq+tiPInA=";
|
||||
zip_flutter = "sha256-104/tGShkLAOYw9dC/yrt/qnm0NZ+Jk7nkbt3lPcYA8=";
|
||||
webdav_client = "sha256-Dz/4qW+cYGyNtK8S/abFslwQNroidgrHl7oJw3uXIqM=";
|
||||
flutter_saf = "sha256-Blh2YxRlO3U/N6GmCnXhNevQYruWT1Zzl/P2gHSva6k=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
copyDesktopItems
|
||||
pkg-config
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
webkitgtk_4_1
|
||||
];
|
||||
|
||||
desktopItems = [
|
||||
(makeDesktopItem {
|
||||
name = "venera";
|
||||
exec = "venera";
|
||||
icon = "venera";
|
||||
genericName = "Venera";
|
||||
desktopName = "Venera";
|
||||
categories = [
|
||||
"Utility"
|
||||
];
|
||||
keywords = [
|
||||
"Flutter"
|
||||
"comic"
|
||||
"images"
|
||||
];
|
||||
})
|
||||
];
|
||||
|
||||
extraWrapProgramArgs = ''
|
||||
--prefix LD_LIBRARY_PATH : "$out/app/${pname}/lib"
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
install -Dm0644 ./debian/gui/venera.png $out/share/pixmaps/venera.png
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Comic reader that support reading local and network comics";
|
||||
homepage = "https://github.com/venera-app/venera";
|
||||
mainProgram = "venera";
|
||||
license = with lib.licenses; [ gpl3Plus ];
|
||||
maintainers = with lib.maintainers; [ aucub ];
|
||||
platforms = lib.platforms.linux;
|
||||
};
|
||||
}
|
1377
pkgs/by-name/ve/venera/pubspec.lock.json
Normal file
1377
pkgs/by-name/ve/venera/pubspec.lock.json
Normal file
File diff suppressed because it is too large
Load Diff
@ -13,6 +13,7 @@
|
||||
rhttp = callPackage ./rhttp { };
|
||||
sqlcipher_flutter_libs = callPackage ./sqlcipher_flutter_libs { };
|
||||
sqlite3 = callPackage ./sqlite3 { };
|
||||
sqlite3_flutter_libs = callPackage ./sqlite3_flutter_libs { };
|
||||
system_tray = callPackage ./system-tray { };
|
||||
super_native_extensions = callPackage ./super_native_extensions { };
|
||||
}
|
||||
|
@ -0,0 +1,24 @@
|
||||
cmake_minimum_required(VERSION 3.14)
|
||||
set(PROJECT_NAME "sqlite3_flutter_libs")
|
||||
project(${PROJECT_NAME} LANGUAGES C CXX)
|
||||
|
||||
# This value is used when generating builds using this plugin, so it must
|
||||
# not be changed
|
||||
set(PLUGIN_NAME "sqlite3_flutter_libs_plugin")
|
||||
|
||||
find_package(PkgConfig REQUIRED)
|
||||
pkg_check_modules(SQLITE REQUIRED sqlite3)
|
||||
|
||||
add_library(${PLUGIN_NAME} SHARED
|
||||
"sqlite3_flutter_libs_plugin.cc"
|
||||
)
|
||||
|
||||
target_compile_features(${PLUGIN_NAME} PUBLIC cxx_std_14)
|
||||
target_compile_options(${PLUGIN_NAME} PRIVATE "$<$<NOT:$<CONFIG:Debug>>:-O3>")
|
||||
|
||||
set_target_properties(${PLUGIN_NAME} PROPERTIES
|
||||
CXX_VISIBILITY_PRESET hidden)
|
||||
target_compile_definitions(${PLUGIN_NAME} PRIVATE FLUTTER_PLUGIN_IMPL)
|
||||
target_include_directories(${PLUGIN_NAME} INTERFACE
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/include")
|
||||
target_link_libraries(${PLUGIN_NAME} PRIVATE flutter)
|
@ -0,0 +1,23 @@
|
||||
{
|
||||
stdenv,
|
||||
}:
|
||||
|
||||
{ version, src, ... }:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
pname = "sqlite3_flutter_libs";
|
||||
inherit version src;
|
||||
inherit (src) passthru;
|
||||
|
||||
postPatch = ''
|
||||
cp ${./CMakeLists.txt} linux/CMakeLists.txt
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
cp -r . $out
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
}
|
Loading…
Reference in New Issue
Block a user