diff options
Diffstat (limited to 'flake.nix')
| -rw-r--r-- | flake.nix | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..2fdcd40 --- /dev/null +++ b/flake.nix @@ -0,0 +1,23 @@ +{ + description = "Terminal Spreadsheet calculator"; + + inputs = { + nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable"; + }; + + outputs = { self, nixpkgs }: + let + pkgs = import nixpkgs { system = "x86_64-linux"; }; + in + { + packages.x86_64-linux.default = pkgs.rustPlatform.buildRustPackage rec { + pname = "neosheet"; + version = "0.1.0"; + src = ./.; + cargoLock.lockFile = ./Cargo.lock; + nativeBuildInputs = with pkgs; [ pkg-config luajit ]; + buildInputs = with pkgs; [ luajit ]; + RUST_BACKTRACE = 1; + }; + }; +} |