about summary refs log tree commit diff
path: root/nixpkgs/pkgs/by-name/li
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/by-name/li')
-rw-r--r--nixpkgs/pkgs/by-name/li/libaribcaption/package.nix48
-rw-r--r--nixpkgs/pkgs/by-name/li/libcpuid/package.nix24
2 files changed, 72 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/by-name/li/libaribcaption/package.nix b/nixpkgs/pkgs/by-name/li/libaribcaption/package.nix
new file mode 100644
index 000000000000..7d39841ec6fe
--- /dev/null
+++ b/nixpkgs/pkgs/by-name/li/libaribcaption/package.nix
@@ -0,0 +1,48 @@
+{ lib
+, stdenv
+, fetchFromGitHub
+, cmake
+
+, fontconfig
+, freetype
+
+, ApplicationServices
+, CoreFoundation
+, CoreGraphics
+, CoreText
+}:
+
+stdenv.mkDerivation rec {
+  pname = "libaribcaption";
+  version = "1.1.1";
+
+  src = fetchFromGitHub {
+    owner = "xqq";
+    repo = "libaribcaption";
+    rev = "v${version}";
+    hash = "sha256-x6l0ZrTktSsqfDLVRXpQtUOruhfc8RF3yT991UVZiKA=";
+  };
+
+  nativeBuildInputs = [ cmake ];
+
+  cmakeFlags = [ "-DBUILD_SHARED_LIBS=ON" ];
+
+  buildInputs = lib.optionals (!stdenv.isDarwin) [
+    fontconfig
+    freetype
+  ] ++ lib.optionals stdenv.isDarwin [
+    ApplicationServices
+    CoreFoundation
+    CoreGraphics
+    CoreText
+  ];
+
+  meta = with lib; {
+    description = "Portable ARIB STD-B24 Caption Decoder/Renderer";
+    homepage = "https://github.com/xqq/libaribcaption";
+    changelog = "https://github.com/xqq/libaribcaption/releases/tag/${src.rev}";
+    license = licenses.mit;
+    maintainers = with maintainers; [ chayleaf ];
+    platforms = platforms.all;
+  };
+}
diff --git a/nixpkgs/pkgs/by-name/li/libcpuid/package.nix b/nixpkgs/pkgs/by-name/li/libcpuid/package.nix
new file mode 100644
index 000000000000..56df13aabd2a
--- /dev/null
+++ b/nixpkgs/pkgs/by-name/li/libcpuid/package.nix
@@ -0,0 +1,24 @@
+{ lib, stdenv, fetchFromGitHub, fetchpatch, autoreconfHook }:
+
+stdenv.mkDerivation rec {
+  pname = "libcpuid";
+  version = "0.6.4";
+
+  src = fetchFromGitHub {
+    owner = "anrieff";
+    repo = "libcpuid";
+    rev = "v${version}";
+    sha256 = "sha256-Zs5GKvSasdfLqo8oErDQNAuXRG27Bm9vNwyooqbol0Q=";
+  };
+
+  nativeBuildInputs = [ autoreconfHook ];
+
+  meta = with lib; {
+    homepage = "https://libcpuid.sourceforge.net/";
+    description = "A small C library for x86 CPU detection and feature extraction";
+    changelog = "https://raw.githubusercontent.com/anrieff/libcpuid/master/ChangeLog";
+    license = licenses.bsd2;
+    maintainers = with maintainers; [ orivej artuuge ];
+    platforms = platforms.x86;
+  };
+}