use inputs' in mkPackages

extract nixfmt from lint

re-add nixfmt to systemPackages
This commit is contained in:
Gerg-L 2023-12-10 18:37:46 -05:00
parent 0dda10f74b
commit a114216334
Signed by: gerg-l
SSH key fingerprint: SHA256:FPYDHIkvMocr4wdmZXpgpJjsb2Tw6rASs2ISPbOb0KI
4 changed files with 9 additions and 8 deletions

View file

@ -68,7 +68,7 @@
qmk
;
inherit (nvim-flake.packages) neovim;
inherit (self.packages) lint;
inherit (self.packages) lint nixfmt;
};
etc = {
"jdks/17".source = "${pkgs.openjdk17}/bin";

View file

@ -130,7 +130,7 @@ rec {
callPackage = lib.callPackageWith (
pkgs
// {
inherit inputs;
inputs = constructInputs' pkgs.stdenv.hostPlatform.system inputs;
# maybe add self?
# inherit self;
# npins sources if i need them

View file

@ -1,6 +1,5 @@
{
inputs,
nixfmt,
writeShellApplication,
deadnix,
statix,
@ -10,11 +9,7 @@
writeShellApplication {
name = "lint";
runtimeInputs = [
(nixfmt.overrideAttrs {
version = "0.6.0-${inputs.nixfmt.shortRev}";
src = inputs.nixfmt;
})
inputs.self.packages.nixfmt
deadnix
statix
fd

View file

@ -0,0 +1,6 @@
{inputs, nixfmt}:
(nixfmt.overrideAttrs {
version = "0.6.0-${inputs.nixfmt.shortRev}";
src = inputs.nixfmt;
})