mirror of
https://github.com/nix-community/noogle.git
synced 2024-11-29 23:02:22 +03:00
26 lines
817 B
Nix
26 lines
817 B
Nix
{ self, ... }: {
|
|
perSystem = { self', pkgs, ... }:
|
|
let
|
|
inherit (self.inputs) floco;
|
|
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
|
|
'';
|
|
};
|
|
base = pkgs.callPackage ./default.nix {
|
|
inherit floco hooks;
|
|
};
|
|
in
|
|
{
|
|
packages = { ui = base.pkg.global; };
|
|
devShells.ui = pkgs.callPackage ./shell.nix {
|
|
inherit pkgs hooks;
|
|
inherit (base) fmod pkg;
|
|
inherit (self'.packages) data-json pasta-meta;
|
|
};
|
|
};
|
|
}
|