Skip to content

Commit

Permalink
Merge pull request #62 from ngi-nix/moss/atomic-data-lib
Browse files Browse the repository at this point in the history
Init: {atomic-server, atomic-cli} at 0.34.5
  • Loading branch information
jasonodoom authored Sep 27, 2023
2 parents 8fc379e + 7df5566 commit da86490
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 0 deletions.
2 changes: 2 additions & 0 deletions all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
self = let
pretalxPlugins = lib.recurseIntoAttrs (callPackage ./pkgs/pretalx/plugins.nix {});
in rec {
atomic-cli = callPackage ./pkgs/atomic-cli {};
atomic-server = callPackage ./pkgs/atomic-server {};
flarum = callPackage ./pkgs/flarum {};
gnunet-messenger-cli = callPackage ./pkgs/gnunet-messenger-cli {};
kikit = callPackage ./pkgs/kikit {};
Expand Down
26 changes: 26 additions & 0 deletions pkgs/atomic-cli/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
lib,
rustPlatform,
fetchCrate,
stdenv,
}:
rustPlatform.buildRustPackage rec {
pname = "atomic-cli";
version = "0.34.5";

src = fetchCrate {
inherit pname version;
hash = "sha256-97JltSMuNETcgm5jfb2tOjwgw87J0u8qs+TIViT0PBo=";
};

cargoHash = "sha256-NehXV26PBOD+V1KZo8I2EQ7Hp32ccT6e51v5qESj+l4=";

doCheck = false; # TODO(jl): broken upstream

meta = with lib; {
description = "CLI tool to create, store, query, validate and convert Atomic Data";
homepage = "https://crates.io/crates/atomic-cli";
license = licenses.mit;
maintainers = with maintainers; [];
};
}
26 changes: 26 additions & 0 deletions pkgs/atomic-server/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
lib,
rustPlatform,
fetchCrate,
stdenv,
}:
rustPlatform.buildRustPackage rec {
pname = "atomic-server";
version = "0.34.5";

src = fetchCrate {
inherit pname version;
hash = "sha256-X7G/EYhs7CBRZ+7oVKyQRk5WDyFKnQmi8aLbi/KIwgI=";
};

cargoHash = "sha256-mox1MdWgCgzytjqAPu1xHKWP8D5oRnXvMyqRbZXM9Pc=";

doCheck = false; # TODO(jl): broken upstream

meta = with lib; {
description = "A Rust library to serialize, parse, store, convert, validate, edit, fetch and store Atomic Data. Powers both atomic-cli and atomic-server.";
homepage = "docs.atomicdata.dev";
license = licenses.mit;
maintainers = with maintainers; [];
};
}

0 comments on commit da86490

Please sign in to comment.