mirror of
https://github.com/ellie/atuin.git
synced 2024-08-16 16:30:43 +03:00
32 lines
846 B
Nix
32 lines
846 B
Nix
|
{
|
||
|
inputs = {
|
||
|
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
||
|
flake-utils.url = "github:numtide/flake-utils";
|
||
|
};
|
||
|
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}";
|
||
|
});
|
||
|
});
|
||
|
}
|