2023-02-15 02:04:07 -07:00
|
|
|
{
|
|
|
|
inputs = {
|
|
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
|
|
|
flake-utils.url = "github:numtide/flake-utils";
|
2023-03-01 12:51:31 -07:00
|
|
|
flake-compat = {
|
|
|
|
url = "github:edolstra/flake-compat";
|
|
|
|
flake = false;
|
|
|
|
};
|
2023-02-15 02:04:07 -07:00
|
|
|
};
|
|
|
|
outputs = {
|
|
|
|
self,
|
|
|
|
nixpkgs,
|
|
|
|
flake-utils,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
flake-utils.lib.eachDefaultSystem (system: let
|
|
|
|
pkgs = nixpkgs.outputs.legacyPackages.${system};
|
|
|
|
in {
|
|
|
|
packages.atuin = pkgs.callPackage ./atuin.nix {
|
|
|
|
inherit (pkgs.darwin.apple_sdk.frameworks) Security SystemConfiguration;
|
|
|
|
};
|
|
|
|
packages.default = self.outputs.packages.${system}.atuin;
|
|
|
|
|
|
|
|
devShells.default = self.packages.${system}.default.overrideAttrs (super: {
|
|
|
|
nativeBuildInputs = with pkgs;
|
|
|
|
super.nativeBuildInputs
|
|
|
|
++ [
|
|
|
|
cargo-edit
|
|
|
|
clippy
|
|
|
|
rustfmt
|
|
|
|
];
|
|
|
|
RUST_SRC_PATH = "${pkgs.rustPlatform.rustLibSrc}";
|
|
|
|
});
|
2023-10-29 12:27:52 -06:00
|
|
|
})
|
|
|
|
// {
|
|
|
|
overlays.default = final: prev: {
|
|
|
|
inherit (self.packages.${final.system}) atuin;
|
|
|
|
};
|
|
|
|
};
|
2023-02-15 02:04:07 -07:00
|
|
|
}
|