Skip to content

Instantly share code, notes, and snippets.

@sondr3 sondr3/gcc.md Secret
Created Nov 9, 2019

Embed
What would you like to do?
❯ 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
You can’t perform that action at this time.