Skip to content

Commit

Permalink
nix direnv/shell
Browse files Browse the repository at this point in the history
  • Loading branch information
Julius de Bruijn committed Sep 12, 2021
1 parent 8bcf3df commit 66186ca
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions .direnv/cache-pre308541.6fc5211eddd
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export NIX_STORE=$'/nix/store';export $'outputs'=$'out';export TERM=$'xterm-256color';export PKG_CONFIG_FOR_TARGET=$'pkg-config';export $'depsTargetTargetPropagated'='';export $'phases'=$'nobuildPhase';export NIX_CC=$'/nix/store/qvv5y4fx4x879rbsbs4g27mypl9wxbb9-gcc-wrapper-10.3.0';export XDG_DATA_DIRS=$'/nix/store/wl5vdx1g9wkjgsjb8z1g9gxp5dwr8dfx-patchelf-0.12/share';export $'shell'=$'/nix/store/can473ld4dc8izcjlm4i5daxsh1yl5d8-bash-4.4-p23/bin/bash';export $'propagatedBuildInputs'='';export CONFIG_SHELL=$'/nix/store/can473ld4dc8izcjlm4i5daxsh1yl5d8-bash-4.4-p23/bin/bash';export TMPDIR=$'/run/user/1000';export LD=$'ld';export $'stdenv'=$'/nix/store/b39yxip6di5gq3q8513hfvmhfwz4yq77-stdenv-linux';export $'depsBuildBuild'='';export $'nobuildPhase'=$'echo\necho "This derivation is not meant to be built, aborting";\necho\nexit 1\n';export NIX_SSL_CERT_FILE=$'/no-cert-file.crt';export $'configureFlags'='';export CXX=$'g++';export SHELL=$'/nix/store/39k586qrghljxiyqvv72ni5fk89vshib-bash-interactive-4.4-p23/bin/bash';export TEMP=$'/run/user/1000';export $'nativeBuildInputs'='';export USER=$'pimeys';export $'NIX_CC_WRAPPER_TARGET_HOST_x86_64_unknown_linux_gnu'=1;export $'builder'=$'/nix/store/can473ld4dc8izcjlm4i5daxsh1yl5d8-bash-4.4-p23/bin/bash';export NIX_LDFLAGS=$'-rpath /nix/store/ml25411jp83p2xby538ri59dnsqs2v6h-nix-shell/lib64 -rpath /nix/store/ml25411jp83p2xby538ri59dnsqs2v6h-nix-shell/lib -L/nix/store/79lh7p2jjwqimzwksnpaclc3zj42zqda-openssl-1.1.1k/lib -L/nix/store/79lh7p2jjwqimzwksnpaclc3zj42zqda-openssl-1.1.1k/lib';export $'buildInputs'=$'/nix/store/4vj64fvzrfgrf7rx4680vrkyi3zjw966-openssl-1.1.1k-dev /nix/store/3d8z7x0p3fzhjkxdfr3cg6vfkfmqadnd-pkg-config-wrapper-0.29.2';export RANLIB=$'ranlib';export AR=$'ar';export LOGNAME=$'pimeys';export $'patches'='';export HOST_PATH=$'/nix/store/vn348ghv842qmrh0zzaghjmk88vny3zq-openssl-1.1.1k-bin/bin:/nix/store/3d8z7x0p3fzhjkxdfr3cg6vfkfmqadnd-pkg-config-wrapper-0.29.2/bin:/nix/store/jj6z78skpdcya84iqbn9cf59sxjy5msv-coreutils-8.32/bin:/nix/store/2nrji9a3q54bnbf6bh2i01pv7hnb4320-findutils-4.8.0/bin:/nix/store/n0s100cc8q4y31cwik65p497m4y1xrlj-diffutils-3.7/bin:/nix/store/pp6q8mh5ilgsf67cciggkqcrrw8z2hip-gnused-4.8/bin:/nix/store/azjjb2azlva4ifsiyazrl8ajck5njfxn-gnugrep-3.6/bin:/nix/store/1838raw4b33pbry9m3c4mwrfigzbkf6r-gawk-5.1.0/bin:/nix/store/87l7j4jcsl6x50nzpii751cdbsa26b0f-gnutar-1.34/bin:/nix/store/zab716kfmd0h8iy49dldm8x1b695p7sk-gzip-1.10/bin:/nix/store/yr4rc4w2fcf96grwliqr1kgypi47q6j0-bzip2-1.0.6.0.2-bin/bin:/nix/store/pyv3351wlsa5r8sa8bbjpici3ksbvcqc-gnumake-4.3/bin:/nix/store/can473ld4dc8izcjlm4i5daxsh1yl5d8-bash-4.4-p23/bin:/nix/store/ral4i7kjhmxzq2kdg11ymx2bshgxk76m-patch-2.7.6/bin:/nix/store/jjfwszja3l4l4a6rrs2fi4im5hw0cjzc-xz-5.2.5-bin/bin';export $'out'=$'/nix/store/ml25411jp83p2xby538ri59dnsqs2v6h-nix-shell';export TEMPDIR=$'/run/user/1000';export NIX_BUILD_TOP=$'/run/user/1000';export NIX_BINTOOLS=$'/nix/store/rs4jynk5rpvag2b2f8m7nrzsypjss4w1-binutils-wrapper-2.35.1';export $'NIX_BINTOOLS_WRAPPER_TARGET_HOST_x86_64_unknown_linux_gnu'=1;export $'strictDeps'='';export NIX_ENFORCE_NO_NATIVE=1;export NIX_INDENT_MAKE=1;export SOURCE_DATE_EPOCH=315532800;export TMP=$'/run/user/1000';export IN_NIX_SHELL=$'pure';export NIX_HARDENING_ENABLE=$'fortify stackprotector pic strictoverflow format relro bindnow';export NIX_BUILD_CORES=4;export SIZE=$'size';export _=$'/nix/store/4cr600hz8fl4ixsayd6s3k2wg4z9l5h7-direnv-2.28.0/bin/direnv';export __ETC_PROFILE_SOURCED=1;export $'name'=$'nix-shell';export PATH=$'/nix/store/39k586qrghljxiyqvv72ni5fk89vshib-bash-interactive-4.4-p23/bin:/nix/store/wl5vdx1g9wkjgsjb8z1g9gxp5dwr8dfx-patchelf-0.12/bin:/nix/store/qvv5y4fx4x879rbsbs4g27mypl9wxbb9-gcc-wrapper-10.3.0/bin:/nix/store/cj8kp411lblbdm4qj94s14h99dx1pv4b-gcc-10.3.0/bin:/nix/store/wkxfa6jfwsh0n7d7czi0xp2b7sgrkv25-glibc-2.33-47-bin/bin:/nix/store/jj6z78skpdcya84iqbn9cf59sxjy5msv-coreutils-8.32/bin:/nix/store/rs4jynk5rpvag2b2f8m7nrzsypjss4w1-binutils-wrapper-2.35.1/bin:/nix/store/hy3lz2vfv9qq2v5jz9nzlx6mmiaq79rj-binutils-2.35.1/bin:/nix/store/vn348ghv842qmrh0zzaghjmk88vny3zq-openssl-1.1.1k-bin/bin:/nix/store/3d8z7x0p3fzhjkxdfr3cg6vfkfmqadnd-pkg-config-wrapper-0.29.2/bin:/nix/store/jj6z78skpdcya84iqbn9cf59sxjy5msv-coreutils-8.32/bin:/nix/store/2nrji9a3q54bnbf6bh2i01pv7hnb4320-findutils-4.8.0/bin:/nix/store/n0s100cc8q4y31cwik65p497m4y1xrlj-diffutils-3.7/bin:/nix/store/pp6q8mh5ilgsf67cciggkqcrrw8z2hip-gnused-4.8/bin:/nix/store/azjjb2azlva4ifsiyazrl8ajck5njfxn-gnugrep-3.6/bin:/nix/store/1838raw4b33pbry9m3c4mwrfigzbkf6r-gawk-5.1.0/bin:/nix/store/87l7j4jcsl6x50nzpii751cdbsa26b0f-gnutar-1.34/bin:/nix/store/zab716kfmd0h8iy49dldm8x1b695p7sk-gzip-1.10/bin:/nix/store/yr4rc4w2fcf96grwliqr1kgypi47q6j0-bzip2-1.0.6.0.2-bin/bin:/nix/store/pyv3351wlsa5r8sa8bbjpici3ksbvcqc-gnumake-4.3/bin:/nix/store/can473ld4dc8izcjlm4i5daxsh1yl5d8-bash-4.4-p23/bin:/nix/store/ral4i7kjhmxzq2kdg11ymx2bshgxk76m-patch-2.7.6/bin:/nix/store/jjfwszja3l4l4a6rrs2fi4im5hw0cjzc-xz-5.2.5-bin/bin';export $'depsBuildTargetPropagated'='';export NIX_CFLAGS_COMPILE=$' -frandom-seed=ml25411jp8 -isystem /nix/store/4vj64fvzrfgrf7rx4680vrkyi3zjw966-openssl-1.1.1k-dev/include -isystem /nix/store/4vj64fvzrfgrf7rx4680vrkyi3zjw966-openssl-1.1.1k-dev/include';export $'depsHostHostPropagated'='';export $'propagatedNativeBuildInputs'='';export AS=$'as';export SSL_CERT_FILE=$'/no-cert-file.crt';export $'doCheck'='';export PAGER=$'less';export OBJCOPY=$'objcopy';export PKG_CONFIG_PATH_FOR_TARGET=$'/nix/store/4vj64fvzrfgrf7rx4680vrkyi3zjw966-openssl-1.1.1k-dev/lib/pkgconfig';export $'depsTargetTarget'='';export OBJDUMP=$'objdump';export NM=$'nm';export READELF=$'readelf';export $'depsBuildTarget'='';export HOME=$'/home/pimeys';export $'doInstallCheck'='';export SHLVL=4;export CC=$'gcc';export STRIP=$'strip';export $'shellHook'='';export $'NIX_PKG_CONFIG_WRAPPER_TARGET_TARGET_x86_64_unknown_linux_gnu'=1;export $'depsBuildBuildPropagated'='';export STRINGS=$'strings';export $'depsHostHost'='';export DISPLAY=$':1';export $'system'=$'x86_64-linux';
1 change: 1 addition & 0 deletions .direnv/drv
4 changes: 4 additions & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
if command -v nix-shell &> /dev/null
then
use nix
fi
10 changes: 10 additions & 0 deletions shell.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{ pkgs ? import <nixpkgs> {} }:

with pkgs;

mkShell {
buildInputs = with pkgs; [
openssl
pkg-config
];
}

0 comments on commit 66186ca

Please sign in to comment.