Skip to content

Commit cdc518b

Browse files
authored
Merge sublime-merge: set meta.mainProgram (#358726)
2 parents e7447b7 + ea8ced0 commit cdc518b

File tree

1 file changed

+6
-3
lines changed
  • pkgs/applications/version-management/sublime-merge

1 file changed

+6
-3
lines changed

pkgs/applications/version-management/sublime-merge/common.nix

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ stdenv.mkDerivation (rec {
152152

153153
installPhase =
154154
''
155+
runHook preInstall
155156
mkdir -p "$out/bin"
156157
makeWrapper "''$${primaryBinary}/${primaryBinary}" "$out/bin/${primaryBinary}"
157158
''
@@ -171,6 +172,7 @@ stdenv.mkDerivation (rec {
171172
mkdir -p "$out/share/icons/hicolor/$size/apps"
172173
ln -s ''$${primaryBinary}/Icon/$size/* $out/share/icons/hicolor/$size/apps
173174
done
175+
runHook postInstall
174176
'';
175177

176178
passthru = {
@@ -205,12 +207,13 @@ stdenv.mkDerivation (rec {
205207
];
206208
};
207209

208-
meta = with lib; {
210+
meta = {
209211
description = "Git client from the makers of Sublime Text";
210212
homepage = "https://www.sublimemerge.com";
211-
maintainers = with maintainers; [ zookatron ];
213+
mainProgram = "sublime_merge";
214+
maintainers = with lib.maintainers; [ zookatron ];
212215
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
213-
license = licenses.unfree;
216+
license = lib.licenses.unfree;
214217
platforms = [
215218
"aarch64-linux"
216219
"x86_64-linux"

0 commit comments

Comments
 (0)