2021-01-20 22:30:57 +01:00
|
|
|
{stdenv, lib, fetchFromGitHub, autoreconfHook, ApplicationServices}:
|
2017-07-14 07:18:59 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "duti";
|
2020-12-29 23:58:38 +01:00
|
|
|
version = "1.5.5pre";
|
2017-07-14 07:18:59 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "moretension";
|
|
|
|
repo = pname;
|
2020-12-29 23:58:38 +01:00
|
|
|
rev = "fe3d3dc411bcea6af7a8cbe53c0e08ed5ecacdb2";
|
|
|
|
sha256 = "1pg4i6ghpib2gy1sqpml7dbnhr1vbr43fs2pqkd09i4w3nmgpic9";
|
2017-07-14 07:18:59 +02:00
|
|
|
};
|
2020-12-29 23:58:38 +01:00
|
|
|
|
2017-07-14 07:18:59 +02:00
|
|
|
nativeBuildInputs = [autoreconfHook];
|
2021-01-20 22:30:57 +01:00
|
|
|
buildInputs = [ApplicationServices];
|
2020-12-29 23:59:11 +01:00
|
|
|
configureFlags = [
|
|
|
|
"--with-macosx-sdk=/homeless-shelter"
|
|
|
|
|
|
|
|
# needed to prevent duti from trying to guess our sdk
|
|
|
|
# NOTE: this is different than stdenv.hostPlatform.config!
|
|
|
|
"--host=x86_64-apple-darwin18"
|
|
|
|
];
|
|
|
|
|
2017-07-14 07:18:59 +02:00
|
|
|
meta = with lib; {
|
|
|
|
description = "A command-line tool to select default applications for document types and URL schemes on Mac OS X";
|
|
|
|
longDescription = ''
|
|
|
|
duti is a command-line utility capable of setting default applications for
|
|
|
|
various document types on Mac OS X, using Apple's Uniform Type Identifiers. A
|
|
|
|
UTI is a unique string describing the format of a file's content. For instance,
|
|
|
|
a Microsoft Word document has a UTI of com.microsoft.word.doc. Using duti, the
|
|
|
|
user can change which application acts as the default handler for a given UTI.
|
|
|
|
'';
|
|
|
|
maintainers = with maintainers; [matthewbauer];
|
|
|
|
platforms = platforms.darwin;
|
2017-12-05 23:20:11 +01:00
|
|
|
license = licenses.publicDomain;
|
2017-07-14 07:18:59 +02:00
|
|
|
homepage = "http://duti.org/";
|
|
|
|
};
|
|
|
|
}
|