Created
October 13, 2017 10:55
-
-
Save peel/1f8d57bf63d48db24ccef60964ec7a5c to your computer and use it in GitHub Desktop.
darwin.nix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ stdenv, lib, fetchurl, undmg }: | |
let | |
appName = "Firefox"; | |
in | |
stdenv.mkDerivation rec { | |
name = "${lib.toLower appName}-darwin-${version}"; | |
version = "57.0b7"; | |
dlName = name; | |
src = fetchurl { | |
url = "https://archive.mozilla.org/pub/firefox/releases/57.0b7/mac/en-US/Firefox%2057.0b7.dmg"; | |
sha256 = "0g2n46j3xai2xxay4h3mkbjjy5rhqhh5l6jg59h61bvbzmnvxgah"; | |
name = "${ dlName }.dmg"; | |
}; | |
buildInputs = [ undmg ]; | |
installPhase = '' | |
mkdir -p "$out/Applications/${appName}.app" | |
cp -R . "$out/Applications/${appName}.app" | |
''; | |
meta = with stdenv.lib; { | |
description = "Mozilla Firefox, free web browser (binary package)"; | |
homepage = http://www.mozilla.org/firefox/; | |
license = { | |
free = false; | |
url = http://www.mozilla.org/en-US/foundation/trademarks/policy/; | |
}; | |
platforms = platforms.darwin; | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment