From 5e3401722507fbb7ba17dac503366d02a9128faf Mon Sep 17 00:00:00 2001 From: mark Date: Sat, 14 Oct 2023 09:13:54 -0700 Subject: [PATCH] Added nix package --- .gitignore | 3 ++- default.nix | 19 +++++++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 default.nix diff --git a/.gitignore b/.gitignore index 5cdd539..25c4c1c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /target /src/target -/pkg \ No newline at end of file +/pkg +/result \ No newline at end of file diff --git a/default.nix b/default.nix new file mode 100644 index 0000000..6ec622a --- /dev/null +++ b/default.nix @@ -0,0 +1,19 @@ +{ lib, fetchgit, rustPlatform }: +rustPlatform.buildRustPackage rec { + pname = "daisy"; + version = "1.1.4"; + cargoLock.lockFile = src + /Cargo.lock; + + src = fetchgit { + url = "https://github.com/rm-dr/daisy.git"; + rev = "7658ff76ef2d2fab540dc8b8d4ee24077daebd01"; + sha256 = "sha256-aENuKtE1+tBRN0HZzRr8Gk+dVEYTiP6FNRz817Sk88o="; + }; + + meta = with lib; { + description = "A pretty command-line scientific calculator"; + homepage = "https://github.com/rm-dr/daisy"; + license = licenses.GPL; + maintainers = [ maintainers.tailhook ]; + }; +} \ No newline at end of file