Install my custom script.
This commit is contained in:
parent
684737cec8
commit
821fca68d9
@ -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
|
||||||
|
17
home-manager/modules/scripts.nix
Normal file
17
home-manager/modules/scripts.nix
Normal 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 ]}
|
||||||
|
'';
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user