diff --git a/pkgs/applications/editors/neovim/gnvim/default.nix b/pkgs/applications/editors/neovim/gnvim/default.nix index 208339c2e38dcc..8e86683f9bfef5 100644 --- a/pkgs/applications/editors/neovim/gnvim/default.nix +++ b/pkgs/applications/editors/neovim/gnvim/default.nix @@ -17,7 +17,7 @@ rustPlatform.buildRustPackage rec { # The default build script tries to get the version through Git, so we # replace it - prePatch = '' + postPatch = '' cat << EOF > build.rs use std::env; use std::fs::File; @@ -31,13 +31,13 @@ rustPlatform.buildRustPackage rec { f.write_all(b"const VERSION: &str = \"${version}\";").unwrap(); } EOF - ''; - buildPhase = '' - make build + # Install the binary ourselves, since the Makefile doesn't have the path + # containing the target architecture + sed -e "/target\/release/d" -i Makefile ''; - installPhase = '' + postInstall = '' make install PREFIX="${placeholder "out"}" '';