2024-09-16 11:00:04 +00:00
|
|
|
{
|
|
|
|
inputs = {
|
|
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
|
|
flake-utils.url = "github:numtide/flake-utils";
|
2024-10-26 23:42:32 +00:00
|
|
|
petalpkgs.url = "git+https://cl.forkos.org/nixpkgs";
|
2024-09-16 11:00:04 +00:00
|
|
|
};
|
|
|
|
|
2024-10-26 23:42:32 +00:00
|
|
|
outputs = { self, nixpkgs, flake-utils, petalpkgs }:
|
2024-09-16 11:00:04 +00:00
|
|
|
flake-utils.lib.eachDefaultSystem (system:
|
|
|
|
let pkgs = import nixpkgs { inherit system; };
|
|
|
|
in {
|
|
|
|
# For local development...
|
2024-10-05 18:45:39 +00:00
|
|
|
devShell = pkgs.mkShell {
|
|
|
|
LD_LIBRARY_PATH = pkgs.lib.makeLibraryPath [ pkgs.stdenv.cc.cc.lib ];
|
|
|
|
|
|
|
|
buildInputs = with pkgs; [ bun ];
|
2024-10-26 23:42:32 +00:00
|
|
|
|
|
|
|
shellHook = ''
|
|
|
|
ln -sf ${petalpkgs.path} .petalpkgs
|
|
|
|
'';
|
2024-10-05 18:45:39 +00:00
|
|
|
};
|
2024-09-16 11:00:04 +00:00
|
|
|
|
|
|
|
# ... and remote deployment.
|
|
|
|
# packages = {};
|
|
|
|
|
|
|
|
});
|
|
|
|
}
|