Skip to content

Instantly share code, notes, and snippets.

View SCOTT-HAMILTON's full-sized avatar

SCOTT-HAMILTON SCOTT-HAMILTON

  • France
View GitHub Profile
{
customPython = python38.buildEnv.override {
extraLibs = [
xcffib
];
};
}
diff --color -ur a/Makefile b/Makefile
--- a/Makefile 2021-05-16 13:55:08.033586154 +0200
+++ b/Makefile 2021-05-16 13:57:55.076889461 +0200
@@ -12,7 +12,10 @@
#LDFLAGS+=-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now
# arch & debian hardening workaround
-LDFLAGS+=-Wl,--no-as-needed
+KERNEL = $(shell uname -s)
+ifeq ($(KERNEL),Linux)
{ pkgs ? import <nixpkgs-unstable> {} }:
let
buildInstrumentedAdapter = stdenv:
let
flags = "-fprofile-instr-generate -fcoverage-mapping";
in
stdenv //
{ mkDerivation = args: stdenv.mkDerivation (args // {
NIX_CFLAGS_COMPILE = toString (args.NIX_CFLAGS_COMPILE or "") + " " + flags;
NIX_LDFLAGS_COMPILE = toString (args.NIX_CFLAGS_COMPILE or "") + " " + flags;
lib.makeExtensible (self:
{
# ... Stuff
} //
{
# ... More Stuff
}).extend (self: super: {
# Even more stuff
})
diff --git a/pkgs/development/tools/build-managers/gnumake/default.nix b/pkgs/development/tools/build-managers/gnumake/default.nix
index fb9dab54049..8d7c6b98843 100644
--- a/pkgs/development/tools/build-managers/gnumake/default.nix
+++ b/pkgs/development/tools/build-managers/gnumake/default.nix
@@ -1,4 +1,4 @@
-{ lib, stdenv, fetchurl, guileSupport ? false, pkg-config ? null , guile ? null }:
+{ lib, stdenv, fetchurl, perl, guileSupport ? false, pkg-config ? null , guile ? null }:
assert guileSupport -> ( pkg-config != null && guile != null );
Failed to instantiate SLF4J LoggerFactory
Reported exception:
java.lang.NoClassDefFoundError: org/xml/sax/InputSource
at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:108)
at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:53)
at ch.qos.logback.classic.util.ContextInitializer.configureByResource(ContextInitializer.java:75)
at ch.qos.logback.classic.util.ContextInitializer.autoConfig(ContextInitializer.java:150)
at org.slf4j.impl.StaticLoggerBinder.init(StaticLoggerBinder.java:84)
at org.slf4j.impl.StaticLoggerBinder.<clinit>(StaticLoggerBinder.java:55)
at org.slf4j.LoggerFactory.bind(LoggerFactory.java:150)
failures:
---- grid::storage::tests::indexing_above_inner_len stdout ----
note: test did not panic as expected
failures:
grid::storage::tests::indexing_above_inner_len
test result: FAILED. 111 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out
{...} @ args:
let
pkgs = import <nixpkgs>{};
lib = pkgs.lib;
in
lib.traceValFn (x: args) pkgs.hello
networking =
let
hostIp = "192.168.0.1";
in {
bridges = {
br0 = {
interfaces = [];
};
};
interfaces = {
import ./make-test-python.nix ({pkgs, ...}:
let
hostIp = "192.168.0.1";
corednsSubnet = "192.168.0.100/24";
testSubnet = "192.168.0.200/24";
in
{
name = "test";
meta = with pkgs.lib.maintainers; {