Skip to content

Commit

Permalink
[*] support build in nixos
Browse files Browse the repository at this point in the history
  • Loading branch information
heng30 committed Jul 22, 2024
1 parent cf36a5b commit c0b7669
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ release-local:
build-desktop-release:
$(build-evn) $(run-evn) cargo build --release --bin rssbox-desktop --features=desktop

build-desktop-release-nixos:
nix-shell --run "$(build-evn) $(run-evn) cargo build --release --bin rssbox-desktop --features=desktop"

install-desktop:
cp -f target/release/rssbox-desktop ~/bin/rssbox-desktop

Expand Down
5 changes: 5 additions & 0 deletions shell.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{ pkgs ? import <nixpkgs> { } }:
pkgs.mkShell {
packages = [ pkgs.libGL.dev ];
inputsFrom = [ pkgs.libGL.dev ];
}
2 changes: 1 addition & 1 deletion src/version.rs
Original file line number Diff line number Diff line change
@@ -1 +1 @@
pub static VERSION: &str = "v0.9.6";
pub static VERSION: &str = "v1.0.0";

0 comments on commit c0b7669

Please sign in to comment.