diff options
| author | Nathan Reiner <nathan@nathanreiner.xyz> | 2024-12-07 09:54:05 +0100 |
|---|---|---|
| committer | Nathan Reiner <nathan@nathanreiner.xyz> | 2024-12-07 09:54:05 +0100 |
| commit | 80c511045ab4248a88d260ed0be6649196ad4e68 (patch) | |
| tree | 389049bee741a7850cb4669603de309660d4e5e6 /flake.nix | |
| parent | d2ec672eca6d2d5df3da1b2e80573a54cf8c6577 (diff) | |
create flake
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; + }; + }; +} |