From 27fefe56f4bd6ac9cd9c29421cea39ac70dec639 Mon Sep 17 00:00:00 2001 From: Weijia Wang <9713184+wegank@users.noreply.github.com> Date: Tue, 13 Dec 2022 23:37:40 +0100 Subject: [PATCH] norminette: init at 3.3.51 --- pkgs/development/tools/norminette/default.nix | 31 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 33 insertions(+) create mode 100644 pkgs/development/tools/norminette/default.nix diff --git a/pkgs/development/tools/norminette/default.nix b/pkgs/development/tools/norminette/default.nix new file mode 100644 index 000000000000..5709fa0f469f --- /dev/null +++ b/pkgs/development/tools/norminette/default.nix @@ -0,0 +1,31 @@ +{ lib +, python3Packages +, fetchFromGitHub +}: + +python3Packages.buildPythonApplication rec { + pname = "norminette"; + version = "3.3.51"; + + src = fetchFromGitHub { + owner = "42School"; + repo = pname; + rev = version; + hash = "sha256-JpWziUKZPOD+AwiYeHR7e0B9l3XKNNp+XQkZEvynKGY="; + }; + + checkInputs = with python3Packages; [ + pytestCheckHook + ]; + + preCheck = '' + export PYTHONPATH=norminette:$PYTHONPATH + ''; + + meta = with lib; { + description = "Open source norminette to apply 42's norme to C files"; + homepage = "https://github.com/42School/norminette"; + license = licenses.mit; + maintainers = with maintainers; [ wegank ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 32801c7cd2a2..ac415cf4886c 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -17684,6 +17684,8 @@ with pkgs; nmrpflash = callPackage ../development/embedded/nmrpflash { }; + norminette = callPackage ../development/tools/norminette { }; + nwjs = callPackage ../development/tools/nwjs { }; nwjs-sdk = callPackage ../development/tools/nwjs {