1 {stdenv, lib, fetchFromGitHub, autoreconfHook, ApplicationServices}:
3 stdenv.mkDerivation rec {
6 src = fetchFromGitHub {
9 rev = "fe3d3dc411bcea6af7a8cbe53c0e08ed5ecacdb2";
10 sha256 = "1pg4i6ghpib2gy1sqpml7dbnhr1vbr43fs2pqkd09i4w3nmgpic9";
13 nativeBuildInputs = [autoreconfHook];
14 buildInputs = [ApplicationServices];
16 "--with-macosx-sdk=/homeless-shelter"
18 # needed to prevent duti from trying to guess our sdk
19 # NOTE: this is different than stdenv.hostPlatform.config!
20 "--host=x86_64-apple-darwin18"
24 description = "Command-line tool to select default applications for document types and URL schemes on Mac OS X";
26 duti is a command-line utility capable of setting default applications for
27 various document types on Mac OS X, using Apple's Uniform Type Identifiers. A
28 UTI is a unique string describing the format of a file's content. For instance,
29 a Microsoft Word document has a UTI of com.microsoft.word.doc. Using duti, the
30 user can change which application acts as the default handler for a given UTI.
32 maintainers = with maintainers; [matthewbauer];
33 platforms = platforms.darwin;
34 license = licenses.publicDomain;
35 homepage = "https://github.com/moretension/duti/";