From 05e5ae68399451d6efa6e1b33d7a7dbda567432a Mon Sep 17 00:00:00 2001 From: Weijia Wang <9713184+wegank@users.noreply.github.com> Date: Fri, 30 Jun 2023 17:47:41 +0300 Subject: [PATCH] libisofs: add darwin support --- pkgs/development/libraries/libisofs/default.nix | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/pkgs/development/libraries/libisofs/default.nix b/pkgs/development/libraries/libisofs/default.nix index e269d9e0e10..a9db714a5bb 100644 --- a/pkgs/development/libraries/libisofs/default.nix +++ b/pkgs/development/libraries/libisofs/default.nix @@ -1,4 +1,4 @@ -{ lib, stdenv, fetchurl, acl, attr, zlib }: +{ lib, stdenv, fetchurl, acl, attr, libiconv, zlib }: stdenv.mkDerivation rec { pname = "libisofs"; @@ -11,9 +11,12 @@ stdenv.mkDerivation rec { hash = "sha256-rB/TONZBdEyh+xVnkXGIt5vIwlBoMt1WiF/smGVrnyU="; }; - buildInputs = [ + buildInputs = lib.optionals stdenv.isLinux [ acl attr + ] ++ lib.optionals stdenv.isDarwin [ + libiconv + ] ++ [ zlib ]; @@ -24,6 +27,6 @@ stdenv.mkDerivation rec { description = "A library to create an ISO-9660 filesystem with extensions like RockRidge or Joliet"; license = licenses.gpl2Plus; maintainers = with maintainers; [ abbradar vrthra ]; - platforms = with platforms; linux; + platforms = with platforms; unix; }; }