mirror of
https://github.com/hsjobeki/noogle.git
synced 2024-12-30 17:32:47 +03:00
26 lines
549 B
Nix
26 lines
549 B
Nix
_: {
|
|
perSystem = { self', inputs', pkgs, ... }:
|
|
let
|
|
builtins-data = pkgs.stdenv.mkDerivation {
|
|
pname = "builtins-data";
|
|
version = "0.1.0";
|
|
src = ./.;
|
|
nativeBuildInputs = [ pkgs.nodejs_20 ];
|
|
buildPhase = ''
|
|
npm run build
|
|
'';
|
|
installPhase = ''
|
|
cat data.json > $out
|
|
'';
|
|
};
|
|
in
|
|
{
|
|
packages = {
|
|
inherit builtins-data;
|
|
};
|
|
devShells.builtins-data = pkgs.mkShell {
|
|
inputsFrom = [ builtins-data ];
|
|
};
|
|
};
|
|
}
|