mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 14:49:14 +00:00
Refactor using flake-parts (#4)
Reviewed-on: https://git.earth2077.fr/leana/.files/pulls/4 Co-authored-by: Léana 江 <leana.jiang@icloud.com> Co-committed-by: Léana 江 <leana.jiang@icloud.com>
This commit is contained in:
parent
06f76e0a37
commit
db5aaa5811
17 changed files with 343 additions and 294 deletions
|
|
@ -1,53 +1,35 @@
|
|||
{
|
||||
pkgs,
|
||||
unstable,
|
||||
opam-nix,
|
||||
alt-ergo,
|
||||
}:
|
||||
let
|
||||
mkNerdFont = pkgs.callPackage ./mkNerdFont.nix { inherit (unstable) nerd-font-patcher; };
|
||||
perSystem =
|
||||
{ pkgs, ... }:
|
||||
let
|
||||
inherit (pkgs) unstable alt-ergo-pin;
|
||||
in
|
||||
{
|
||||
# Export my package set
|
||||
packages = rec {
|
||||
mkNerdFont = pkgs.callPackage ./mkNerdFont.nix { inherit (unstable) nerd-font-patcher; };
|
||||
|
||||
logisim-evolution = pkgs.callPackage ./logisim-evolution.nix { };
|
||||
hiosevka = pkgs.callPackage ./hiosevka { };
|
||||
hiosevka-nerd-font-mono = mkNerdFont {
|
||||
font = hiosevka;
|
||||
extraArgs = [
|
||||
"--name {/.}-NFM"
|
||||
"--use-single-width-glyphs"
|
||||
];
|
||||
};
|
||||
hiosevka-nerd-font-propo = mkNerdFont {
|
||||
font = hiosevka;
|
||||
extraArgs = [
|
||||
"--name {/.}-NFP"
|
||||
"--variable-width-glyphs"
|
||||
];
|
||||
};
|
||||
altiosevka = pkgs.callPackage ./altiosevka { };
|
||||
|
||||
necrolib = pkgs.callPackage ./necrolib.nix { };
|
||||
|
||||
hiosevka = pkgs.callPackage ./hiosevka { };
|
||||
hiosevka-nerd-font-mono = mkNerdFont {
|
||||
font = hiosevka;
|
||||
extraArgs = [
|
||||
"--name {/.}-NFM"
|
||||
"--use-single-width-glyphs"
|
||||
];
|
||||
};
|
||||
hiosevka-nerd-font-propo = mkNerdFont {
|
||||
font = hiosevka;
|
||||
extraArgs = [
|
||||
"--name {/.}-NFP"
|
||||
"--variable-width-glyphs"
|
||||
];
|
||||
};
|
||||
|
||||
altiosevka = pkgs.callPackage ./altiosevka {};
|
||||
|
||||
why3 = pkgs.callPackage ./why3.nix { inherit alt-ergo; };
|
||||
|
||||
maeel = pkgs.callPackage ./maeel.nix { };
|
||||
in
|
||||
{
|
||||
myPkgs = {
|
||||
inherit
|
||||
logisim-evolution
|
||||
necrolib
|
||||
hiosevka
|
||||
hiosevka-nerd-font-mono
|
||||
hiosevka-nerd-font-propo
|
||||
altiosevka
|
||||
why3
|
||||
maeel
|
||||
;
|
||||
};
|
||||
|
||||
myLib = {
|
||||
inherit mkNerdFont;
|
||||
};
|
||||
logisim-evolution = pkgs.callPackage ./logisim-evolution.nix { };
|
||||
necrolib = pkgs.callPackage ./necrolib.nix { };
|
||||
why3 = pkgs.callPackage ./why3.nix { inherit (alt-ergo-pin) alt-ergo; };
|
||||
maeel = pkgs.callPackage ./maeel.nix { };
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue