Merge pull request #167246 from kamadorueda/nixel

nixel: init at 4.1.0
This commit is contained in:
Lassulus 2022-06-24 00:45:14 +02:00 committed by GitHub
commit 2ee36a0de7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 38 additions and 0 deletions

View File

@ -0,0 +1,36 @@
{ 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";
homepage = "https://github.com/kamadorueda/nixel";
license = licenses.agpl3Only;
maintainers = with maintainers; [ kamadorueda ];
};
}

View File

@ -4095,6 +4095,8 @@ with pkgs;
nix-direnv = callPackage ../tools/misc/nix-direnv { };
nixel = callPackage ../tools/nix/nixel { };
nix-output-monitor = callPackage ../tools/nix/nix-output-monitor { };
nix-template = callPackage ../tools/package-management/nix-template {