about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthew Bauer <mjbauer95@gmail.com>2017-07-13 22:18:59 -0700
committerMatthew Bauer <mjbauer95@gmail.com>2017-09-13 16:33:54 -0500
commit9111b533257d54053fe2f7c5e7970c8aac3c67e3 (patch)
tree543a9473aef53fbe036c998f6663505a59453612
parent62711f426536c2a1e2b80947fa352a0f8a5a127f (diff)
downloadnixlib-9111b533257d54053fe2f7c5e7970c8aac3c67e3.tar
nixlib-9111b533257d54053fe2f7c5e7970c8aac3c67e3.tar.gz
nixlib-9111b533257d54053fe2f7c5e7970c8aac3c67e3.tar.bz2
nixlib-9111b533257d54053fe2f7c5e7970c8aac3c67e3.tar.lz
nixlib-9111b533257d54053fe2f7c5e7970c8aac3c67e3.tar.xz
nixlib-9111b533257d54053fe2f7c5e7970c8aac3c67e3.tar.zst
nixlib-9111b533257d54053fe2f7c5e7970c8aac3c67e3.zip
duti: init at 1.5.4pre
I would init at 1.5.4, but sadly it doesn’t work on OS X 10.11+.
-rw-r--r--pkgs/os-specific/darwin/duti/default.nix30
-rw-r--r--pkgs/top-level/all-packages.nix2
2 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/os-specific/darwin/duti/default.nix b/pkgs/os-specific/darwin/duti/default.nix
new file mode 100644
index 000000000000..10eac5d47191
--- /dev/null
+++ b/pkgs/os-specific/darwin/duti/default.nix
@@ -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];
+  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/";
+  };
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index 7d4b467a3e3e..e86283244777 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -19401,4 +19401,6 @@ with pkgs;
 
     macOSSierraShared = callPackage ../test/macos-sierra-shared {};
   };
+
+  duti = callPackage ../os-specific/darwin/duti {};
 }