Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions pkgs/applications/editors/neovim/gnvim/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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"}"
'';

Expand Down