2024-10-08 23:12:28 +02:00

46 lines
1.1 KiB
Nix

{
# This is the merged library containing your namespaced library as well as all libraries from
# your flake's inputs.
lib
, # Your flake inputs are also available.
inputs
, # The namespace used for your flake, defaulting to "internal" if not set.
namespace
, # Additionally, Snowfall Lib's own inputs are passed. You probably don't need to use this!
snowfall-inputs
, ...
}:
{
# This will be available as `lib.my-namespace.mkPackages`.
mkPackages = {pkgs, ...}:
let
inherit pkgs;
# pkgs = namespace.;
# pkgs = snowfall-inputs.nixpkgs { system = "x86_64-linux"; config.allowUnfree = true; };
baseBackages = [
pkgs.vim
pkgs.nixpkgs-fmt
];
utilPackages = [
pkgs.wget
pkgs.curl
pkgs.git
pkgs.ffmpeg
];
haxeDevelopmentPackages = [
pkgs.haxe
];
in
{
packages = baseBackages ++ utilPackages ++ haxeDevelopmentPackages;
};
# my-scope = {
# # This will be available as `lib.my-namespace.my-scope.my-scoped-helper-function`.
# my-scoped-helper-function = x: x;
# };
}