Created
October 22, 2017 18:06
-
-
Save Mic92/d3b539837435883fe9a5cef67b54b1b0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#with import <nixpkgs> {}; | |
#stdenv.mkDerivation { | |
# name = "env"; | |
# SHELL="${bashInteractive}/bin/bash"; | |
# buildInputs = [ | |
# ninja | |
# meson | |
# bashInteractive | |
# libtool | |
# automake | |
# autoconf | |
# autoreconfHook | |
# stdenv | |
# pkgconfig | |
# intltool | |
# gperf | |
# libcap | |
# kmod | |
# zlib | |
# xz | |
# pam | |
# acl | |
# cryptsetup | |
# libuuid | |
# m4 | |
# libffi | |
# glib | |
# kbd | |
# libxslt | |
# coreutils | |
# libgcrypt | |
# libgpgerror | |
# libapparmor | |
# audit | |
# lz4 | |
# kexectools | |
# libmicrohttpd | |
# stdenv.cc.libc.linuxHeaders | |
# libseccomp | |
# iptables | |
# gnu-efi | |
# gettext | |
# docbook_xsl | |
# docbook_xml_dtd_42 | |
# utillinux | |
# (lib.hiPrio docbook_xml_dtd_45) | |
# | |
# ## optional | |
# valgrind.out | |
# #cgdb | |
# #wireguard | |
# ]; | |
# | |
# hardeningDisable = [ "all" ]; | |
#} | |
with import <nixpkgs> {}; | |
systemd.overrideDerivation (old: { | |
NIX_CFLAGS_COMPILE = "-fsanitize=address ${old . CFLAGS or ""}"; | |
buildInputs = [ | |
cryptsetup | |
] ++ old.buildInputs; | |
nativeBuildInputs = [ | |
gcc7 | |
meson | |
ninja | |
m4 | |
] ++ old.nativeBuildInputs; | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment