X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=nixops%2Fmodules%2Fwebsites%2Ftools%2Fmastodon%2Fmastodon.nix;h=67d4d48b01230351ce5b21f599b4f5c0789b44dc;hb=508943b4171796a3b9670c1ee9fe6881734e9990;hp=3ee355227770a017c8d86a5f7be29aed7a9e6f22;hpb=32c84ff89c2b8931f58cea63961a178a9b1d0efe;p=perso%2FImmae%2FConfig%2FNix.git diff --git a/nixops/modules/websites/tools/mastodon/mastodon.nix b/nixops/modules/websites/tools/mastodon/mastodon.nix index 3ee3552..67d4d48 100644 --- a/nixops/modules/websites/tools/mastodon/mastodon.nix +++ b/nixops/modules/websites/tools/mastodon/mastodon.nix @@ -44,6 +44,9 @@ let yarnLock = "${info.src}/yarn.lock"; yarnNix = ./yarn-packages.nix; pkgConfig = { + all = { + buildInputs = [ yarn2nixPackage.src ]; + }; uws = { postInstall = '' npx node-gyp rebuild > build_log.txt 2>&1 || true @@ -106,14 +109,14 @@ let ''; }; - # FIXME: build machine will contain some passwords in the nix store railsRoot = stdenv.mkDerivation { name = "mastodon_immae"; inherit mastodon; builder = writeText "build_mastodon_immae" '' source $stdenv/setup set -a - ${keys.mastodon.text} + SECRET_KEY_BASE=Dummy + OTP_SECRET=Dummy set +a cp -a $mastodon $out cd $out