diff options
Diffstat (limited to '')
-rw-r--r-- | default.nix | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/default.nix b/default.nix index c25fdbc..8d29ca6 100644 --- a/default.nix +++ b/default.nix @@ -21,7 +21,7 @@ let }; }); - projectBuildInputs = with pkgs; [ + buildInputs = with pkgs; [ jekyllEnv pkgs-next.mdpo mktorrent-newer @@ -38,20 +38,18 @@ let ]; in rec { site = pkgs.stdenv.mkDerivation { - inherit src; + inherit src buildInputs; name = "website-site"; phases = [ "unpackPhase" "buildPhase" ]; - buildInputs = projectBuildInputs; buildPhase = '' patchShebangs . jekyll build -d $out --trace ''; }; test = pkgs.stdenv.mkDerivation { - inherit src; + inherit src buildInputs; name = "website-test"; phases = [ "unpackPhase" "buildPhase" ]; - buildInputs = projectBuildInputs; buildPhase = '' patchShebangs . ./tests.sh @@ -59,8 +57,8 @@ in rec { ''; }; shell = pkgs.mkShell { + inherit buildInputs; name = "website-shell"; - buildInputs = projectBuildInputs; shellHook = '' echo 'Starting a live server with:' echo ' jekyll serve --future --livereload --trace' |