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 - ]; -}