templates/perl: add simple perl script

This commit is contained in:
Aaron Bieber 2022-09-27 08:22:54 -06:00
parent e758a85526
commit 470e3252bb
No known key found for this signature in database
2 changed files with 10 additions and 2 deletions

View File

@ -17,7 +17,7 @@
pname = "thing";
version = "v0.0.0";
src = ./.;
buildInputs = with pkgs.perlPackages; [ perl PerlTidy ];
buildInputs = with pkgs.perlPackages; [ PerlTidy ];
nativeBuildInputs = with pkgs.perlPackages; [ perl ];
installPhase = ''
@ -37,7 +37,7 @@
echo "Perl `${pkgs.perl}/bin/perl --version`"
'';
buildInputs = with pkgs.perlPackages; [ PerlTidy ];
nativeBuildInputs = with pkgs; [ perl ];
nativeBuildInputs = with pkgs.perlPackages; [ perl ];
};
});
};

8
templates/perl/thing.pl Normal file
View File

@ -0,0 +1,8 @@
#!/usr/bin/env perl
use strict;
use warnings;
use 5.10.0;
say 'hi thing!';