nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 35 lines 911 B view raw
1{ 2 lib, 3 rustPlatform, 4 fetchFromGitHub, 5 versionCheckHook, 6 nix-update-script, 7}: 8 9rustPlatform.buildRustPackage (finalAttrs: { 10 pname = "schemat"; 11 version = "0.4.2"; 12 13 src = fetchFromGitHub { 14 owner = "raviqqe"; 15 repo = "schemat"; 16 tag = "v${finalAttrs.version}"; 17 hash = "sha256-JOrBQvrnA/qSmI+jJjGjcxEWFDCfiUmtJaZPI3N0rMk="; 18 }; 19 20 cargoHash = "sha256-zGP8m05g6zEQ/dx9ChLhUCM2x9q3bltPW+9ku05rzCE="; 21 22 doInstallCheck = true; 23 nativeInstallCheckInputs = [ versionCheckHook ]; 24 25 passthru.updateScript = nix-update-script { }; 26 27 meta = { 28 description = "Code formatter for Scheme, Lisp, and any S-expressions"; 29 homepage = "https://github.com/raviqqe/schemat"; 30 changelog = "https://github.com/raviqqe/schemat/releases/tag/v${finalAttrs.version}"; 31 license = lib.licenses.unlicense; 32 maintainers = with lib.maintainers; [ bddvlpr ]; 33 mainProgram = "schemat"; 34 }; 35})