mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-28 08:33:54 +00:00
3270aa896b
as it is the official name since 2016 https://en.wikipedia.org/wiki/Macintosh_operating_systems#Desktop exception are parts refering to older versions of macOS like "GUI support for Mac OS X 10.6 - 10.12. Note that Emacs 23 and later [...]"
32 lines
852 B
Nix
32 lines
852 B
Nix
{ stdenv, lib, fetchFromGitHub }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "gtk-mac-bundler-${version}";
|
|
version = "0.7.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "GNOME";
|
|
repo = "gtk-mac-bundler";
|
|
rev = "bundler-${version}";
|
|
sha256 = "1kyyq2hc217i5vhbfff0ldgv0r3aziwryd1xlck5cw3s6hgskbza";
|
|
};
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/bin
|
|
substitute gtk-mac-bundler.in $out/bin/gtk-mac-bundler \
|
|
--subst-var-by PATH $out/share
|
|
chmod a+x $out/bin/gtk-mac-bundler
|
|
|
|
mkdir -p $out/share
|
|
cp -r bundler $out/share
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "a helper script that creates application bundles form GTK+ executables for macOS";
|
|
maintainers = [ maintainers.matthewbauer ];
|
|
platforms = platforms.darwin;
|
|
homepage = https://wiki.gnome.org/Projects/GTK+/OSX/Bundling;
|
|
license = licenses.gpl2;
|
|
};
|
|
}
|