tup: explain blocker for darwin build

This commit is contained in:
midchildan 2021-03-26 01:40:28 +09:00
parent 31a3099d4b
commit 21f9e5aac2
No known key found for this signature in database
GPG Key ID: D9A5748BACC6E3C2

View File

@ -1,6 +1,8 @@
{ lib, stdenv, fetchFromGitHub, fuse3, pkg-config, pcre }:
{ lib, stdenv, fetchFromGitHub, fuse3, macfuse-stubs, pkg-config, pcre }:
stdenv.mkDerivation rec {
let
fuse = if stdenv.isDarwin then macfuse-stubs else fuse3;
in stdenv.mkDerivation rec {
pname = "tup";
version = "0.7.10";
outputs = [ "bin" "man" "out" ];
@ -13,7 +15,7 @@ stdenv.mkDerivation rec {
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [ fuse3 pcre ];
buildInputs = [ fuse pcre ];
configurePhase = ''
sed -i 's/`git describe`/v${version}/g' src/tup/link.sh
@ -50,6 +52,13 @@ stdenv.mkDerivation rec {
homepage = "http://gittup.org/tup/";
license = licenses.gpl2;
maintainers = with maintainers; [ ehmry ];
platforms = platforms.linux ++ platforms.darwin;
platforms = platforms.unix;
# TODO: Remove once nixpkgs uses newer SDKs that supports '*at' functions.
# Probably MacOS SDK 10.13 or later. Check the current version in
# ../../../../os-specific/darwin/apple-sdk/default.nix
#
# https://github.com/gittup/tup/commit/3697c74
broken = stdenv.isDarwin;
};
}