Skip to content

Commit

Permalink
powershell-editor-services: init at 4.1.0 (NixOS#365312)
Browse files Browse the repository at this point in the history
  • Loading branch information
FliegendeWurst authored Jan 15, 2025
2 parents 553c3a3 + e8284eb commit 15e9e9a
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
6 changes: 6 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -20882,6 +20882,12 @@
githubId = 16765155;
name = "Shardul Baral";
};
sharpchen = {
github = "sharpchen";
githubId = 77432836;
name = "sharpchen";
email = "[email protected]";
};
sharzy = {
email = "[email protected]";
github = "SharzyL";
Expand Down
38 changes: 38 additions & 0 deletions pkgs/by-name/po/powershell-editor-services/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
stdenvNoCC,
fetchzip,
lib,
powershell,
runtimeShell,
}:
stdenvNoCC.mkDerivation rec {
pname = "powershell-editor-services";
version = "4.1.0";

src = fetchzip {
url = "https://github.com/PowerShell/PowerShellEditorServices/releases/download/v${version}/PowerShellEditorServices.zip";
hash = "sha256-B6RF4RoJB+C5i6puZhfy6FZzyZ9eMo81dd0XsaIEK6Q=";
stripRoot = false;
};

installPhase = ''
mkdir -p $out/lib/powershell-editor-services/ $out/bin
mv * $out/lib/powershell-editor-services/
cat > $out/bin/powershell-editor-services <<EOF
#! ${runtimeShell} -e
exec ${lib.getExe' powershell "pwsh"} -noprofile -nologo -c "& '$out/lib/powershell-editor-services/PowerShellEditorServices/Start-EditorServices.ps1' \$@"
EOF
chmod +x $out/bin/powershell-editor-services
'';

meta = with lib; {
description = "Common platform for PowerShell development support in any editor or application";
homepage = "https://github.com/PowerShell/PowerShellEditorServices";
changelog = "https://github.com/PowerShell/PowerShellEditorServices/releases/tag/v${version}";
platforms = platforms.unix;
license = licenses.mit;
maintainers = with maintainers; [ sharpchen ];
mainProgram = "powershell-editor-services";
sourceProvenance = with sourceTypes; [ binaryBytecode ];
};
}

0 comments on commit 15e9e9a

Please sign in to comment.