From e6d371a35d7258ac2b87ee54059945a51a4866f1 Mon Sep 17 00:00:00 2001 From: Jade Lovelace Date: Mon, 18 Mar 2024 23:03:48 -0700 Subject: [PATCH] Add release notes system for dev facing release notes We keep changing dev stuff and we probably should keep the news up to date? Change-Id: I819da6a29f1c56c8ab8d758c159a9c96164cb04e --- flake.nix | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/flake.nix b/flake.nix index 0b7d8dc14..253e16116 100644 --- a/flake.nix +++ b/flake.nix @@ -279,18 +279,21 @@ }; }; - checks = forAllSystems (system: { + checks = forAllSystems (system: let + rl-next-check = name: dir: + let pkgs = nixpkgsFor.${system}.native; + in pkgs.buildPackages.runCommand "test-${name}-release-notes" { } '' + LANG=C.UTF-8 ${lib.getExe pkgs.build-release-notes} ${dir} >$out + ''; + in { # FIXME(Qyriad): remove this when the migration to Meson has been completed. mesonBuild = self.hydraJobs.mesonBuild.${system}; mesonBuildClang = self.hydraJobs.mesonBuildClang.${system}; binaryTarball = self.hydraJobs.binaryTarball.${system}; perlBindings = self.hydraJobs.perlBindings.${system}; nixpkgsLibTests = self.hydraJobs.tests.nixpkgsLibTests.${system}; - rl-next = - let pkgs = nixpkgsFor.${system}.native; - in pkgs.buildPackages.runCommand "test-rl-next-release-notes" { } '' - LANG=C.UTF-8 ${lib.getExe pkgs.build-release-notes} ${./doc/manual/rl-next} >$out - ''; + rl-next = rl-next-check "rl-next" ./doc/manual/rl-next; + rl-next-dev = rl-next-check "rl-next-dev" ./doc/manual/rl-next-dev; } // (lib.optionalAttrs (builtins.elem system linux64BitSystems)) { dockerImage = self.hydraJobs.dockerImage.${system}; });