mirror of https://github.com/rm-dr/daisy
commit
1fae11a380
|
@ -29,8 +29,4 @@ What to do
|
||||||
- `cargo publish`
|
- `cargo publish`
|
||||||
- Update web demo & pull server (`make docker`)
|
- Update web demo & pull server (`make docker`)
|
||||||
- Update aur package
|
- Update aur package
|
||||||
|
- Update `default.nix` (test with `make nix`)
|
||||||
Test `default.nix` with
|
|
||||||
``sh
|
|
||||||
nix-build -E 'let pkgs = import <nixpkgs> { }; in pkgs.callPackage ./default.nix {}'
|
|
||||||
``
|
|
|
@ -28,7 +28,7 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "daisycalc"
|
name = "daisycalc"
|
||||||
version = "1.1.6"
|
version = "1.1.7"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"cfg-if",
|
"cfg-if",
|
||||||
"num",
|
"num",
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "daisycalc"
|
name = "daisycalc"
|
||||||
version = "1.1.6"
|
version = "1.1.7"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
build = "buildscript/main.rs"
|
build = "buildscript/main.rs"
|
||||||
license = "GPL-3.0-only"
|
license = "GPL-3.0-only"
|
||||||
|
|
3
Makefile
3
Makefile
|
@ -1,6 +1,9 @@
|
||||||
release:
|
release:
|
||||||
cargo build --release
|
cargo build --release
|
||||||
|
|
||||||
|
nix:
|
||||||
|
nix-build -E 'let pkgs = import <nixpkgs> { }; in pkgs.callPackage ./default.nix {}'
|
||||||
|
|
||||||
test:
|
test:
|
||||||
cargo test
|
cargo test
|
||||||
|
|
||||||
|
|
10
default.nix
10
default.nix
|
@ -1,17 +1,17 @@
|
||||||
{ lib, fetchgit, rustPlatform }:
|
{ lib, fetchgit, rustPlatform }:
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage rec {
|
||||||
pname = "daisy";
|
pname = "daisy";
|
||||||
version = "1.1.6";
|
version = "1.1.7";
|
||||||
cargoLock.lockFile = src + /Cargo.lock;
|
cargoLock.lockFile = src + /Cargo.lock;
|
||||||
|
|
||||||
src = fetchgit {
|
src = builtins.fetchGit {
|
||||||
url = "https://github.com/rm-dr/daisy.git";
|
url = "https://github.com/rm-dr/daisy.git";
|
||||||
rev = "v${version}";
|
ref = "refs/tags/v${version}";
|
||||||
sha256 = "";
|
#rev = ""; Ideally, we'd have a hash here, but that would make git history messy.
|
||||||
};
|
};
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "A pretty command-line scientific calculator";
|
description = "A general-purpose scientific calculator";
|
||||||
homepage = "https://github.com/rm-dr/daisy";
|
homepage = "https://github.com/rm-dr/daisy";
|
||||||
#license = licenses.GPL;
|
#license = licenses.GPL;
|
||||||
maintainers = [ maintainers.tailhook ];
|
maintainers = [ maintainers.tailhook ];
|
||||||
|
|
Loading…
Reference in New Issue