Skip to content

Instantly share code, notes, and snippets.

@sondr3

sondr3/gcc.md Secret

Created November 9, 2019 19:43
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 sondr3/1cc5d130777a6264a5a43421152d377b to your computer and use it in GitHub Desktop.
Save sondr3/1cc5d130777a6264a5a43421152d377b to your computer and use it in GitHub Desktop.
❯ gcc -v
Using built-in specs.
COLLECT_GCC=/nix/store/yvzq185jfr4vj74a9h4ap4dj4nnqbx7l-gcc-8.3.0/bin/gcc
COLLECT_LTO_WRAPPER=/nix/store/yvzq185jfr4vj74a9h4ap4dj4nnqbx7l-gcc-8.3.0/libexec/gcc/x86_64-unknown-linux-gnu/8.3.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: 
Thread model: posix
gcc version 8.3.0 (GCC) 
let
pkgs = import ./nix/nixpkgs.nix;
inherit (pkgs)
stdenv
;
rust = (
pkgs.rustChannelOf {
date = "2019-11-01";
channel = "nightly";
}
).rust.override {
extensions = [
"clippy-preview"
"rls-preview"
"rustfmt-preview"
"rust-analysis"
"rust-std"
"rust-src"
];
};
in
stdenv.mkDerivation {
name = "kitchenaid-rs";
buildInputs = with pkgs; [
diesel-cli
openssl
pkgconfig
postgresql_11
sqlite
gcc9
rust
];
shellHook = ''
export PATH=$PWD/target/debug:$PATH
export PGDATA=$PWD/.tmp/database/
'';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment