packages: don't include self and inputs in perSystem

This commit is contained in:
Max Headroom 2023-01-08 19:07:20 +01:00
parent 43bc27c281
commit af019b1079
10 changed files with 291 additions and 279 deletions

View file

@ -1,11 +1,11 @@
{ pkgs, ... }:
{
imports = [
./options.nix
./drv-parts
];
perSystem = { pkgs, ... }: {
imports = [
./options.nix
];
builders = rec {
fetchAsset = pkgs.callPackage ./fetch-asset { };
@ -14,4 +14,5 @@
inherit fetchAsset;
};
};
};
}

View file

@ -1,6 +1,6 @@
{ config, inputs, ... }:
{ inputs, ... }:
{
perSystem = { config, ... }: {
imports = [
./backends
./dependency-sets
@ -8,4 +8,5 @@
_module.args = {
drv-backends = inputs.drv-parts.drv-backends // config.drv-backends;
};
};
}

View file

@ -1,5 +1,7 @@
{ filters, pkgs, self, self', ... }:
{ self, ... }:
{
perSystem = { filters, pkgs, self', ... }: {
checks = filters.doFilter filters.checks {
keycloak = pkgs.callPackage ./keycloak-custom-jre.nix {
jre = self'.packages.jre17_standard;
@ -12,4 +14,5 @@
inherit (self'.packages) tempo;
};
};
};
}

View file

@ -1,4 +1,7 @@
{ lib, config, inputs', system, ... }:
{ lib, ... }:
{
perSystem = { config, inputs', system, ... }:
with lib;
let
inherit (inputs'.devshell.legacyPackages) mkShell;
@ -63,5 +66,5 @@ in {
});
};
config.devShells = lib.mkIf (system == "x86_64-linux") (mapAttrs (_: mkProjectShell) config.projectShells);
};
}

View file

@ -1,6 +1,7 @@
{ inputs, lib, pkgs, ... }:
{ lib, inputs, ... }:
{
perSystem = { pkgs, ... }: {
projectShells.hyprspace = {
tools = [
pkgs.go_1_18
@ -37,4 +38,5 @@
platforms = platforms.linux ++ platforms.darwin;
};
};
};
}

View file

@ -1,6 +1,6 @@
{ inputs, lib, pkgs, ... }:
{ inputs, ... }:
{
perSystem = { lib, pkgs, ... }: {
projectShells.ipfs-cluster = {
tools = [
pkgs.go_1_19
@ -55,4 +55,5 @@
maintainers = with maintainers; [ Luflosi jglukasik ];
};
};
};
}

View file

@ -1,6 +1,17 @@
{ inputs, self, ... }:
{
imports = [
./checks
./modules/devshell.nix
./build-support
./networking/hyprspace/project.nix
./networking/ipfs-cluster/project.nix
./servers/reflex-cache/project.nix
./websites/landing/project.nix
./websites/stop-using-nix-env/project.nix
];
perSystem = { filters, pkgs, self', ... }:
let
inherit (self'.packages) nix-super;
@ -16,19 +27,6 @@
};
in
{
_module.args = { inherit inputs self; };
imports = [
./checks
./modules/devshell.nix
./build-support
./networking/hyprspace/project.nix
./networking/ipfs-cluster/project.nix
./servers/reflex-cache/project.nix
./websites/landing/project.nix
./websites/stop-using-nix-env/project.nix
];
packages = filters.doFilter filters.packages rec {
cinny = pkgs.callPackage ./web-apps/cinny { inherit pins; };

View file

@ -1,6 +1,7 @@
{ config, drv-backends, inputs, lib, pkgs, ... }:
{ inputs, ... }:
let
{
perSystem = { config, drv-backends, lib, pkgs, ... }: let
deps = with config.dependencySets.python3Packages; [
poetry-core
requests-unixsocket
@ -35,4 +36,5 @@ in
];
};
};
};
}

View file

@ -1,5 +1,5 @@
{ builders, lib, pkgs, self', ... }:
let
{
perSystem = { builders, lib, pkgs, self', ... }: let
configFile = pkgs.writeText "hugo-config.json" (builtins.toJSON {
title = "Private Void | Zero-maintenance perfection";
baseURL = "https://www.privatevoid.net/";
@ -51,4 +51,5 @@ in
};
};
in site;
};
}

View file

@ -1,6 +1,5 @@
{ pkgs, ... }:
{
perSystem = { pkgs, ... }: {
packages.stop-using-nix-env = let
site = with pkgs; stdenvNoCC.mkDerivation rec {
pname = "stop-using-nix-env";
@ -16,4 +15,5 @@
};
};
in site;
};
}