2020-05-29 01:19:21 +00:00
|
|
|
{ pkgs ? import (import ./nix/sources.nix).nixpkgs { } }:
|
2020-02-07 22:49:04 +00:00
|
|
|
with pkgs;
|
|
|
|
|
|
|
|
assert lib.versionAtLeast go.version "1.13";
|
|
|
|
|
|
|
|
buildGoPackage rec {
|
|
|
|
name = "christinewebsite-HEAD";
|
|
|
|
version = "latest";
|
|
|
|
goPackagePath = "christine.website";
|
|
|
|
src = ./.;
|
2020-02-29 21:05:00 +00:00
|
|
|
goDeps = ./nix/deps.nix;
|
2020-02-07 22:49:04 +00:00
|
|
|
allowGoReference = false;
|
2020-02-13 22:45:21 +00:00
|
|
|
|
2020-02-10 12:09:52 +00:00
|
|
|
preBuild = ''
|
|
|
|
export CGO_ENABLED=0
|
|
|
|
buildFlagsArray+=(-pkgdir "$TMPDIR")
|
|
|
|
'';
|
2020-02-07 22:49:04 +00:00
|
|
|
|
|
|
|
postInstall = ''
|
2020-05-29 01:19:21 +00:00
|
|
|
cp -rf $src/blog $out/blog
|
|
|
|
cp -rf $src/css $out/css
|
|
|
|
cp -rf $src/gallery $out/gallery
|
|
|
|
cp -rf $src/signalboost.dhall $out/signalboost.dhall
|
|
|
|
cp -rf $src/static $out/static
|
|
|
|
cp -rf $src/talks $out/talks
|
|
|
|
cp -rf $src/templates $out/templates
|
2020-02-07 22:49:04 +00:00
|
|
|
'';
|
|
|
|
}
|