templates/perl: add simple perl script
This commit is contained in:
parent
e758a85526
commit
470e3252bb
@ -17,7 +17,7 @@
|
|||||||
pname = "thing";
|
pname = "thing";
|
||||||
version = "v0.0.0";
|
version = "v0.0.0";
|
||||||
src = ./.;
|
src = ./.;
|
||||||
buildInputs = with pkgs.perlPackages; [ perl PerlTidy ];
|
buildInputs = with pkgs.perlPackages; [ PerlTidy ];
|
||||||
nativeBuildInputs = with pkgs.perlPackages; [ perl ];
|
nativeBuildInputs = with pkgs.perlPackages; [ perl ];
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
@ -37,7 +37,7 @@
|
|||||||
echo "Perl `${pkgs.perl}/bin/perl --version`"
|
echo "Perl `${pkgs.perl}/bin/perl --version`"
|
||||||
'';
|
'';
|
||||||
buildInputs = with pkgs.perlPackages; [ PerlTidy ];
|
buildInputs = with pkgs.perlPackages; [ PerlTidy ];
|
||||||
nativeBuildInputs = with pkgs; [ perl ];
|
nativeBuildInputs = with pkgs.perlPackages; [ perl ];
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
8
templates/perl/thing.pl
Normal file
8
templates/perl/thing.pl
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
#!/usr/bin/env perl
|
||||||
|
|
||||||
|
use strict;
|
||||||
|
use warnings;
|
||||||
|
|
||||||
|
use 5.10.0;
|
||||||
|
|
||||||
|
say 'hi thing!';
|
Loading…
Reference in New Issue
Block a user