mirror of
https://github.com/daylinmorgan/monolisa-nerdfont-patch.git
synced 2024-09-27 20:07:17 -05:00
flake: move usages of with to smallest scopes
This commit is contained in:
parent
fabe645c8b
commit
9fb310f51e
1 changed files with 26 additions and 26 deletions
18
flake.nix
18
flake.nix
|
@ -20,13 +20,12 @@
|
||||||
in
|
in
|
||||||
fn system pkgs);
|
fn system pkgs);
|
||||||
in {
|
in {
|
||||||
packages = eachSystem (_: pkgs:
|
packages = eachSystem (_: pkgs: {
|
||||||
with pkgs; {
|
default = pkgs.stdenv.mkDerivation {
|
||||||
default = stdenv.mkDerivation {
|
|
||||||
name = "monolisa-nerdfont-patch";
|
name = "monolisa-nerdfont-patch";
|
||||||
src = ./.;
|
src = ./.;
|
||||||
nativeBuildInputs = [makeWrapper];
|
nativeBuildInputs = with pkgs; [makeWrapper];
|
||||||
buildInputs = [fontforge python3];
|
buildInputs = with pkgs; [fontforge python3];
|
||||||
unpackPhase = ":";
|
unpackPhase = ":";
|
||||||
buildPhase = ":";
|
buildPhase = ":";
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
|
@ -38,14 +37,15 @@
|
||||||
'';
|
'';
|
||||||
postFixup = ''
|
postFixup = ''
|
||||||
wrapProgram $out/bin/monolisa-nerdfont-patch \
|
wrapProgram $out/bin/monolisa-nerdfont-patch \
|
||||||
--set PATH ${lib.makeBinPath [fontforge]}
|
--set PATH ${lib.makeBinPath (with pkgs; [fontforge])}
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
devShells = eachSystem (_: pkgs:
|
devShells = eachSystem (_: pkgs: {
|
||||||
with pkgs; {
|
default = pkgs.mkShell {
|
||||||
default = mkShell {buildInputs = [fontforge python3 pre-commit];};
|
buildInputs = with pkgs; [fontforge python3 pre-commit];
|
||||||
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
formatter = eachSystem (system: _: alejandra.packages.${system}.default);
|
formatter = eachSystem (system: _: alejandra.packages.${system}.default);
|
||||||
|
|
Loading…
Reference in a new issue