nixpkgs-suyu/pkgs/tools/nix/nixel/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

37 lines
967 B
Nix

{ lib
, rustPlatform
, fetchFromGitHub
, testers
, nixel
}:
rustPlatform.buildRustPackage rec {
pname = "nixel";
version = "4.1.0";
src = fetchFromGitHub {
owner = "kamadorueda";
repo = pname;
rev = version;
sha256 = "sha256-dQ3wzBTjteqk9rju+FMAO+ydimnGu24Y2DEDLX/P+1A=";
};
cargoSha256 = "sha256-1OsHs0W3ji9Kgpv7nGY9XyGxJ4c0faN2VuFLsdwkgKY=";
# Package requires a non reproducible submodule
# https://github.com/kamadorueda/nixel/blob/2873bd84bf4fc540d0ae8af062e109cc9ad40454/.gitmodules#L7
doCheck = false;
#
# Let's test it runs
passthru.tests = {
version = testers.testVersion { package = nixel; };
};
meta = with lib; {
description = "Lexer, Parser, Abstract Syntax Tree and Concrete Syntax Tree for the Nix Expressions Language";
mainProgram = "nixel";
homepage = "https://github.com/kamadorueda/nixel";
license = licenses.agpl3Only;
maintainers = with maintainers; [ kamadorueda ];
};
}