floral.systems/flake.nix

28 lines
722 B
Nix
Raw Normal View History

2024-09-16 11:00:04 +00:00
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
petalpkgs.url = "git+https://cl.forkos.org/nixpkgs";
2024-09-16 11:00:04 +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...
devShell = pkgs.mkShell {
LD_LIBRARY_PATH = pkgs.lib.makeLibraryPath [ pkgs.stdenv.cc.cc.lib ];
buildInputs = with pkgs; [ bun ];
shellHook = ''
ln -sf ${petalpkgs.path} .petalpkgs
'';
};
2024-09-16 11:00:04 +00:00
# ... and remote deployment.
# packages = {};
});
}