diff options
| author | Jamie Quigley <jamie@quigley.xyz> | 2023-02-15 09:04:07 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-02-15 09:04:07 +0000 |
| commit | b2a0986ca61f8557f51b36f2cdc045143788ae12 (patch) | |
| tree | 975476ab9e438958f9b1281c469c489a606e9dd2 /flake.nix | |
| parent | Add support for generic database in AppState (#711) (diff) | |
| download | atuin-b2a0986ca61f8557f51b36f2cdc045143788ae12.zip | |
Add nix files and install instructions (#477)
Diffstat (limited to 'flake.nix')
| -rw-r--r-- | flake.nix | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix new file mode 100644 index 00000000..8a1f2a14 --- /dev/null +++ b/flake.nix @@ -0,0 +1,31 @@ +{ + 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}"; + }); + }); +} |
