delegate pin management to tack
This commit is contained in:
parent
070c3f0a7f
commit
c42b5abba8
5 changed files with 35 additions and 163 deletions
|
|
@ -3,6 +3,7 @@
|
|||
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
|
||||
nix-systems.url = "github:nix-systems/default-linux";
|
||||
unf.url = "git+https://git.atagen.co/atagen/unf";
|
||||
tack.url = "github:manic-systems/tack";
|
||||
};
|
||||
|
||||
outputs =
|
||||
|
|
@ -15,6 +16,7 @@
|
|||
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;
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue