1 { lib, stdenv, fetchFromGitHub, Foundation }:
3 stdenv.mkDerivation rec {
4 pname = "defaultbrowser";
5 version = "unstable-2020-07-23";
7 src = fetchFromGitHub {
10 rev = "d2860c00dd7fbb5d615232cc819d7d492a6a6ddb";
11 sha256 = "sha256-SelUQXoKtShcDjq8uKg3wM0kG2opREa2DGQCDd6IsOQ=";
14 makeFlags = [ "CC=cc" "PREFIX=$(out)" ];
16 buildInputs = [ Foundation ];
19 mainProgram = "defaultbrowser";
20 description = "Command line tool for getting and setting a default browser (HTTP handler) in Mac OS X";
21 homepage = "https://github.com/kerma/defaultbrowser";
22 platforms = platforms.darwin;
24 license = licenses.mit;