about summary refs log tree commit diff
diff options
context:
space:
mode:
authoraleksana2024-11-14 15:45:18 +0800
committergithub-actions[bot]2024-11-14 19:16:28 +0000
commit23b3d78b40c1ec5674a181ca0b8012075c96788c (patch)
tree2493089ae8d196c25fd47917e249ebe2a6d5fe30
parent82023ca5f4a9e74db84bf8b2bc09b5e9d42e4345 (diff)
openvi: refactor; use new apple sdk pattern
(cherry picked from commit 20627e3d68570baf528f93979a32540dd832dcde)
-rw-r--r--pkgs/by-name/op/openvi/package.nix25
1 files changed, 15 insertions, 10 deletions
diff --git a/pkgs/by-name/op/openvi/package.nix b/pkgs/by-name/op/openvi/package.nix
index e361e8b4628c..59592c707546 100644
--- a/pkgs/by-name/op/openvi/package.nix
+++ b/pkgs/by-name/op/openvi/package.nix
@@ -1,8 +1,10 @@
-{ lib
-, stdenv
-, fetchFromGitHub
-, ncurses
-, perl
+{
+  lib,
+  stdenv,
+  fetchFromGitHub,
+  ncurses,
+  perl,
+  apple-sdk_11,
 }:
 
 stdenv.mkDerivation rec {
@@ -16,7 +18,10 @@ stdenv.mkDerivation rec {
     hash = "sha256-P4w/PM9UmHmTzS9+WDK3x3MyZ7OoY2yO/Rx0vRMJuLI=";
   };
 
-  buildInputs = [ ncurses perl ];
+  buildInputs = [
+    ncurses
+    perl
+  ] ++ lib.optionals stdenv.isDarwin [ apple-sdk_11 ];
 
   makeFlags = [
     "PREFIX=$(out)"
@@ -28,12 +33,12 @@ stdenv.mkDerivation rec {
 
   enableParallelBuilding = true;
 
-  meta = with lib; {
+  meta = {
     homepage = "https://github.com/johnsonjh/OpenVi";
     description = "Portable OpenBSD vi for UNIX systems";
-    license = licenses.bsd3;
-    platforms = platforms.unix;
-    maintainers = with maintainers; [ aleksana ];
+    license = lib.licenses.bsd3;
+    platforms = lib.platforms.unix;
+    maintainers = with lib.maintainers; [ aleksana ];
     mainProgram = "ovi";
   };
 }