emotes/flake.nix
2024-04-24 22:50:18 -04:00

31 lines
No EOL
665 B
Nix

{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
};
outputs = inputs@{ nixpkgs, ... }: let
systems = [ "aarch64-linux" "x86_64-linux" ];
forAllSystems = nixpkgs.lib.genAttrs systems;
in {
nixosModules = {
akkoma = import ./akkoma.nix;
};
packages = forAllSystems (system: let
pkgs = nixpkgs.legacyPackages.${system};
in {
mkEmotePack = {
src,
name,
version ? "v0.0.1",
convertSVGs ? false
}: pkgs.stdenvNoCC.mkDerivation {
inherit src name version;
buildPhase = ''
cp -r $src/ $out/
'';
};
});
};
}