diff options
-rw-r--r-- | pkgs/by-name/ha/harvid/package.nix | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/pkgs/by-name/ha/harvid/package.nix b/pkgs/by-name/ha/harvid/package.nix index d0b417515291..cdb6e4115b87 100644 --- a/pkgs/by-name/ha/harvid/package.nix +++ b/pkgs/by-name/ha/harvid/package.nix @@ -3,6 +3,9 @@ stdenv, fetchFromGitHub, pkg-config, + which, + unixtools, + cctools, ffmpeg, libjpeg, libpng, @@ -20,7 +23,12 @@ stdenv.mkDerivation (finalAttrs: { sha256 = "sha256-p0W+rKHH/iuGOcRjl6b4s6jQYkm7bqWCz849SDI/7fQ="; }; - nativeBuildInputs = [ pkg-config ]; + nativeBuildInputs = + [ pkg-config ] + ++ lib.optionals stdenv.isDarwin [ + which + unixtools.xxd + ]; buildInputs = [ ffmpeg @@ -28,6 +36,11 @@ stdenv.mkDerivation (finalAttrs: { libpng ]; + postPatch = lib.optionalString stdenv.isDarwin '' + substituteInPlace libharvid/Makefile \ + --replace-fail /usr/bin/libtool ${cctools}/bin/libtool + ''; + makeFlags = [ "PREFIX=$(out)" "VERSION=v${finalAttrs.version}" @@ -48,7 +61,7 @@ stdenv.mkDerivation (finalAttrs: { ''; homepage = "http://x42.github.io/harvid"; license = lib.licenses.gpl2Plus; - platforms = lib.platforms.linux; + platforms = lib.platforms.unix; maintainers = [ lib.maintainers.mitchmindtree ]; mainProgram = "harvid"; }; |