mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 00:43:56 -05:00
use inputs' in mkPackages
extract nixfmt from lint re-add nixfmt to systemPackages
This commit is contained in:
parent
0dda10f74b
commit
a114216334
4 changed files with 9 additions and 8 deletions
|
|
@ -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";
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
6
packages/nixfmt/package.nix
Normal file
6
packages/nixfmt/package.nix
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
{inputs, nixfmt}:
|
||||
(nixfmt.overrideAttrs {
|
||||
version = "0.6.0-${inputs.nixfmt.shortRev}";
|
||||
|
||||
src = inputs.nixfmt;
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue