3
0
Fork 0
forked from mirrors/nixpkgs

picocom: Enable on Darwin

Sets package platform to Unix and adds IOKit dependency on Darwin.
This commit is contained in:
Gerd Flaig 2019-01-19 22:08:15 +01:00
parent 6ad1271a4c
commit 1066a1ae53
2 changed files with 11 additions and 4 deletions

View file

@ -1,4 +1,8 @@
{ stdenv, fetchFromGitHub, makeWrapper, lrzsz }:
{ stdenv, fetchFromGitHub, makeWrapper, lrzsz, IOKit }:
assert stdenv.isDarwin -> IOKit != null;
with stdenv.lib;
stdenv.mkDerivation rec {
name = "picocom-${version}";
@ -11,7 +15,8 @@ stdenv.mkDerivation rec {
sha256 = "1vvjydqf0ax47nvdyyl67jafw5b3sfsav00xid6qpgia1gs2r72n";
};
buildInputs = [ makeWrapper ];
buildInputs = [ makeWrapper ]
++ optionals stdenv.isDarwin [ IOKit ];
installPhase = ''
mkdir -p $out/bin $out/share/man/man1
@ -26,6 +31,6 @@ stdenv.mkDerivation rec {
description = "Minimal dumb-terminal emulation program";
homepage = https://github.com/npat-efault/picocom/;
license = stdenv.lib.licenses.gpl2Plus;
platforms = stdenv.lib.platforms.gnu ++ stdenv.lib.platforms.linux; # arbitrary choice
platforms = platforms.unix;
};
}

View file

@ -18821,7 +18821,9 @@ in
picard = callPackage ../applications/audio/picard { };
picocom = callPackage ../tools/misc/picocom { };
picocom = callPackage ../tools/misc/picocom {
inherit (darwin.apple_sdk.frameworks) IOKit;
};
pidgin = callPackage ../applications/networking/instant-messengers/pidgin {
openssl = if config.pidgin.openssl or true then openssl else null;