Install my custom script.

This commit is contained in:
CronyAkatsuki 2024-03-23 20:13:16 +01:00
parent 684737cec8
commit 821fca68d9
2 changed files with 18 additions and 0 deletions

View File

@ -67,6 +67,7 @@
pandoc # I wish I didn't have to use it pandoc # I wish I didn't have to use it
(nerdfonts.override { fonts = [ "CascadiaCode" ]; }) # Best font (nerdfonts.override { fonts = [ "CascadiaCode" ]; }) # Best font
(retroarch.override { cores = with libretro; [ snes9x mgba ]; }) (retroarch.override { cores = with libretro; [ snes9x mgba ]; })
(callPackage ./modules/scripts.nix { inherit pkgs; }) # My scripts
]; ];
# Environmental variables I can't live without # Environmental variables I can't live without

View File

@ -0,0 +1,17 @@
{ pkgs, ... }:
with pkgs;
stdenv.mkDerivation {
pname = "blog";
version = "1";
src = ./scripts/blog;
nativeBuildInputs = [ makeWrapper ];
installPhase = ''
mkdir -p $out/bin
mv blog $out/bin/blog
patchShebangs $out/bin/blog
wrapProgram $out/bin/blog \
--prefix PATH : ${lib.makeBinPath [ hugo rsync git ]}
'';
}