ci: Add workflow to seed cachix (#2615)

Fixes #2609.
This commit is contained in:
Robert
2023-01-16 16:56:48 +01:00
committed by GitHub
parent f353711ed2
commit 5fd6b3956e
5 changed files with 91 additions and 20 deletions
+9 -3
View File
@@ -65,11 +65,17 @@ let
postgrest =
pkgs.haskell.packages."${compiler}".callCabal2nix name src { };
# Function that derives a fully static Haskell package based on
# Functionality that derives a fully static Haskell package based on
# nh2/static-haskell-nix
staticHaskellPackage =
import nix/static-haskell-package.nix { inherit nixpkgs system compiler patches allOverlays; };
# Static executable.
postgrestStatic =
lib.justStaticExecutables (lib.dontCheck (staticHaskellPackage name src).package);
packagesStatic = (staticHaskellPackage name src).survey;
# Options passed to cabal in dev tools and tests
devCabalOptions =
"-f dev --test-show-detail=direct";
@@ -152,8 +158,8 @@ rec {
pkgs.callPackage nix/tools/withTools.nix { inherit devCabalOptions postgresqlVersions postgrest; };
} // pkgs.lib.optionalAttrs pkgs.stdenv.isLinux rec {
# Static executable.
postgrestStatic =
lib.justStaticExecutables (lib.dontCheck (staticHaskellPackage name src));
inherit postgrestStatic;
inherit packagesStatic;
# Docker images and loading script.
docker =