mirror of
https://github.com/daylinmorgan/monolisa-nerdfont-patch.git
synced 2024-12-21 22:40:44 -06:00
chore: specify formatter in flake
This commit is contained in:
parent
f94b79f4f7
commit
22519a5a2d
2 changed files with 8 additions and 12 deletions
|
@ -12,8 +12,3 @@ repos:
|
||||||
- id: ruff-format
|
- id: ruff-format
|
||||||
- id: ruff
|
- id: ruff
|
||||||
args: [ --fix ]
|
args: [ --fix ]
|
||||||
- repo: https://github.com/kamadorueda/alejandra
|
|
||||||
rev: 3.0.0
|
|
||||||
hooks:
|
|
||||||
# Requires Alejandra to be previously installed in the system
|
|
||||||
- id: alejandra-system
|
|
||||||
|
|
15
flake.nix
15
flake.nix
|
@ -13,10 +13,8 @@
|
||||||
}: let
|
}: let
|
||||||
inherit (nixpkgs.lib) genAttrs makeBinPath;
|
inherit (nixpkgs.lib) genAttrs makeBinPath;
|
||||||
eachSystem = fn:
|
eachSystem = fn:
|
||||||
genAttrs (import systems)
|
genAttrs (import systems) (system:
|
||||||
(system:
|
fn system (import nixpkgs {
|
||||||
fn system
|
|
||||||
(import nixpkgs {
|
|
||||||
inherit system;
|
inherit system;
|
||||||
overlays = [self.overlays.default];
|
overlays = [self.overlays.default];
|
||||||
}));
|
}));
|
||||||
|
@ -33,14 +31,15 @@
|
||||||
buildPhase = ":";
|
buildPhase = ":";
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p $out/bin
|
mkdir -p $out/bin
|
||||||
install -m755 -D ${./patch-monolisa} $out/bin/monolisa-nerdfont-patch
|
install -m755 -D ${./patch-monolisa} \
|
||||||
|
$out/bin/monolisa-nerdfont-patch
|
||||||
install -m755 -D ${./font-patcher} $out/bin/font-patcher
|
install -m755 -D ${./font-patcher} $out/bin/font-patcher
|
||||||
cp -r ${./bin} $out/bin/bin
|
cp -r ${./bin} $out/bin/bin
|
||||||
cp -r ${./src} $out/bin/src
|
cp -r ${./src} $out/bin/src
|
||||||
'';
|
'';
|
||||||
postFixup = ''
|
postFixup = ''
|
||||||
wrapProgram $out/bin/monolisa-nerdfont-patch \
|
wrapProgram $out/bin/monolisa-nerdfont-patch \
|
||||||
--set PATH ${makeBinPath (with final; [fontforge])}
|
--set PATH ${makeBinPath (with pkgs; [fontforge])}
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -53,8 +52,10 @@
|
||||||
|
|
||||||
devShells = eachSystem (_: pkgs: {
|
devShells = eachSystem (_: pkgs: {
|
||||||
default = pkgs.mkShell {
|
default = pkgs.mkShell {
|
||||||
buildInputs = with pkgs; [fontforge python3 pre-commit];
|
packages = with pkgs; [fontforge python3 pre-commit];
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
|
formatter = eachSystem (_: pkgs: pkgs.nixfmt);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue