project-wide: nixdirfmt

This commit is contained in:
kat witch 2021-04-14 01:28:41 +01:00
parent af5514301a
commit 22668a402a
No known key found for this signature in database
GPG key ID: 1B477797DCA5EC72
7 changed files with 45 additions and 48 deletions

View file

@ -1,14 +1,14 @@
{ stdenv, makeWrapper, perl, perlPackages }:
stdenv.mkDerivation rec {
stdenv.mkDerivation rec {
pname = "kat-tw-export";
version = "0.0.1";
src = ./tw.pl;
src = ./tw.pl;
buildInputs = [ perl perlPackages.JSON ];
nativeBuildInputs = [ makeWrapper ];
unpackPhase = "true";
installPhase = ''
install -Dm0755 $src $out/bin/kat-tw-export
wrapProgram $out/bin/kat-tw-export --set PERL5LIB $PERL5LIB
'';
'';
}