Skip to content

Commit

Permalink
chore: format .nix files
Browse files Browse the repository at this point in the history
  • Loading branch information
liferooter authored and vanutp committed Dec 21, 2024
1 parent f7dfdde commit bac06a8
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 10 deletions.
20 changes: 15 additions & 5 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,12 @@
};

outputs =
inputs@{ self, flake-parts, pyproject-nix, ... }:
inputs@{
self,
flake-parts,
pyproject-nix,
...
}:
flake-parts.lib.mkFlake { inherit inputs; } {
systems = [
"x86_64-linux"
Expand All @@ -21,20 +26,25 @@
];

perSystem =
{ config, pkgs, lib, ... }:
{
config,
pkgs,
lib,
...
}:
let
project = pyproject-nix.lib.project.loadPyproject {
pyproject = lib.pipe ./pyproject.toml [
lib.readFile
(lib.replaceStrings ["cryptg-anyos"] ["cryptg"])
(lib.replaceStrings [ "cryptg-anyos" ] [ "cryptg" ])
builtins.fromTOML
];
};
python = pkgs.python3.override {
packageOverrides = import ./nix/mkPackageOverrides.nix { inherit pkgs; };
};
packageAttrs = import ./nix/mkPackageAttrs.nix {
inherit pkgs project python;
packageAttrs = import ./nix/mkPackageAttrs.nix {
inherit pkgs project python;
rev = self.rev or null;
};
in
Expand Down
12 changes: 7 additions & 5 deletions nix/mkPackageOverrides.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@ self: super: {
};
doCheck = false;
});
mkdocs-git-revision-date-localized-plugin = super.mkdocs-git-revision-date-localized-plugin.overridePythonAttrs (old: {
pyproject = true;
format = null;
mkdocs-git-revision-date-localized-plugin =
super.mkdocs-git-revision-date-localized-plugin.overridePythonAttrs
(old: {
pyproject = true;
format = null;

dependencies = old.propagatedBuildInputs ++ [ super.setuptools-scm ];
});
dependencies = old.propagatedBuildInputs ++ [ super.setuptools-scm ];
});
}

0 comments on commit bac06a8

Please sign in to comment.