Add pre-built site
This commit is contained in:
parent
2e2f7b9be1
commit
809599d830
18
release.nix
18
release.nix
@ -12,6 +12,21 @@ in
|
||||
let
|
||||
haskellPackages = pkgs.haskellPackages;
|
||||
site = pkgs.callPackage ./default.nix {};
|
||||
website = with pkgs; stdenv.mkDerivation {
|
||||
pname = "rauhala.info";
|
||||
version = "0.1.0";
|
||||
src = lib.cleanSource ./.;
|
||||
LANG = "en_US.UTF-8";
|
||||
LOCALE_ARCHIVE = lib.optionalString stdenv.isLinux "${glibcLocales}/lib/locale/locale-archive";
|
||||
buildPhase = ''
|
||||
${site}/bin/site clean
|
||||
${site}/bin/site build
|
||||
'';
|
||||
installPhase = ''
|
||||
mkdir -p $out/share/
|
||||
mv _site $out/share/html
|
||||
'';
|
||||
};
|
||||
shell = pkgs.buildEnv {
|
||||
name = "site-shell";
|
||||
paths = [];
|
||||
@ -25,6 +40,5 @@ let
|
||||
in
|
||||
|
||||
{
|
||||
site = site;
|
||||
shell = shell;
|
||||
inherit site shell website;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user