Skip to content

Instantly share code, notes, and snippets.

@lovesegfault
Last active March 13, 2020 04:26
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 lovesegfault/124c615910c770c8477a135b39522fb9 to your computer and use it in GitHub Desktop.
Save lovesegfault/124c615910c770c8477a135b39522fb9 to your computer and use it in GitHub Desktop.
{ pkgs ? import ./nix }:
let
generated = pkgs.callPackage ./Cargo.nix {
inherit pkgs;
defaultCrateOverrides = pkgs.defaultCrateOverrides // {
openssl-sys = attrs: {
buildInputs = with pkgs; [ openssl pkg-config ];
};
};
};
tested = generated.rootCrate.build.override {
runTests = true;
# testInputs = with pkgs; [ hello ];
};
in
{
inherit pkgs;
begonia = tested;
shellBuildInputs = with pkgs; [
cachix
cargo-edit
crate2nix
niv
nixpkgs-fmt
rustFull
];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment