From e3d3ae02c9ef67791aa38ec8697354ba6cbc2619 Mon Sep 17 00:00:00 2001 From: Juozas Norkus Date: Sun, 28 Jan 2024 13:08:32 +0000 Subject: [PATCH] Support allowBroken --- docs/reference/yaml-options.md | 1 + src/devenv/yaml.py | 1 + src/modules/flake.tmpl.nix | 1 + 3 files changed, 3 insertions(+) diff --git a/docs/reference/yaml-options.md b/docs/reference/yaml-options.md index de00c91cd..9924fafe4 100644 --- a/docs/reference/yaml-options.md +++ b/docs/reference/yaml-options.md @@ -2,6 +2,7 @@ | Key | Value | | ---------------------------- | ----------------------------------------------------------------------------- | | allowUnfree | Allow unfree packages. Defaults to `false`. | +| allowBroken | Allow packages marked as broken. Defaults to `false`. | | inputs | Defaults to `inputs.nixpkgs.url: github:NixOS/nixpkgs/nixpkgs-unstable`. | | inputs.<name> | Identifier name used when passing the input in your ``devenv.nix`` function. | | inputs.<name>.url | URI specification of the input, see below for possible values. | diff --git a/src/devenv/yaml.py b/src/devenv/yaml.py index 825dbccf9..634a20e1d 100644 --- a/src/devenv/yaml.py +++ b/src/devenv/yaml.py @@ -23,6 +23,7 @@ { Optional("inputs", default=None): inputsSchema, Optional("allowUnfree", default=False): Bool(), + Optional("allowBroken", default=False): Bool(), Optional("imports", default=None): Seq(Str()), Optional("permittedInsecurePackages", default=None): Seq(Str()), } diff --git a/src/modules/flake.tmpl.nix b/src/modules/flake.tmpl.nix index 92f403721..61c9b0a75 100644 --- a/src/modules/flake.tmpl.nix +++ b/src/modules/flake.tmpl.nix @@ -28,6 +28,7 @@ inherit system; config = { allowUnfree = devenv.allowUnfree or false; + allowBroken = devenv.allowBroken or false; permittedInsecurePackages = devenv.permittedInsecurePackages or [ ]; }; inherit overlays;