nixpkgs-suyu/pkgs/applications/misc/sequelpro/default.nix

26 lines
738 B
Nix
Raw Normal View History

2016-06-20 19:01:12 +02:00
{ stdenv, fetchurl, undmg }:
stdenv.mkDerivation rec {
name = "sequel-pro-${version}";
version = "1.1.2";
src = fetchurl {
url = "https://github.com/sequelpro/sequelpro/releases/download/release-1.1.2/sequel-pro-1.1.2.dmg";
sha256 = "1il7yc3f0yzxkra27bslnmka5ycxzx0q4m3xz2j9r7iyq5izsd3v";
};
buildInputs = [ undmg ];
installPhase = ''
mkdir -p "$out/Applications/Sequel Pro.app"
cp -R . "$out/Applications/Sequel Pro.app"
chmod +x "$out/Applications/Sequel Pro.app/Contents/MacOS/Sequel Pro"
'';
meta = {
description = "MySQL database management for Mac OS X";
homepage = http://www.sequelpro.com/;
license = stdenv.lib.licenses.mit;
platforms = stdenv.lib.platforms.darwin;
};
}