This repository has been archived on 2024-10-13. You can view files and clone it, but cannot push or open issues or pull requests.
nix-packages/flake.nix

124 lines
6 KiB
Nix
Raw Normal View History

2022-06-11 12:32:09 +00:00
{
description = "Lottes nix packages";
inputs = {
2022-07-08 10:46:38 +00:00
nixpkgs.url = "github:NixOS/nixpkgs";
2023-03-10 08:06:28 +00:00
flake-utils.url = "github:DarkKirb/flake-utils";
2023-01-16 09:02:58 +00:00
attic = {
url = "github:zhaofengli/attic";
2023-03-10 08:06:28 +00:00
inputs.nixpkgs.follows = "nixpkgs";
2023-01-16 09:02:58 +00:00
inputs.flake-utils.follows = "flake-utils";
};
flake-compat = {
url = "github:edolstra/flake-compat";
flake = false;
};
2023-03-10 08:06:28 +00:00
mautrix-cleanup = {
url = "github:DarkKirb/mautrix-cleanup";
inputs.nixpkgs.follows = "nixpkgs";
inputs.flake-utils.follows = "flake-utils";
};
2022-06-11 12:32:09 +00:00
};
2022-06-13 05:53:33 +00:00
outputs = {
self,
nixpkgs,
flake-utils,
...
} @ inputs:
2022-11-27 14:06:17 +00:00
flake-utils.lib.eachSystem ["aarch64-darwin" "aarch64-linux" "x86_64-darwin" "x86_64-linux" "riscv64-linux"] (
2022-06-13 05:53:33 +00:00
system: let
2022-07-03 09:58:04 +00:00
pkgs = import nixpkgs {
inherit system;
2022-09-25 13:57:21 +00:00
config.allowUnfree = true;
2022-11-28 13:33:03 +00:00
config.allowUnsupportedSystem = true;
2022-07-03 09:58:04 +00:00
};
2022-09-25 13:06:44 +00:00
inherit (pkgs) lib;
nur = import ./default.nix {inherit pkgs;};
packages = lib.filterAttrs (n: _: n != "overlays" && n != "modules" && n != "lib") nur;
2022-06-13 05:53:33 +00:00
in rec {
2022-06-11 12:32:09 +00:00
formatter = pkgs.alejandra;
devShells.default = pkgs.mkShell {
nativeBuildInputs = with pkgs; [
statix
nix-prefetch
2022-06-11 12:32:09 +00:00
];
};
2022-06-11 12:36:59 +00:00
packages =
{
akkoma = pkgs.callPackage ./akkoma {};
pleroma-fe = pkgs.callPackage ./akkoma/pleroma-fe {};
admin-fe = pkgs.callPackage ./akkoma/admin-fe {};
emoji-lotte = pkgs.callPackage ./art/emoji/lotte {};
emoji-volpeon-blobfox = pkgs.callPackage ./art/emoji/volpeon/blobfox.nix {};
emoji-volpeon-blobfox-flip = pkgs.callPackage ./art/emoji/volpeon/blobfox_flip.nix {};
emoji-volpeon-bunhd = pkgs.callPackage ./art/emoji/volpeon/bunhd.nix {};
emoji-volpeon-bunhd-flip = pkgs.callPackage ./art/emoji/volpeon/bunhd_flip.nix {};
emoji-volpeon-drgn = pkgs.callPackage ./art/emoji/volpeon/drgn.nix {};
emoji-volpeon-fox = pkgs.callPackage ./art/emoji/volpeon/fox.nix {};
emoji-volpeon-gphn = pkgs.callPackage ./art/emoji/volpeon/gphn.nix {};
emoji-volpeon-raccoon = pkgs.callPackage ./art/emoji/volpeon/raccoon.nix {};
emoji-volpeon-vlpn = pkgs.callPackage ./art/emoji/volpeon/vlpn.nix {};
emoji-caro = pkgs.callPackage ./art/emoji/caro {};
lotte-art = pkgs.callPackage ./art/lotte {};
alco-sans = pkgs.callPackage ./fonts/kreative/alco-sans.nix {};
constructium = pkgs.callPackage ./fonts/kreative/constructium.nix {};
fairfax = pkgs.callPackage ./fonts/kreative/fairfax.nix {};
fairfax-hd = pkgs.callPackage ./fonts/kreative/fairfax-hd.nix {};
kreative-square = pkgs.callPackage ./fonts/kreative/kreative-square.nix {};
nasin-nanpa = pkgs.callPackage ./fonts/nasin-nanpa {};
matrix-media-repo = pkgs.callPackage ./matrix/matrix-media-repo {};
mautrix-discord = pkgs.callPackage ./matrix/mautrix-discord {};
mautrix-whatsapp = pkgs.callPackage ./matrix/mautrix-whatsapp {};
mautrix-signal = pkgs.callPackage ./matrix/mautrix-signal {};
mautrix-telegram = pkgs.callPackage ./matrix/mautrix-telegram {};
python-mautrix = pkgs.python3Packages.callPackage ./python/mautrix.nix {};
python-tulir-telethon = pkgs.python3Packages.callPackage ./python/tulir-telethon.nix {};
papermc = pkgs.callPackage ./minecraft/papermc {};
python-plover-stroke = pkgs.python3Packages.callPackage ./plover/plover-stroke.nix {};
python-rtf-tokenize = pkgs.python3Packages.callPackage ./python/rtf-tokenize.nix {};
plover = pkgs.python3Packages.callPackage ./plover/plover {};
plover-plugins-manager = pkgs.python3Packages.callPackage ./plover/plover-plugins-manager.nix {};
python-simplefuzzyset = pkgs.python3Packages.callPackage ./python/simplefuzzyset.nix {};
plover-plugin-emoji = pkgs.python3Packages.callPackage ./plover/plover-emoji.nix {};
plover-plugin-tapey-tape = pkgs.python3Packages.callPackage ./plover/plover-tapey-tape.nix {};
plover-plugin-yaml-dictionary = pkgs.python3Packages.callPackage ./plover/plover-yaml-dictionary.nix {};
plover-plugin-machine-hid = pkgs.python3Packages.callPackage ./plover/plover-machine-hid.nix {};
plover-plugin-rkb1-hid = pkgs.python3Packages.callPackage ./plover/plover-rkb1-hid.nix {};
plover-dict-didoesdigital = pkgs.callPackage ./plover/didoesdigital-dictionary.nix {};
miifox-net = pkgs.python3Packages.callPackage ./web/miifox-net.nix {};
old-homepage = pkgs.callPackage ./web/old-homepage.nix {};
python-instagram = pkgs.python3Packages.callPackage ./python/instagram.nix {};
inherit (inputs.attic.packages.${pkgs.system}) attic attic-client attic-server;
element-web = pkgs.callPackage ./matrix/element-web {};
mautrix-cleanup = inputs.mautrix-cleanup.packages.${pkgs.system}.default;
2023-04-08 18:11:07 +00:00
woodpecker-agent = pkgs.callPackage ./ci/woodpecker/agent.nix {};
woodpecker-cli = pkgs.callPackage ./ci/woodpecker/cli.nix {};
woodpecker-frontend = pkgs.callPackage ./ci/woodpecker/frontend.nix {};
woodpecker-server = pkgs.callPackage ./ci/woodpecker/server.nix {};
}
// (
if system == "riscv64-linux"
then rec {
vf2Kernel = pkgs.callPackage ./linux/vf2 {kernelPatches = [];};
vf2KernelPackages = pkgs.linuxPackagesFor vf2Kernel;
}
else {}
);
overlays = import ./overlays;
modules = import ./modules;
lib = import ./lib {inherit pkgs;};
2022-06-11 12:36:59 +00:00
2022-06-18 07:56:50 +00:00
hydraJobs =
2023-03-03 09:13:30 +00:00
if (system == "x86_64-linux") || (system == "aarch64-linux")
2022-06-18 07:56:50 +00:00
then {
2022-07-03 09:58:04 +00:00
inherit packages devShells formatter;
2022-06-18 07:56:50 +00:00
}
else {};
2022-06-11 12:32:09 +00:00
}
);
}