nixpkgs/pkgs/by-name/se/sequelpro/package.nix
aleksana 571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
We are migrating packages that meet below requirements:

1. using `callPackage`
2. called path is a directory
3. overriding set is empty (`{ }`)
4. not containing path expressions other than relative path (to
makenixpkgs-vet happy)
5. not referenced by nix files outside of the directory, other
than`pkgs/top-level/all-packages.nix`
6. not referencing nix files outside of the directory
7. not referencing `default.nix` (since it's changed to `package.nix`)
8. `outPath` doesn't change after migration

The tool is here: https://github.com/Aleksanaa/by-name-migrate.
2024-11-09 20:04:51 +08:00

26 lines
714 B
Nix

{ lib, stdenv, fetchurl, undmg }:
stdenv.mkDerivation {
pname = "sequel-pro";
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 macOS";
homepage = "http://www.sequelpro.com/";
license = lib.licenses.mit;
platforms = lib.platforms.darwin;
};
}