delegate pin management to tack

This commit is contained in:
atagen 2026-05-29 00:25:36 +10:00
parent 070c3f0a7f
commit 9b2604da81
8 changed files with 402 additions and 274 deletions

View file

@ -1,20 +1,22 @@
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
nix-systems.url = "github:nix-systems/default-linux";
unf.url = "git+https://git.atagen.co/atagen/unf";
};
outputs =
inputs:
with inputs;
{ self, ... }@args:
let
inputs = import ./.tack { overrides = args.tackOverrides or { }; };
inherit (inputs)
nixpkgs
nix-systems
tack
unf
;
version = builtins.toString self.lastModified;
forEachSystem =
function:
nixpkgs.lib.genAttrs (import nix-systems) (
system: function nixpkgs.legacyPackages.${system} system
);
tackFor = system: tack.packages.${system}.default;
in
{
devShells = forEachSystem (
@ -28,9 +30,10 @@
);
packages = forEachSystem (
pkgs: _: {
pkgs: system: {
default = pkgs.callPackage ./nix/default.nix {
inherit version;
tack = tackFor system;
};
docs = pkgs.callPackage unf.lib.pak-chooie {
inherit self;
@ -55,9 +58,11 @@
in
{
imports = [ ./nix/module.nix ];
programs.meat.tack = lib.mkDefault (tackFor pkgs.stdenv.hostPlatform.system);
programs.meat.package = self.packages.${pkgs.stdenv.hostPlatform.system}.default.override {
differ = cfg.differ;
monitor = cfg.monitor;
tack = cfg.tack;
};
};