git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #27376 from matthewbauer/duti

duti: init at 1.5.4pre

commit3161790ed2469f15194b00afb7be7e66fb6f3822 authorDaiderd Jordan <daiderd@gmail.com> dateThu 14 Sep 2017, 19:26 (9 years ago) parentd2f40849111b53
2 files changed+32
pkgs/os-specific/darwin/duti/default.nix+30 pkgs/top-level/all-packages.nix+2
pkgs/os-specific/darwin/duti/default.nixnew file+30
@@ -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+}
pkgs/top-level/all-packages.nix+2
@@ -19401,4 +19401,6 @@ with pkgs;
1940119401
1940219402 macOSSierraShared = callPackage ../test/macos-sierra-shared {};
1940319403 };
19404+
19405+ duti = callPackage ../os-specific/darwin/duti {};
1940419406}