From c0b7669f2232992f1cb2d0af588e5089d278c474 Mon Sep 17 00:00:00 2001 From: heng30 <2238288979@qq.com> Date: Tue, 23 Jul 2024 01:11:53 +0800 Subject: [PATCH] [*] support build in nixos --- Makefile | 3 +++ shell.nix | 5 +++++ src/version.rs | 2 +- 3 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 shell.nix diff --git a/Makefile b/Makefile index 0d18c99..8130b60 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/shell.nix b/shell.nix new file mode 100644 index 0000000..9a95e0c --- /dev/null +++ b/shell.nix @@ -0,0 +1,5 @@ +{ pkgs ? import { } }: +pkgs.mkShell { + packages = [ pkgs.libGL.dev ]; + inputsFrom = [ pkgs.libGL.dev ]; +} diff --git a/src/version.rs b/src/version.rs index 8f0f17e..92a3a7e 100644 --- a/src/version.rs +++ b/src/version.rs @@ -1 +1 @@ -pub static VERSION: &str = "v0.9.6"; \ No newline at end of file +pub static VERSION: &str = "v1.0.0"; \ No newline at end of file