about summary refs log tree commit diff
path: root/pkgs/applications/misc/oranda
diff options
context:
space:
mode:
authorfigsoda <figsoda@pm.me>2023-05-09 19:33:37 -0400
committerfigsoda <figsoda@pm.me>2023-05-09 19:37:44 -0400
commit3c6da3c0d331b6202ecc93c18d13d588b7f6b703 (patch)
treeb3fd4bfbf54429d8778f212029c767efe11f7d76 /pkgs/applications/misc/oranda
parent5d74e13d2c1b0c92e791c8f2f07f58d854a4bd31 (diff)
downloadnixlib-3c6da3c0d331b6202ecc93c18d13d588b7f6b703.tar
nixlib-3c6da3c0d331b6202ecc93c18d13d588b7f6b703.tar.gz
nixlib-3c6da3c0d331b6202ecc93c18d13d588b7f6b703.tar.bz2
nixlib-3c6da3c0d331b6202ecc93c18d13d588b7f6b703.tar.lz
nixlib-3c6da3c0d331b6202ecc93c18d13d588b7f6b703.tar.xz
nixlib-3c6da3c0d331b6202ecc93c18d13d588b7f6b703.tar.zst
nixlib-3c6da3c0d331b6202ecc93c18d13d588b7f6b703.zip
oranda: init at 0.0.3
Diffstat (limited to 'pkgs/applications/misc/oranda')
-rw-r--r--pkgs/applications/misc/oranda/default.nix58
1 files changed, 58 insertions, 0 deletions
diff --git a/pkgs/applications/misc/oranda/default.nix b/pkgs/applications/misc/oranda/default.nix
new file mode 100644
index 000000000000..9bc9d68fb44e
--- /dev/null
+++ b/pkgs/applications/misc/oranda/default.nix
@@ -0,0 +1,58 @@
+{ lib
+, rustPlatform
+, fetchFromGitHub
+, pkg-config
+, bzip2
+, oniguruma
+, openssl
+, xz
+, zstd
+, stdenv
+, darwin
+}:
+
+rustPlatform.buildRustPackage rec {
+  pname = "oranda";
+  version = "0.0.3";
+
+  src = fetchFromGitHub {
+    owner = "axodotdev";
+    repo = "oranda";
+    rev = "v${version}";
+    hash = "sha256-MT0uwLDrofCFyyYiUOogF2kNs6EPS1qxPz0gdK+Tkkg=";
+  };
+
+  cargoHash = "sha256-dAnZc1VvOubfn7mnpttaB6FotN3Xc+t9Qn0n5uzv1Qg=";
+
+  nativeBuildInputs = [
+    pkg-config
+  ];
+
+  buildInputs = [
+    bzip2
+    oniguruma
+    openssl
+    xz
+    zstd
+  ] ++ lib.optionals stdenv.isDarwin [
+    darwin.apple_sdk.frameworks.Security
+  ];
+
+  # requires internet access
+  checkFlags = [
+    "--skip=build"
+  ];
+
+  env = {
+    RUSTONIG_SYSTEM_LIBONIG = true;
+    ZSTD_SYS_USE_PKG_CONFIG = true;
+  };
+
+  meta = with lib; {
+    description = "Generate beautiful landing pages for your developer tools";
+    homepage = "https://github.com/axodotdev/oranda";
+    changelog = "https://github.com/axodotdev/oranda/blob/${src.rev}/CHANGELOG.md";
+    license = with licenses; [ asl20 mit ];
+    maintainers = with maintainers; [ figsoda ];
+  };
+}