noogle/scripts/flake-module.nix

26 lines
549 B
Nix
Raw Permalink Normal View History

2023-11-29 23:37:07 +03:00
_: {
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 ];
};
};
}