Skip to content

Instantly share code, notes, and snippets.

@Mic92
Created October 22, 2017 18:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Mic92/d3b539837435883fe9a5cef67b54b1b0 to your computer and use it in GitHub Desktop.
Save Mic92/d3b539837435883fe9a5cef67b54b1b0 to your computer and use it in GitHub Desktop.
#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