diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..c5f5d4d --- /dev/null +++ b/flake.lock @@ -0,0 +1,26 @@ +{ + "nodes": { + "nixpkgs": { + "locked": { + "lastModified": 1668199800, + "narHash": "sha256-qnEeVo88H8an0Wds9kBSxWlGCa0vY5EgEswnQUZnXmc=", + "owner": "nixos", + "repo": "nixpkgs", + "rev": "98bb201bbfba99003e6cd5f85c13c46050fb8ee8", + "type": "github" + }, + "original": { + "owner": "nixos", + "repo": "nixpkgs", + "type": "github" + } + }, + "root": { + "inputs": { + "nixpkgs": "nixpkgs" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..6336a8d --- /dev/null +++ b/flake.nix @@ -0,0 +1,21 @@ +{ + description = "xplr - A hackable, minimal, fast TUI file explorer"; + + inputs = { + nixpkgs.url = "github:nixos/nixpkgs"; + }; + + outputs = { self, nixpkgs }: + { + packages.x86_64-linux.default = + with import nixpkgs { system = "x86_64-linux"; }; + + rustPlatform.buildRustPackage rec { + name = "xplr"; + src = ./.; + cargoLock = { + lockFile = ./Cargo.lock; + }; + }; + }; +}