From 21143cc000c701259e4cb531d6a6feee578a883f Mon Sep 17 00:00:00 2001 From: Matthew Bauer Date: Tue, 22 Nov 2016 23:09:45 -0600 Subject: [PATCH] gtk-mac-bundler: init at 0.7.4 --- .../tools/gtk-mac-bundler/default.nix | 31 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 33 insertions(+) create mode 100644 pkgs/development/tools/gtk-mac-bundler/default.nix diff --git a/pkgs/development/tools/gtk-mac-bundler/default.nix b/pkgs/development/tools/gtk-mac-bundler/default.nix new file mode 100644 index 000000000000..6a16a0372c1e --- /dev/null +++ b/pkgs/development/tools/gtk-mac-bundler/default.nix @@ -0,0 +1,31 @@ +{ 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 Mac OS X"; + maintainers = [ maintainers.matthewbauer ]; + platforms = platforms.darwin; + homepage = https://wiki.gnome.org/Projects/GTK+/OSX/Bundling; + license = licenses.gpl2; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 3610b965d180..ec191af0fb93 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -7539,6 +7539,8 @@ in gtk = gtk2; }; + gtk-mac-bundler = callPackage ../development/tools/gtk-mac-bundler {}; + gtkspell2 = callPackage ../development/libraries/gtkspell { }; gtkspell3 = callPackage ../development/libraries/gtkspell/3.nix { };