nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 ruby_3_4, # fix "Source locally installed gems is ignoring ... because it is missing extensions"
4 bundlerApp,
5 bundlerUpdateScript,
6 inspec,
7 testers,
8}:
9
10bundlerApp {
11 pname = "inspec";
12 gemdir = ./.;
13
14 ruby = ruby_3_4;
15
16 exes = [ "inspec" ];
17
18 passthru = {
19 updateScript = bundlerUpdateScript "inspec";
20 tests.version = testers.testVersion {
21 package = inspec;
22 command = "inspec version";
23 inherit ((import ./gemset.nix).inspec) version;
24 };
25 };
26
27 meta = {
28 description = "Open-source testing framework for infrastructure with a human- and machine-readable language for specifying compliance, security and policy requirements";
29 homepage = "https://inspec.io/";
30 license = lib.licenses.unfree; # rubygems distribution is unfree, see https://github.com/inspec/inspec/blob/main/Chef-EULA
31 maintainers = with lib.maintainers; [ dylanmtaylor ];
32 mainProgram = "inspec";
33 };
34}