default nix with src ./.

This commit is contained in:
Ruben Moor 2020-07-17 19:54:42 -05:00
parent 914a4d6b15
commit 4b1b79bb88
2 changed files with 7 additions and 9 deletions

7
default.nix Normal file
View File

@ -0,0 +1,7 @@
{ pkgs }:
pkgs.rustPlatform.buildRustPackage rec {
pname = "mdbook-${version}";
version = "0.4.2";
src = ./.;
cargoSha256 = "0ch25ivww62j2kwsd20159hwjfyhfarwmqy9hqn1lv2vhfskry2b";
}

View File

@ -1,9 +0,0 @@
with import <nixpkgs> {};
stdenv.mkDerivation {
name = "my-rust-env";
buildInputs = [
pkgs.cargo
pkgs.gcc
pkgs.rustup
];
}