Merge pull request #259741 from doronbehar/pkg/perl-debug-adapter
perl-debug-adapter: init at 1.0.5
This commit is contained in:
commit
6987358772
1 changed files with 45 additions and 0 deletions
45
pkgs/by-name/pe/perl-debug-adapter/package.nix
Normal file
45
pkgs/by-name/pe/perl-debug-adapter/package.nix
Normal file
|
@ -0,0 +1,45 @@
|
|||
{ lib
|
||||
, buildNpmPackage
|
||||
, fetchFromGitHub
|
||||
, fetchpatch
|
||||
, makeWrapper
|
||||
, perl
|
||||
# Needed if you want to use it for a perl script with dependencies.
|
||||
, extraPerlPackages ? []
|
||||
}:
|
||||
|
||||
let
|
||||
perlInterpreter = perl.withPackages(ps: [
|
||||
ps.PadWalker
|
||||
] ++ extraPerlPackages);
|
||||
in buildNpmPackage rec {
|
||||
pname = "perl-debug-adapter";
|
||||
version = "1.0.6";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Nihilus118";
|
||||
repo = "perl-debug-adapter";
|
||||
rev = version;
|
||||
hash = "sha256-IXXKhk4rzsWSPA0RT0L3CZuKlgTWtweZ4dQtruTigRs=";
|
||||
};
|
||||
|
||||
npmDepsHash = "sha256-iw7+YC4qkrTVEJuZ9lnjNlUopTCp+fMNoIjFLutmrMw=";
|
||||
|
||||
npmBuildScript = "compile";
|
||||
|
||||
makeWrapperArgs = [
|
||||
"--prefix" "PATH" ":" (lib.makeBinPath [ perlInterpreter ])
|
||||
];
|
||||
passthru = {
|
||||
inherit perlInterpreter;
|
||||
};
|
||||
|
||||
meta = {
|
||||
description = "Debug adapter, invokes perl -d and handles communication with VS Code or other editors";
|
||||
homepage = "https://github.com/Nihilus118/perl-debug-adapter";
|
||||
changelog = "https://github.com/Nihilus118/perl-debug-adapter/blob/${version}/CHANGELOG.md";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ doronbehar ];
|
||||
mainProgram = "perl-debug-adapter";
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue