flakes/flake.nix

56 lines
1.3 KiB
Nix

{
description = "Projects packaged by 4o1x5";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
crane.url = "github:ipetkov/crane";
flake-utils.url = "github:numtide/flake-utils";
};
outputs =
{
self,
nixpkgs,
crane,
flake-utils,
...
}:
flake-utils.lib.eachDefaultSystem (
system:
let
pkgs = nixpkgs.legacyPackages.${system};
lib = pkgs.lib;
stdenv = pkgs.stdenv;
craneLib = crane.mkLib pkgs;
in
{
packages = {
jellyfin-tui = import ./packages/jellyfin-tui.nix {
inherit pkgs craneLib;
};
logseq-publish-spa = import ./packages/logseq-spa.nix {
inherit pkgs lib stdenv;
};
};
templates = {
elixir-devshell = {
description = " A basic developer shell for elixir";
path = ./templates/devshells/elixir;
};
};
apps = {
jellyfin-tui = {
type = "app";
program = "${self.packages.${system}.jellyfin-tui}/bin/jellyfin-tui";
};
logseq-publish-spa = {
type = "app";
program = "${self.packages.${system}.logseq-publish-spa}/bin/logseq-publish-spa";
};
};
}
);
}