t-rec: fix darwin build

This commit is contained in:
Stéphan Kochen
2021-05-18 19:40:21 +02:00
committed by Jonathan Ringer
parent 3f17088086
commit 12103ae09f
2 changed files with 8 additions and 3 deletions

View File

@@ -1,4 +1,5 @@
{ lib, imagemagick, ffmpeg, rustPlatform, fetchFromGitHub, makeWrapper }:
{ lib, stdenv, imagemagick, ffmpeg, rustPlatform, fetchFromGitHub, makeWrapper
, libiconv, Foundation }:
let
binPath = lib.makeBinPath [
@@ -17,8 +18,10 @@ rustPlatform.buildRustPackage rec {
sha256 = "InArrBqfhDrsonjmCIPTBVOA/s2vYml9Ay6cdrKLd7c=";
};
buildInputs = [ imagemagick ];
nativeBuildInputs = [ makeWrapper ];
buildInputs = [ imagemagick ]
++ lib.optionals stdenv.isDarwin [ libiconv Foundation ];
postInstall = ''
wrapProgram "$out/bin/t-rec" --prefix PATH : "${binPath}"
'';