Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions pkgs/os-specific/darwin/duti/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{stdenv, lib, fetchFromGitHub, autoreconfHook, darwin}:

stdenv.mkDerivation rec {
pname = "duti";
name = "${pname}-${version}";
version = "1.5.4pre";
src = fetchFromGitHub {
owner = "moretension";
repo = pname;
rev = "7dbcae86f99fedef5a6c4311f032a0f1ca0539cc";
sha256 = "1z9sa0yk87vs57d5338y6lvm1v1vvynxb7dy1x5aqzkcr0imhljl";
};
nativeBuildInputs = [autoreconfHook];
buildInputs = [darwin.apple_sdk.frameworks.ApplicationServices];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The binary segfaults, we should fix the reference to CoreFoundation until #24693 is fixed.
(I suspect that's the issue)

configureFlags = ["--with-macosx-sdk=/homeless-shelter"];
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;
licenses = licenses.publicDomain;
homepage = "http://duti.org/";
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19401,4 +19401,6 @@ with pkgs;

macOSSierraShared = callPackage ../test/macos-sierra-shared {};
};

duti = callPackage ../os-specific/darwin/duti {};
}