From 4b1b79bb88e169a8c77a3e306b5644596dc427cd Mon Sep 17 00:00:00 2001 From: Ruben Moor Date: Fri, 17 Jul 2020 19:54:42 -0500 Subject: [PATCH] default nix with src ./. --- default.nix | 7 +++++++ shell.nix | 9 --------- 2 files changed, 7 insertions(+), 9 deletions(-) create mode 100644 default.nix delete mode 100644 shell.nix diff --git a/default.nix b/default.nix new file mode 100644 index 00000000..b623fb81 --- /dev/null +++ b/default.nix @@ -0,0 +1,7 @@ +{ pkgs }: +pkgs.rustPlatform.buildRustPackage rec { + pname = "mdbook-${version}"; + version = "0.4.2"; + src = ./.; + cargoSha256 = "0ch25ivww62j2kwsd20159hwjfyhfarwmqy9hqn1lv2vhfskry2b"; +} diff --git a/shell.nix b/shell.nix deleted file mode 100644 index 84b8c47d..00000000 --- a/shell.nix +++ /dev/null @@ -1,9 +0,0 @@ -with import {}; -stdenv.mkDerivation { - name = "my-rust-env"; - buildInputs = [ - pkgs.cargo - pkgs.gcc - pkgs.rustup - ]; -}