marleyos/packages/phpstorm-with-node/default.nix

18 lines
463 B
Nix
Raw Normal View History

2025-02-20 02:28:39 +00:00
{
lib,
runCommand,
makeWrapper,
jetbrains,
nodePackages,
}:
runCommand "phpstorm-with-node-${jetbrains.phpstorm.version}"
{
nativeBuildInputs = [makeWrapper];
} ''
mkdir -p $out/{bin,share/applications}
makeWrapper ${jetbrains.phpstorm}/bin/phpstorm $out/bin/phpstorm \
--prefix PATH : ${lib.makeBinPath [nodePackages.nodejs]}
ln -s ${jetbrains.phpstorm}/share/applications/phpstorm.desktop \
$out/share/applications/phpstorm.desktop
''