Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, rustPlatform, fetchFromGitHub, withJson ? true, stdenv }: 2 3rustPlatform.buildRustPackage rec { 4 pname = "statix"; 5 # also update version of the vim plugin in 6 # pkgs/applications/editors/vim/plugins/overrides.nix 7 # the version can be found in flake.nix of the source code 8 version = "0.5.6"; 9 10 src = fetchFromGitHub { 11 owner = "nerdypepper"; 12 repo = pname; 13 rev = "v${version}"; 14 sha256 = "sha256-OQk80eTUufVUbYvZ38el2lmkgkU+5gr0hLTrBvzIp4A="; 15 }; 16 17 cargoSha256 = "sha256-j+FcV5JtO66Aa0ncIUfjuWtqnMmFb7zW7rNXttYBUU4="; 18 19 buildFeatures = lib.optional withJson "json"; 20 21 # tests are failing on darwin 22 doCheck = !stdenv.isDarwin; 23 24 meta = with lib; { 25 description = "Lints and suggestions for the nix programming language"; 26 homepage = "https://github.com/nerdypepper/statix"; 27 license = licenses.mit; 28 maintainers = with maintainers; [ figsoda nerdypepper ]; 29 }; 30}