mirror of
https://github.com/daylinmorgan/monolisa-nerdfont-patch.git
synced 2024-09-27 20:07:17 -05:00
flake: format nix code
This commit is contained in:
parent
4e9e3abbb3
commit
3dbfeee0df
1 changed files with 29 additions and 41 deletions
40
flake.nix
40
flake.nix
|
@ -13,21 +13,20 @@
|
||||||
}: let
|
}: let
|
||||||
inherit (nixpkgs.lib) genAttrs;
|
inherit (nixpkgs.lib) genAttrs;
|
||||||
forAllSystems = f:
|
forAllSystems = f:
|
||||||
genAttrs
|
genAttrs [
|
||||||
["x86_64-linux" "x86_64-darwin" "aarch64-linux" "aarch64-darwin"]
|
"x86_64-linux"
|
||||||
(system: f nixpkgs.legacyPackages.${system});
|
"x86_64-darwin"
|
||||||
|
"aarch64-linux"
|
||||||
|
"aarch64-darwin"
|
||||||
|
] (system: f nixpkgs.legacyPackages.${system});
|
||||||
in {
|
in {
|
||||||
packages = forAllSystems (
|
packages = forAllSystems (pkgs:
|
||||||
pkgs:
|
|
||||||
with pkgs; {
|
with pkgs; {
|
||||||
default = stdenv.mkDerivation {
|
default = stdenv.mkDerivation {
|
||||||
name = "monolisa-nerdfont-patch";
|
name = "monolisa-nerdfont-patch";
|
||||||
src = ./.;
|
src = ./.;
|
||||||
nativeBuildInputs = [ makeWrapper ];
|
nativeBuildInputs = [makeWrapper];
|
||||||
buildInputs = [
|
buildInputs = [fontforge python3];
|
||||||
fontforge
|
|
||||||
python3
|
|
||||||
];
|
|
||||||
unpackPhase = ":";
|
unpackPhase = ":";
|
||||||
buildPhase = ":";
|
buildPhase = ":";
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
|
@ -39,26 +38,15 @@
|
||||||
'';
|
'';
|
||||||
postFixup = ''
|
postFixup = ''
|
||||||
wrapProgram $out/bin/monolisa-nerdfont-patch \
|
wrapProgram $out/bin/monolisa-nerdfont-patch \
|
||||||
--set PATH ${lib.makeBinPath [
|
--set PATH ${lib.makeBinPath [fontforge]}
|
||||||
fontforge
|
|
||||||
]}
|
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
}
|
});
|
||||||
);
|
|
||||||
|
|
||||||
devShells = forAllSystems (
|
devShells = forAllSystems (pkgs:
|
||||||
pkgs:
|
|
||||||
with pkgs; {
|
with pkgs; {
|
||||||
default = mkShell {
|
default = mkShell {buildInputs = [fontforge python3 pre-commit];};
|
||||||
buildInputs = [
|
});
|
||||||
fontforge
|
|
||||||
python3
|
|
||||||
pre-commit
|
|
||||||
];
|
|
||||||
};
|
|
||||||
}
|
|
||||||
);
|
|
||||||
|
|
||||||
formatter.x86_64-linux = alejandra.packages.x86_64-linux.default;
|
formatter.x86_64-linux = alejandra.packages.x86_64-linux.default;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue