diff options
Diffstat (limited to 'nixpkgs/pkgs/by-name/li')
-rw-r--r-- | nixpkgs/pkgs/by-name/li/libedit/01-cygwin.patch | 25 | ||||
-rw-r--r-- | nixpkgs/pkgs/by-name/li/libedit/package.nix | 56 | ||||
-rw-r--r-- | nixpkgs/pkgs/by-name/li/libmbd/package.nix | 4 | ||||
-rw-r--r-- | nixpkgs/pkgs/by-name/li/libvpl/opengl-driver-lib.patch | 19 | ||||
-rw-r--r-- | nixpkgs/pkgs/by-name/li/libvpl/package.nix | 9 | ||||
-rw-r--r-- | nixpkgs/pkgs/by-name/li/listmonk/frontend.nix | 37 | ||||
-rw-r--r-- | nixpkgs/pkgs/by-name/li/listmonk/package.json | 45 | ||||
-rw-r--r-- | nixpkgs/pkgs/by-name/li/listmonk/package.nix | 56 | ||||
-rw-r--r-- | nixpkgs/pkgs/by-name/li/listmonk/stuffbin.nix | 25 | ||||
-rw-r--r-- | nixpkgs/pkgs/by-name/li/live555/package.nix | 4 |
10 files changed, 276 insertions, 4 deletions
diff --git a/nixpkgs/pkgs/by-name/li/libedit/01-cygwin.patch b/nixpkgs/pkgs/by-name/li/libedit/01-cygwin.patch new file mode 100644 index 000000000000..33bd39ed61e5 --- /dev/null +++ b/nixpkgs/pkgs/by-name/li/libedit/01-cygwin.patch @@ -0,0 +1,25 @@ +--- libedit-20120311-3.0/src/chartype.h 2012-03-11 10:54:58.000000000 +0100 ++++ libedit-20120311-3.0/src/chartype.h 2012-05-03 19:00:20.651847423 +0200 +@@ -56,9 +56,11 @@ + /* Oh for a <uchar.h> with char32_t and __STDC_UTF_32__ in it... + * ref: ISO/IEC DTR 19769 + */ ++#ifndef __CYGWIN__ + #if WCHAR_MAX < INT32_MAX + #warning Build environment does not support non-BMP characters + #endif ++#endif + + #ifndef HAVE_WCSDUP + wchar_t *wcsdup(const wchar_t *s); +--- libedit-20120311-3.0/src/editline/readline.h 2011-02-26 23:42:59.000000000 +0100 ++++ libedit-20120311-3.0/src/editline/readline.h 2012-05-03 19:00:49.211244803 +0200 +@@ -75,7 +75,7 @@ typedef KEYMAP_ENTRY *Keymap; + + #ifndef CTRL + #include <sys/ioctl.h> +-#if !defined(__sun) && !defined(__hpux) && !defined(_AIX) ++#if !defined(__sun) && !defined(__hpux) && !defined(_AIX) && !defined(__CYGWIN__) + #include <sys/ttydefaults.h> + #endif + #ifndef CTRL diff --git a/nixpkgs/pkgs/by-name/li/libedit/package.nix b/nixpkgs/pkgs/by-name/li/libedit/package.nix new file mode 100644 index 000000000000..aeb79811d6e7 --- /dev/null +++ b/nixpkgs/pkgs/by-name/li/libedit/package.nix @@ -0,0 +1,56 @@ +{ lib +, stdenv +, fetchurl +, ncurses +}: + +stdenv.mkDerivation (finalAttrs: { + pname = "libedit"; + version = "20230828-3.1"; + + src = fetchurl { + url = "https://thrysoee.dk/editline/libedit-${finalAttrs.version}.tar.gz"; + hash = "sha256-TugYK25WkpDn0fRPD3jayHFrNfZWt2Uo9pnGnJiBTa0="; + }; + + outputs = [ "out" "dev" "man" ]; + + patches = [ + ./01-cygwin.patch + ]; + + propagatedBuildInputs = [ + ncurses + ]; + + # GCC automatically include `stdc-predefs.h` while Clang does not do this by + # default. While Musl is ISO 10646 compliant, it does not define + # __STDC_ISO_10646__. + # This definition is in `stdc-predefs.h` -- that's why libedit builds just + # fine with GCC and Musl. + # There is a DR to fix this issue with Clang which is not merged yet. + # https://reviews.llvm.org/D137043 + env.NIX_CFLAGS_COMPILE = + lib.optionalString (stdenv.targetPlatform.isMusl && stdenv.cc.isClang) + "-D__STDC_ISO_10646__=201103L"; + + postFixup = '' + find $out/lib -type f | \ + grep '\.\(la\|pc\)''$' | \ + xargs sed -i -e 's,-lncurses[a-z]*,-L${ncurses.out}/lib -lncursesw,g' + ''; + + meta = { + homepage = "http://www.thrysoee.dk/editline/"; + description = "A port of the NetBSD Editline library (libedit)"; + longDescription = '' + This is an autotool- and libtoolized port of the NetBSD Editline library + (libedit). This Berkeley-style licensed command line editor library + provides generic line editing, history, and tokenization functions, + similar to those found in GNU Readline. + ''; + license = with lib.licenses; [ bsd3 ]; + maintainers = with lib.maintainers; [ AndersonTorres ]; + platforms = lib.platforms.all; + }; +}) diff --git a/nixpkgs/pkgs/by-name/li/libmbd/package.nix b/nixpkgs/pkgs/by-name/li/libmbd/package.nix index ccb42ef49cfb..5322bdfa942e 100644 --- a/nixpkgs/pkgs/by-name/li/libmbd/package.nix +++ b/nixpkgs/pkgs/by-name/li/libmbd/package.nix @@ -14,13 +14,13 @@ assert !lapack.isILP64; stdenv.mkDerivation rec { pname = "libMBD"; - version = "0.12.7"; + version = "0.12.8"; src = fetchFromGitHub { owner = "libmbd"; repo = pname; rev = version; - hash = "sha256-39cvOUTAuuWLGOLdapR5trmCttCnijOWvPhSBTeTxTA="; + hash = "sha256-ctUaBLPaZHoV1rU3u1idvPLGbvC9Z17YBxYKCaL7EMk="; }; preConfigure = '' diff --git a/nixpkgs/pkgs/by-name/li/libvpl/opengl-driver-lib.patch b/nixpkgs/pkgs/by-name/li/libvpl/opengl-driver-lib.patch new file mode 100644 index 000000000000..5913190a5384 --- /dev/null +++ b/nixpkgs/pkgs/by-name/li/libvpl/opengl-driver-lib.patch @@ -0,0 +1,19 @@ +--- a/libvpl/src/mfx_dispatcher_vpl_loader.cpp ++++ b/libvpl/src/mfx_dispatcher_vpl_loader.cpp +@@ -548,6 +548,16 @@ mfxStatus LoaderCtxVPL::BuildListOfCandidateLibs() { + it++; + } + ++ // fourth priority ++ searchDirList.clear(); ++ searchDirList.push_back("@driverLink@/lib"); ++ it = searchDirList.begin(); ++ while (it != searchDirList.end()) { ++ STRING_TYPE nextDir = (*it); ++ sts = SearchDirForLibs(nextDir, m_libInfoList, LIB_PRIORITY_05); ++ it++; ++ } ++ + // lowest priority: legacy MSDK installation + searchDirList.clear(); + GetSearchPathsLegacy(searchDirList); diff --git a/nixpkgs/pkgs/by-name/li/libvpl/package.nix b/nixpkgs/pkgs/by-name/li/libvpl/package.nix index 8a647916ca63..f28287053beb 100644 --- a/nixpkgs/pkgs/by-name/li/libvpl/package.nix +++ b/nixpkgs/pkgs/by-name/li/libvpl/package.nix @@ -3,6 +3,8 @@ , fetchFromGitHub , cmake , pkg-config +, substituteAll +, addDriverRunpath }: stdenv.mkDerivation (finalAttrs: { @@ -32,6 +34,13 @@ stdenv.mkDerivation (finalAttrs: { "-DBUILD_TOOLS=OFF" ]; + patches = [ + (substituteAll { + src = ./opengl-driver-lib.patch; + inherit (addDriverRunpath) driverLink; + }) + ]; + meta = with lib; { description = "Intel Video Processing Library"; homepage = "https://intel.github.io/libvpl/"; diff --git a/nixpkgs/pkgs/by-name/li/listmonk/frontend.nix b/nixpkgs/pkgs/by-name/li/listmonk/frontend.nix new file mode 100644 index 000000000000..928092038c12 --- /dev/null +++ b/nixpkgs/pkgs/by-name/li/listmonk/frontend.nix @@ -0,0 +1,37 @@ +{ mkYarnPackage +, fetchYarnDeps +, meta +, version +, src +}: + +mkYarnPackage { + pname = "listmonk-frontend"; + inherit version; + + src = "${src}/frontend"; + packageJSON = ./package.json; + + offlineCache = fetchYarnDeps { + yarnLock = "${src}/frontend/yarn.lock"; + hash = "sha256-TdrglyRtb2Q8SFtoiCoDj/zBV2+7DwzIm/Fzlt0ZvSo="; + }; + + configurePhase = '' + ln -s $node_modules node_modules + ''; + + buildPhase = '' + yarn --offline build + ''; + + installPhase = '' + mkdir $out + cp -R dist/* $out + ''; + + doDist = false; + + + inherit meta; +} diff --git a/nixpkgs/pkgs/by-name/li/listmonk/package.json b/nixpkgs/pkgs/by-name/li/listmonk/package.json new file mode 100644 index 000000000000..25018ef265dd --- /dev/null +++ b/nixpkgs/pkgs/by-name/li/listmonk/package.json @@ -0,0 +1,45 @@ +{ + "name": "listmonk", + "version": "0.1.0", + "private": true, + "scripts": { + "dev": "vite", + "build": "vite build", + "serve": "vite preview", + "lint": "eslint --ext .js,.vue --ignore-path .gitignore src", + "prebuild": "eslint --ext .js,.vue --ignore-path .gitignore src" + }, + "dependencies": { + "@tinymce/tinymce-vue": "^3", + "axios": "^1.6.2", + "buefy": "^0.9.25", + "bulma": "^0.9.4", + "chart.js": "^4.4.1", + "codeflask": "^1.4.1", + "dayjs": "^1.11.10", + "indent.js": "^0.3.5", + "qs": "^6.10.1", + "textversionjs": "^1.1.3", + "tinymce": "^5.10.9", + "turndown": "^7.1.2", + "vue": "^2.7.14", + "vue-chartjs": "^5.3.0", + "vue-i18n": "^8.28.2", + "vue-router": "^3.2.0", + "vuex": "^3.6.2" + }, + "devDependencies": { + "@vitejs/plugin-vue2": "^2.3.1", + "@vue/eslint-config-airbnb": "^7.0.1", + "cypress": "13.6.1", + "cypress-file-upload": "^5.0.2", + "eslint": "^8.56.0", + "eslint-define-config": "^2.0.0", + "eslint-plugin-import": "^2.23.3", + "eslint-plugin-vue": "^9.19.2", + "sass": "^1.34.0", + "vite": "^5.0.12", + "vue-eslint-parser": "^9.3.2", + "vue-template-compiler": "^2.6.12" + } +} diff --git a/nixpkgs/pkgs/by-name/li/listmonk/package.nix b/nixpkgs/pkgs/by-name/li/listmonk/package.nix new file mode 100644 index 000000000000..3ac3522a861e --- /dev/null +++ b/nixpkgs/pkgs/by-name/li/listmonk/package.nix @@ -0,0 +1,56 @@ +{ lib, buildGoModule, fetchFromGitHub, callPackage, stuffbin, nixosTests }: + +buildGoModule rec { + pname = "listmonk"; + version = "3.0.0"; + + src = fetchFromGitHub { + owner = "knadh"; + repo = "listmonk"; + rev = "v${version}"; + sha256 = "sha256-eNX+2ens+mz2V8ZBHtFFHDVbi64AAiiREElMjh67Dd8="; + }; + + vendorHash = "sha256-XAm2VfX1nHWTuAV2COEn8qrqPNv0xbaWgTYCpjrEfMw="; + + nativeBuildInputs = [ + stuffbin + ]; + + ldflags = [ "-s" "-w" "-X main.version=${version}" ]; + + postInstall = '' + mv $out/bin/cmd $out/bin/listmonk + ''; + + # Run stuffbin to stuff the frontend and the static in the binary. + postFixup = + let + vfsMappings = [ + "config.toml.sample" + "schema.sql" + "queries.sql" + "static/public:/public" + "static/email-templates" + "${passthru.frontend}:/admin" + "i18n:/i18n" + ]; + in + '' + stuffbin -a stuff -in $out/bin/listmonk -out $out/bin/listmonk \ + ${lib.concatStringsSep " " vfsMappings} + ''; + + passthru = { + frontend = callPackage ./frontend.nix { inherit meta version src; }; + tests = { inherit (nixosTests) listmonk; }; + }; + + meta = with lib; { + description = "High performance, self-hosted, newsletter and mailing list manager with a modern dashboard."; + homepage = "https://github.com/knadh/listmonk"; + changelog = "https://github.com/knadh/listmonk/releases/tag/v${version}"; + maintainers = with maintainers; [ raitobezarius ]; + license = licenses.agpl3; + }; +} diff --git a/nixpkgs/pkgs/by-name/li/listmonk/stuffbin.nix b/nixpkgs/pkgs/by-name/li/listmonk/stuffbin.nix new file mode 100644 index 000000000000..2640ba8b8519 --- /dev/null +++ b/nixpkgs/pkgs/by-name/li/listmonk/stuffbin.nix @@ -0,0 +1,25 @@ +{ lib, buildGoModule, fetchFromGitHub }: + +buildGoModule rec { + pname = "stuffbin"; + version = "1.1.0"; + + vendorHash = null; + + src = fetchFromGitHub { + owner = "knadh"; + repo = "stuffbin"; + rev = "v${version}"; + sha256 = "sha256-M72xNh7bKUMLzA+M8bJB++kJ5KCrkboQm1v8BasP3Yo="; + }; + + ldflags = [ "-s" "-w" "-X main.version=${version}" ]; + + meta = with lib; { + description = "Compress and embed static files and assets into Go binaries and access them with a virtual file system in production"; + homepage = "https://github.com/knadh/stuffbin"; + changelog = "https://github.com/knadh/stuffbin/releases/tag/v${version}"; + maintainers = with maintainers; [ raitobezarius ]; + license = licenses.mit; + }; +} diff --git a/nixpkgs/pkgs/by-name/li/live555/package.nix b/nixpkgs/pkgs/by-name/li/live555/package.nix index b08ed44f4854..4630cf13da2a 100644 --- a/nixpkgs/pkgs/by-name/li/live555/package.nix +++ b/nixpkgs/pkgs/by-name/li/live555/package.nix @@ -9,7 +9,7 @@ stdenv.mkDerivation (finalAttrs: { pname = "live555"; - version = "2023.11.30"; + version = "2024.02.28"; src = fetchurl { urls = [ @@ -18,7 +18,7 @@ stdenv.mkDerivation (finalAttrs: { "https://download.videolan.org/contrib/live555/live.${finalAttrs.version}.tar.gz" "mirror://sourceforge/slackbuildsdirectlinks/live.${finalAttrs.version}.tar.gz" ]; - hash = "sha256-xue+9YtdAM2XkzAY6dU2PZ3n6bvPwlULIHqBqc8wuSU="; + hash = "sha256-5WjtkdqoofZIijunfomcEeWj6l4CUK9HRoYAle2jSx8="; }; patches = [ |