at 23.05-pre 33 lines 779 B view raw
1{ lib, rustPlatform, fetchFromGitHub, nix, nix-update-script }: 2 3rustPlatform.buildRustPackage rec { 4 pname = "nil"; 5 version = "2022-11-15"; 6 7 src = fetchFromGitHub { 8 owner = "oxalica"; 9 repo = pname; 10 rev = version; 11 hash = "sha256-KzQmGCEaOACOqaE1LsVZsqn18XpjlUbGWztDEI+o++w="; 12 }; 13 14 cargoHash = "sha256-t5HfL7DKMcWJGod6x30NoHYYlAza++fEdEVvfvFWems="; 15 16 CFG_DATE = version; 17 CFG_REV = "release"; 18 19 nativeBuildInputs = [ 20 (lib.getBin nix) 21 ]; 22 23 passthru.updateScript = nix-update-script { 24 attrPath = pname; 25 }; 26 27 meta = with lib; { 28 description = "Yet another language server for Nix"; 29 homepage = "https://github.com/oxalica/nil"; 30 license = with licenses; [ mit asl20 ]; 31 maintainers = with maintainers; [ figsoda oxalica ]; 32 }; 33}