18 lines
348 B
Nix
18 lines
348 B
Nix
{ 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 ]}
|
|
'';
|
|
}
|