@@ -0,0 +1,30 @@
1+{stdenv, lib, fetchFromGitHub, autoreconfHook, darwin}:
2+
3+stdenv.mkDerivation rec {
4+ pname = "duti";
5+ name = "${pname}-${version}";
6+ version = "1.5.4pre";
7+ src = fetchFromGitHub {
8+ owner = "moretension";
9+ repo = pname;
10+ rev = "7dbcae86f99fedef5a6c4311f032a0f1ca0539cc";
11+ sha256 = "1z9sa0yk87vs57d5338y6lvm1v1vvynxb7dy1x5aqzkcr0imhljl";
12+ };
13+ nativeBuildInputs = [autoreconfHook];
14+ buildInputs = [darwin.apple_sdk.frameworks.ApplicationServices];
15+ configureFlags = ["--with-macosx-sdk=/homeless-shelter"];
16+ meta = with lib; {
17+ description = "A command-line tool to select default applications for document types and URL schemes on Mac OS X";
18+ longDescription = ''
19+ duti is a command-line utility capable of setting default applications for
20+ various document types on Mac OS X, using Apple's Uniform Type Identifiers. A
21+ UTI is a unique string describing the format of a file's content. For instance,
22+ a Microsoft Word document has a UTI of com.microsoft.word.doc. Using duti, the
23+ user can change which application acts as the default handler for a given UTI.
24+ '';
25+ maintainers = with maintainers; [matthewbauer];
26+ platforms = platforms.darwin;
27+ licenses = licenses.publicDomain;
28+ homepage = "http://duti.org/";
29+ };
30+}