summary refs log tree commit diff
path: root/pkgs/applications/science/misc
diff options
context:
space:
mode:
authorfigsoda <figsoda@pm.me>2023-08-06 14:02:52 -0400
committerAnderson Torres <torres.anderson.85@protonmail.com>2023-08-08 14:51:53 +0000
commitfba2eab4c00006d2e1b0ff1bf11b31f38e38962d (patch)
tree85adc2b7b0aa773a00159a5b33e2e21e3516272c /pkgs/applications/science/misc
parent9d6cac3e53c585c9bc468b3e330fc2de183cf5f0 (diff)
reason-shell: init at 0.3.10
https://github.com/jaywonchung/reason
Diffstat (limited to 'pkgs/applications/science/misc')
-rw-r--r--pkgs/applications/science/misc/reason-shell/default.nix40
1 files changed, 40 insertions, 0 deletions
diff --git a/pkgs/applications/science/misc/reason-shell/default.nix b/pkgs/applications/science/misc/reason-shell/default.nix
new file mode 100644
index 0000000000000..aa1544669ed8a
--- /dev/null
+++ b/pkgs/applications/science/misc/reason-shell/default.nix
@@ -0,0 +1,40 @@
+{ lib
+, rustPlatform
+, fetchFromGitHub
+, pkg-config
+, openssl
+, stdenv
+, darwin
+}:
+
+rustPlatform.buildRustPackage rec {
+  pname = "reason";
+  version = "0.3.10";
+
+  src = fetchFromGitHub {
+    owner = "jaywonchung";
+    repo = "reason";
+    rev = "v${version}";
+    hash = "sha256-oytRquZJgb1sfpZil1bSGwIIvm+5N4mkVmIMzWyzDco=";
+  };
+
+  cargoHash = "sha256-4AEuFSM2dY6UjjIFRU8ipkRMoEb2LjnOr3H6rZrLokE=";
+
+  nativeBuildInputs = [
+    pkg-config
+  ];
+
+  buildInputs = [
+    openssl
+  ] ++ lib.optionals stdenv.isDarwin [
+    darwin.apple_sdk.frameworks.CoreServices
+  ];
+
+  meta = with lib; {
+    description = "A shell for research papers";
+    homepage = "https://github.com/jaywonchung/reason";
+    changelog = "https://github.com/jaywonchung/reason/releases/tag/${src.rev}";
+    license = licenses.mit;
+    maintainers = with maintainers; [ figsoda ];
+  };
+}