1
Fork 0
shimmeringmoon/flake.nix

70 lines
1.7 KiB
Nix
Raw Normal View History

{
inputs = {
2024-09-23 19:46:53 +02:00
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
2025-02-11 21:38:56 +01:00
shimmeringdarkness.url = "git+ssh://forgejo@ssh.git.moonythm.dev/prescientmoon/shimmeringdarkness.git";
shimmeringdarkness.flake = false;
};
outputs =
2024-09-23 19:46:53 +02:00
inputs:
2025-02-12 05:52:24 +01:00
{
overlays.default = (import ./nix/overlay.nix { inherit inputs; });
}
// inputs.flake-utils.lib.eachSystem (with inputs.flake-utils.lib.system; [ x86_64-linux ]) (
system:
let
2025-02-12 05:52:24 +01:00
pkgs = import inputs.nixpkgs {
inherit system;
overlays = [ inputs.self.overlays.default ];
};
in
{
2024-10-04 15:17:15 +02:00
packages = {
2025-02-12 05:52:24 +01:00
inherit (pkgs) shimmeringmoon;
default = pkgs.shimmeringmoon;
2024-09-09 18:06:07 +02:00
};
2024-10-04 15:17:15 +02:00
# {{{ Devshell
2024-09-23 21:12:04 +02:00
devShell = pkgs.mkShell rec {
2025-02-11 18:35:38 +01:00
nativeBuildInputs = [
pkgs.rustc
pkgs.cargo
pkgs.rustfmt
pkgs.clippy
pkgs.rust-analyzer
2024-09-24 22:49:09 +02:00
pkgs.ruff
pkgs.imagemagick
pkgs.pkg-config
2024-09-23 19:46:53 +02:00
];
2024-10-04 15:17:15 +02:00
2024-09-23 19:46:53 +02:00
buildInputs = with pkgs; [
python3
2024-09-23 19:46:53 +02:00
freetype
fontconfig
sqlite
openssl
];
2025-02-12 05:52:24 +01:00
LD_LIBRARY_PATH = pkgs.lib.makeLibraryPath buildInputs;
SHIMMERING_FONT_DIR = pkgs.shimmering-fonts;
SHIMMERING_CC_DIR = pkgs.cc-data;
SHIMMERING_PRIVATE_CONFIG_DIR = pkgs.private-config;
};
2024-10-04 15:17:15 +02:00
# }}}
}
);
# {{{ Caching and whatnot
nixConfig = {
extra-substituters = [ "https://nix-community.cachix.org" ];
extra-trusted-public-keys = [
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
];
};
# }}}
}