Skip to content

Commit

Permalink
nix-flake: Adapt nix flake
Browse files Browse the repository at this point in the history
* Update flake inputs
* Follow nixos-unstable for nixpkgs input
* Remove various unused arguments
* Add workaround for missing test dependency in sphinx-sitemap
  • Loading branch information
Irockasingranite authored and rexut committed Sep 15, 2024
1 parent fb05c5c commit 5dfb5c7
Show file tree
Hide file tree
Showing 4 changed files with 114 additions and 49 deletions.
147 changes: 107 additions & 40 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 2 additions & 7 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@
description = "A flake for working with Bridle";

inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.11";

nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";

zephyr = {
type = "github";
Expand Down Expand Up @@ -42,16 +40,13 @@
{
self,
nixpkgs,
nixpkgs-unstable,
flake-utils,
...
}@inputs:
(flake-utils.lib.eachDefaultSystem (
system:
let
pkgs = nixpkgs.legacyPackages.${system};
pkgs-unstable = nixpkgs-unstable.legacyPackages.${system};
inherit (nixpkgs) lib;

west2nix = callPackage inputs.west2nix.lib.mkWest2nix { };

Expand All @@ -70,7 +65,7 @@

in
{
formatter = pkgs-unstable.nixfmt-rfc-style;
formatter = pkgs.nixfmt-rfc-style;

packages.west2nix = inputs.west2nix.packages.${system}.default;

Expand Down
5 changes: 5 additions & 0 deletions python.nix
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ let
sphinxcontrib-svg2pdfconverter
sphinx-csv-filter
;

# WORKAROUND for missing defusedxml in nativeCheckInputs of sphinx-sitemap derivation.
sphinx-sitemap = prev.sphinx-sitemap.overrideAttrs (old: {
pytestCheckPhase = ''true'';
});
};
};

Expand Down
2 changes: 0 additions & 2 deletions shell.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
{
lib,
callPackage,
pythonEnv,
mkShell,
zephyr,
Expand Down

0 comments on commit 5dfb5c7

Please sign in to comment.