aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/check_get_tests.nix
blob: a39d3007422caec7d44708dad790ee8e55e54cb6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
let
  get = input: (builtins.fetchTree input.locked).outPath;

  lock = (builtins.fromJSON (builtins.readFile ../flake.lock)).nodes;

  flake-compat = import (get lock.flake-compat) {src = ../.;};
  pkgs = import (get lock.nixpkgs) {};
  inherit (pkgs) lib;

  inherit (flake-compat) outputs;
in
  lib.strings.concatStringsSep "\n"
  (builtins.attrNames
    (lib.filterAttrs
      (name: test: test.meta.broken == false)
      outputs.checks.x86_64-linux))