mirror of
https://github.com/hsjobeki/noogle.git
synced 2024-12-25 23:13:30 +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 ];
|
|
};
|
|
};
|
|
}
|