Skip to content

Commit

Permalink
chore: working nix build
Browse files Browse the repository at this point in the history
  • Loading branch information
frectonz committed Jun 19, 2024
1 parent 7d6f70b commit a08ff5d
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 20 deletions.
23 changes: 8 additions & 15 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ warp = "0.3.7"
open = "3.2.0"
async-trait = "0.1.80"
futures = "0.3.30"
libsql = { version = "0.4.0", features = ["remote"] }
libsql = { git = "https://github.com/tursodatabase/libsql.git", features = ["remote"] }

[profile.release]
strip = true
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ After downloading the ZIP archive, you can extract it and get the binary.
If you are using [Nix](https://nixos.org/), to build it from source.

```bash
nix shell github:frectonz/sqlite-studio # currently broken, download the pre built binary instead
sqlite-studio <sqlite_db>
nix shell github:frectonz/sqlite-studio
sqlite-studio [sqlite_db]
```

## Contributing
Expand Down
7 changes: 5 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,10 @@
(craneLib.filterCargoSources path type)
;
};
commonArgs = { inherit src; };
commonArgs = {
inherit src;
buildInputs = [ pkgs.git ];
};

ui = pkgs.buildNpmPackage {
pname = "ui";
Expand All @@ -61,7 +64,7 @@
name = "sqlite-studio";
tag = "latest";
created = "now";
config.Cmd = [ "${bin}/bin/sqlite-studio" "preview" "--address=0.0.0.0:3030" ];
config.Cmd = [ "${bin}/bin/sqlite-studio" "--address=0.0.0.0:3030" "sqlite" "preview" ];
config.Expose = "3030";
};
in
Expand Down

0 comments on commit a08ff5d

Please sign in to comment.