libtermkey: fix cross-compilation

This commit is contained in:
Nikolay Korotkiy 2022-05-23 03:12:26 +03:00
parent 305b8d473e
commit 9608aebcca
No known key found for this signature in database
GPG key ID: D1DE6D7F693663A5

View file

@ -2,7 +2,6 @@
stdenv.mkDerivation rec {
pname = "libtermkey";
version = "0.22";
src = fetchzip {
@ -10,12 +9,13 @@ stdenv.mkDerivation rec {
sha256 = "02dks6bj7n23lj005yq41azf95wh3hapmgc2lzyh12vigkjh67rg";
};
makeFlags = [ "PREFIX=$(out)" ]
++ lib.optional stdenv.isDarwin "LIBTOOL=${libtool}/bin/libtool";
makeFlags = [ "PREFIX=$(out)" "LIBTOOL=${libtool}/bin/libtool" ];
nativeBuildInputs = [ libtool pkg-config ];
buildInputs = [ ncurses unibilium ];
strictDeps = true;
meta = with lib; {
description = "Terminal keypress reading library";
homepage = "http://www.leonerd.org.uk/code/libtermkey";