Skip to content

Instantly share code, notes, and snippets.

View ckauhaus's full-sized avatar

Christian Kauhaus ckauhaus

View GitHub Profile
@ckauhaus
ckauhaus / buildRustPackage.nix
Created August 10, 2017 16:45
Proposal for a new Nix Rust build expression
{ pkgs ? import <nixpkgs> {}
, stdenv ? pkgs.stdenv
, rust ? pkgs.rust
, rustRegistry ? pkgs.rustPlatform.rustRegistry
}:
# Builds a Rust package from src with all dependendies found in Cargo.lock.
# Don't forget to update the cargoDepsSha256 checksum when updating the sources.
# Due to the nature of fixed-output derivations strange compile errors may
# happen otherwise.

Keybase proof

I hereby claim:

  • I am ckauhaus on github.
  • I am ckauhaus (https://keybase.io/ckauhaus) on keybase.
  • I have a public key whose fingerprint is 11F4 7122 39C2 4C4D 36D6 2BF1 3C4D 3391 E1F1 DDE8

To claim this, I am signing this object: