aboutsummaryrefslogtreecommitdiffstats
path: root/flake.nix
diff options
context:
space:
mode:
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix31
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}";
+ });
+ });
+}