diff options
| author | Mehmet Samet Duman <yongdohyun@projecttick.org> | 2026-04-04 23:00:30 +0300 |
|---|---|---|
| committer | Mehmet Samet Duman <yongdohyun@projecttick.org> | 2026-04-04 23:00:30 +0300 |
| commit | 71ffb442e5f8072c6e0a974df9ae085bcf0e5d2a (patch) | |
| tree | d336b1d64747aeebb1a80c2e7c4e9b5d24253751 /flake.nix | |
| parent | f96ea38d595162813a460f80f84e20f8d7f241bc (diff) | |
| download | Project-Tick-71ffb442e5f8072c6e0a974df9ae085bcf0e5d2a.tar.gz Project-Tick-71ffb442e5f8072c6e0a974df9ae085bcf0e5d2a.zip | |
NOISSUE update bootstrap script paths in documentation for Linux and Windows
remove unnecessary badges from README
add example environment configuration for Ofborg
create production configuration for Ofborg
correct RabbitMQ host in example configuration
add push event handling in GitHub webhook receiver
implement push filter task for handling push events
extend build job structure to include push event information
enhance build result structure to accommodate push event data
add push event data handling in various message processing tasks
update log message collector to prevent 404 errors on log links
add push filter task to task module
Signed-off-by: Mehmet Samet Duman <yongdohyun@projecttick.org>
Diffstat (limited to 'flake.nix')
| -rw-r--r-- | flake.nix | 78 |
1 files changed, 78 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000000..d510656840 --- /dev/null +++ b/flake.nix @@ -0,0 +1,78 @@ +{ + description = " Project Tick is a project dedicated to providing developers with ease of use and users with long-lasting software."; + + inputs = { + nixpkgs.url = "https://channels.nixos.org/nixos-unstable/nixexprs.tar.xz"; + }; + + outputs = + { + self, + nixpkgs, + }: + + let + inherit (nixpkgs) lib; + + # While we only officially support aarch and x86_64 on Linux and MacOS, + # we expose a reasonable amount of other systems for users who want to + # build for most exotic platforms + systems = lib.systems.flakeExposed; + + forAllSystems = lib.genAttrs systems; + nixpkgsFor = forAllSystems (system: nixpkgs.legacyPackages.${system}); + in + + { + devShells = forAllSystems ( + system: + + let + pkgs = nixpkgsFor.${system}; + llvm = pkgs.llvmPackages_22; + python = pkgs.python3; + mkShell = pkgs.mkShell.override { inherit (llvm) stdenv; }; + + packages' = self.packages.${system}; + + welcomeMessage = '' + Welcome to Project Tick! + ''; + in + + { + default = mkShell { + name = "project-tick"; + + packages = [ + + (pkgs.stdenvNoCC.mkDerivation { + pname = "clang-tidy-diff"; + inherit (llvm.clang) version; + + nativeBuildInputs = [ + pkgs.installShellFiles + python.pkgs.wrapPython + ]; + + dontUnpack = true; + dontConfigure = true; + dontBuild = true; + + postInstall = "installBin ${llvm.libclang.python}/share/clang/clang-tidy-diff.py"; + postFixup = "wrapPythonPrograms"; + }) + ]; + + shellHook = '' + git submodule update --init --force + + echo ${lib.escapeShellArg welcomeMessage} + ''; + }; + } + ); + + formatter = forAllSystems (system: nixpkgsFor.${system}.nixfmt-rfc-style); + }; +} |
