Skip to content

Commit

Permalink
Merge pull request NixOS#205188 from wegank/norminette-init
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperSandro2000 authored Dec 18, 2022
2 parents 09c1a1a + 27fefe5 commit 9e6f3ed
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
31 changes: 31 additions & 0 deletions pkgs/development/tools/norminette/default.nix
Original file line number Diff line number Diff line change
@@ -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 ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17710,6 +17710,8 @@ with pkgs;

nmrpflash = callPackage ../development/embedded/nmrpflash { };

norminette = callPackage ../development/tools/norminette { };

nwjs = callPackage ../development/tools/nwjs { };

nwjs-sdk = callPackage ../development/tools/nwjs {
Expand Down

0 comments on commit 9e6f3ed

Please sign in to comment.