mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 19:13:26 +03:00

This reverts commit65a333600d
. This wasn't tested for correctness with something like fodwatch [0], and should not have been (self-)merged so quickly, especially without further review. It also resulted in the breakage of at least one package [1] (and that's the one we know of and was caught). A few packages that were updated in between this commit and this revert were not reverted back to using `rev`, but other than that, this is a 1:1 revert. [0]: https://codeberg.org/raphaelr/fodwatch [1]: https://github.com/NixOS/nixpkgs/pull/396904 /758551e458
56 lines
1.2 KiB
Nix
56 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
rustPlatform,
|
|
fetchFromGitHub,
|
|
pkg-config,
|
|
glib,
|
|
gtk4,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "gnvim-unwrapped";
|
|
version = "0.3.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "vhakulinen";
|
|
repo = "gnvim";
|
|
rev = "v${version}";
|
|
hash = "sha256-VyyHlyMW/9zYECobQwngFARQYqcoXmopyCHUwHolXfo=";
|
|
};
|
|
|
|
useFetchCargoVendor = true;
|
|
cargoHash = "sha256-+i4fFiuNmc2+aFyOW2FxRZXINN1XF0nDJVsFYnIHI24=";
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
# for the `glib-compile-resources` command
|
|
glib
|
|
];
|
|
buildInputs = [
|
|
glib
|
|
gtk4
|
|
];
|
|
|
|
# The default build script tries to get the version through Git, so we
|
|
# replace it
|
|
postPatch = ''
|
|
# Install the binary ourselves, since the Makefile doesn't have the path
|
|
# containing the target architecture
|
|
sed -e "/target\/release/d" -i Makefile
|
|
'';
|
|
|
|
postInstall = ''
|
|
make install PREFIX="${placeholder "out"}"
|
|
'';
|
|
|
|
# GTK fails to initialize
|
|
doCheck = false;
|
|
|
|
meta = with lib; {
|
|
description = "GUI for neovim, without any web bloat";
|
|
mainProgram = "gnvim";
|
|
homepage = "https://github.com/vhakulinen/gnvim";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ minijackson ];
|
|
};
|
|
}
|