gogland: fix debugger

This commit is contained in:
lassulus 2017-10-23 14:53:14 +02:00
parent 4ea79d3f36
commit 7b3a61af73

View File

@ -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; {
@ -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 }: