2023-11-23 14:31:33 +03:00
|
|
|
{ self, ... }: {
|
|
|
|
perSystem = { self', pkgs, ... }:
|
|
|
|
let
|
|
|
|
inherit (self.inputs) floco;
|
2023-11-29 23:37:07 +03:00
|
|
|
hooks = {
|
|
|
|
prepare = prefix: ''
|
|
|
|
cp -f ${self'.packages.nixpkgs-data.lib} ${prefix}/lib.json
|
|
|
|
cp -f ${self'.packages.nixpkgs-data.trivial_builders} ${prefix}/trivial-builders.json
|
|
|
|
cp -f ${self'.packages.nixpkgs-data.build_support} ${prefix}/build_support.json
|
|
|
|
cp -f ${self'.packages.builtins-data} ${prefix}/builtins.json
|
|
|
|
'';
|
|
|
|
};
|
2023-11-23 14:31:33 +03:00
|
|
|
base = pkgs.callPackage ./default.nix {
|
2023-11-29 23:37:07 +03:00
|
|
|
inherit floco hooks;
|
2023-11-23 14:31:33 +03:00
|
|
|
};
|
2023-11-28 19:28:51 +03:00
|
|
|
in
|
|
|
|
{
|
2023-11-23 14:31:33 +03:00
|
|
|
packages = { ui = base.pkg.global; };
|
|
|
|
devShells.ui = pkgs.callPackage ./shell.nix {
|
2023-11-29 23:37:07 +03:00
|
|
|
inherit pkgs hooks;
|
2023-11-23 14:31:33 +03:00
|
|
|
inherit (base) fmod pkg;
|
2023-12-22 22:34:22 +03:00
|
|
|
inherit (self'.packages) data-json pasta-meta;
|
2023-11-23 14:31:33 +03:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|