diff options
author | sternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org> | 2021-03-28 13:18:38 +0200 |
---|---|---|
committer | sterni <sternenseemann@systemli.org> | 2021-04-03 14:34:20 +0200 |
commit | 4a16f2ec94643dfa24f0ad0737d9bcebcf8fd464 (patch) | |
tree | 22ee2b7200a70d089f1691466e3ee794fc8fa69c /pkgs/applications/terminal-emulators/foot/default.nix | |
parent | 6c1566fab75e6eafce4aeb41536c7e0468b1e690 (diff) | |
download | nixpkgs-4a16f2ec94643dfa24f0ad0737d9bcebcf8fd464.tar nixpkgs-4a16f2ec94643dfa24f0ad0737d9bcebcf8fd464.tar.gz nixpkgs-4a16f2ec94643dfa24f0ad0737d9bcebcf8fd464.tar.bz2 nixpkgs-4a16f2ec94643dfa24f0ad0737d9bcebcf8fd464.tar.lz nixpkgs-4a16f2ec94643dfa24f0ad0737d9bcebcf8fd464.tar.xz nixpkgs-4a16f2ec94643dfa24f0ad0737d9bcebcf8fd464.tar.zst nixpkgs-4a16f2ec94643dfa24f0ad0737d9bcebcf8fd464.zip |
foot: add tests checking the clang compilation to the package
I want to support this in the future. Since I sometimes forget to check clang compilation when doing a version bump, there has been regression to this in the past. Let's prevent this by checking compilation with the default clang version in nixpkgs and the latest clang as well.
Diffstat (limited to 'pkgs/applications/terminal-emulators/foot/default.nix')
-rw-r--r-- | pkgs/applications/terminal-emulators/foot/default.nix | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/pkgs/applications/terminal-emulators/foot/default.nix b/pkgs/applications/terminal-emulators/foot/default.nix index 82c5e0076b7..28657225499 100644 --- a/pkgs/applications/terminal-emulators/foot/default.nix +++ b/pkgs/applications/terminal-emulators/foot/default.nix @@ -18,6 +18,10 @@ , pkg-config , allowPgo ? true , python3 # for PGO +# for clang stdenv check +, foot +, llvmPackages +, llvmPackages_latest }: let @@ -140,6 +144,16 @@ stdenv.mkDerivation rec { llvm-profdata merge default_*profraw --output=default.profdata ''; + passthru.tests = { + clang-default-compilation = foot.override { + inherit (llvmPackages) stdenv; + }; + + clang-latest-compilation = foot.override { + inherit (llvmPackages_latest) stdenv; + }; + }; + meta = with lib; { homepage = "https://codeberg.org/dnkl/foot/"; changelog = "https://codeberg.org/dnkl/foot/releases/tag/${version}"; |