statix: use molybdenumsoftware fork

This commit is contained in:
Shahar "Dawn" Or
2026-05-04 13:03:05 +07:00
parent f2add98a4f
commit c0df7eb00f
2 changed files with 17 additions and 26 deletions
@@ -2,14 +2,15 @@
vimUtils,
statix,
}:
vimUtils.buildVimPlugin rec {
inherit (statix) pname src meta;
version = "0.1.0";
postPatch = ''
# check that version is up to date
grep 'pname = "statix-vim"' -A 1 flake.nix \
| grep -F 'version = "${version}"'
vimUtils.buildVimPlugin {
inherit (statix)
pname
src
meta
version
;
postPatch = ''
cd vim-plugin
substituteInPlace ftplugin/nix.vim --replace-fail statix ${statix}/bin/statix
substituteInPlace plugin/statix.vim --replace-fail statix ${statix}/bin/statix
+9 -19
View File
@@ -3,41 +3,31 @@
rustPlatform,
fetchFromGitHub,
withJson ? true,
stdenv,
versionCheckHook,
nix-update-script,
}:
rustPlatform.buildRustPackage (finalAttrs: {
pname = "statix";
# also update version of the vim plugin in
# pkgs/applications/editors/vim/plugins/overrides.nix
# the version can be found in flake.nix of the source code
version = "0.5.8";
version = "0-unstable-2026-05-03";
src = fetchFromGitHub {
owner = "oppiliappan";
owner = "molybdenumsoftware";
repo = "statix";
tag = "v${finalAttrs.version}";
sha256 = "sha256-bMs3XMiGP6sXCqdjna4xoV6CANOIWuISSzCaL5LYY4c=";
rev = "91e28aa76179b5769e8eff7ff4b09464d0913f27";
hash = "sha256-JDCJ8fgIs5ZdYygQxlR63H/V4VyfmVMR4FleWwAl+AM=";
};
cargoHash = "sha256-Pi1q2qNLjQYr3Wla7rqrktNm0StszB2klcfzwAnF3tE=";
cargoHash = "sha256-lODAnIGw8MncMT5xicWORSbCChn2HQXENsOStJYHepQ=";
buildFeatures = lib.optional withJson "json";
# tests are failing on darwin
doCheck = !stdenv.hostPlatform.isDarwin;
doInstallCheck = true;
nativeInstallCheckInputs = [ versionCheckHook ];
versionCheckProgramArg = "--version";
passthru.updateScript = nix-update-script { };
passthru.updateScript = nix-update-script {
version = "branch";
};
meta = {
description = "Lints and suggestions for the nix programming language";
homepage = "https://github.com/oppiliappan/statix";
homepage = "https://github.com/molybdenumsoftware/statix";
license = lib.licenses.mit;
mainProgram = "statix";
maintainers = with lib.maintainers; [