nixos

NixOS server files. Mirror from https://git.nordgedanken.dev/kubernetes/nixos
git clone git://archive.git.mtrnord.blog/MTRNord/nixos.git
Log | Files | Refs | README

commit 8df155ca65911f172b128835e1b9db51b02bfbd7
parent a0a33676df94ad6a1a59e62d19334b40242d9cca
Author: MTRNord <mtrnord1@gmail.com>
Date:   Sat, 30 Sep 2023 20:33:50 +0200

Fix stdenv

Diffstat:
Mnixos/common/lib/github-runner.nix | 12++++++------
Mnixos/worker-1/configuration.nix | 2+-
2 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/nixos/common/lib/github-runner.nix b/nixos/common/lib/github-runner.nix @@ -1,4 +1,4 @@ -{ lib, pkgs, config, stdenv, ... }: +{ lib, pkgs, config, ... }: { users.users."node-yara-rs-runner" = { isNormalUser = false; }; services.github-runners = { @@ -31,12 +31,12 @@ YARA_LIBRARY_PATH = "${pkgs.yara}/lib"; YARA_INCLUDE_DIR = "${pkgs.yara}/include"; LIBCLANG_PATH = "${pkgs.llvmPackages.libclang}/lib"; - BINDGEN_EXTRA_CLANG_ARGS = "$(< ${stdenv.cc}/nix-support/libc-crt1-cflags) \ - $(< ${stdenv.cc}/nix-support/libc-cflags) \ - $(< ${stdenv.cc}/nix-support/cc-cflags) \ + BINDGEN_EXTRA_CLANG_ARGS = "$(< ${pkgs.stdenv.cc}/nix-support/libc-crt1-cflags) \ + $(< ${pkgs.stdenv.cc}/nix-support/libc-cflags) \ + $(< ${pkgs.pkgs.stdenv.cc}/nix-support/cc-cflags) \ $(< ${stdenv.cc}/nix-support/libcxx-cxxflags) \ - ${lib.optionalString stdenv.cc.isClang "-idirafter ${stdenv.cc.cc}/lib/clang/${lib.getVersion stdenv.cc.cc}/include"} \ - ${lib.optionalString stdenv.cc.isGNU "-isystem ${stdenv.cc.cc}/include/c++/${lib.getVersion stdenv.cc.cc} -isystem ${stdenv.cc.cc}/include/c++/${lib.getVersion stdenv.cc.cc}/${stdenv.hostPlatform.config} -idirafter ${stdenv.cc.cc}/lib/gcc/${stdenv.hostPlatform.config}/${lib.getVersion stdenv.cc.cc}/include"} \ + ${lib.optionalString pkgs.stdenv.cc.isClang "-idirafter ${pkgs.stdenv.cc.cc}/lib/clang/${lib.getVersion pkgs.stdenv.cc.cc}/include"} \ + ${lib.optionalString pkgs.stdenv.cc.isGNU "-isystem ${pkgs.stdenv.cc.cc}/include/c++/${lib.getVersion pkgs.stdenv.cc.cc} -isystem ${pkgs.stdenv.cc.cc}/include/c++/${lib.getVersion pkgs.stdenv.cc.cc}/${pkgs.stdenv.hostPlatform.config} -idirafter ${pkgs.stdenv.cc.cc}/lib/gcc/${pkgs.stdenv.hostPlatform.config}/${lib.getVersion pkgs.stdenv.cc.cc}/include"} \ "; }; }; diff --git a/nixos/worker-1/configuration.nix b/nixos/worker-1/configuration.nix @@ -1,7 +1,7 @@ # This is your system's configuration file. # Use this to configure your system environment (it replaces /etc/nixos/configuration.nix) -{ inputs, outputs, lib, config, pkgs, stdenv, ... }: { +{ inputs, outputs, lib, config, pkgs, ... }: { # You can import other NixOS modules here imports = [ # If you want to use modules your own flake exports (from modules/nixos):