Skip to content

Commit

Permalink
gogland: fix debugger
Browse files Browse the repository at this point in the history
(cherry picked from commit 7b3a61a)
  • Loading branch information
Lassulus authored and Mic92 committed Oct 23, 2017
1 parent 36a5e18 commit 6d0fbcf
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion pkgs/applications/editors/jetbrains/default.nix
Expand Up @@ -78,7 +78,7 @@ let
});

buildGogland = { name, version, src, license, description, wmClass, update-channel }:
(mkJetBrainsProduct {
lib.overrideDerivation (mkJetBrainsProduct {
inherit name version src wmClass jdk;
product = "Gogland";
meta = with stdenv.lib; {
Expand All @@ -93,6 +93,13 @@ let
maintainers = [ maintainers.miltador ];
platforms = platforms.linux;
};
}) (attrs: {
postFixup = (attrs.postFixup or "") + ''
interp="$(cat $NIX_CC/nix-support/dynamic-linker)"
patchelf --set-interpreter $interp $out/gogland*/plugins/intellij-go-plugin/lib/dlv/linux/dlv
chmod +x $out/gogland*/plugins/intellij-go-plugin/lib/dlv/linux/dlv
'';
});

buildIdea = { name, version, src, license, description, wmClass, update-channel }:
Expand Down

0 comments on commit 6d0fbcf

Please sign in to comment.