From 61ece2033e7c08bf563ded8e68935c93aa62058b Mon Sep 17 00:00:00 2001 From: Jack Leightcap Date: Sat, 30 Sep 2023 16:20:23 -0400 Subject: [PATCH] atomic-desktop: fetched, pkg-conf failing Signed-off-by: Jack Leightcap --- all-packages.nix | 1 + pkgs/atomic-desktop/default.nix | 29 +++++++++++++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 pkgs/atomic-desktop/default.nix diff --git a/all-packages.nix b/all-packages.nix index 1c9d21ad..f7868352 100644 --- a/all-packages.nix +++ b/all-packages.nix @@ -8,6 +8,7 @@ in rec { atomic-cli = callPackage ./pkgs/atomic-cli {}; atomic-server = callPackage ./pkgs/atomic-server {}; + atomic-desktop = callPackage ./pkgs/atomic-desktop {}; flarum = callPackage ./pkgs/flarum {}; gnunet-messenger-cli = callPackage ./pkgs/gnunet-messenger-cli {}; kikit = callPackage ./pkgs/kikit {}; diff --git a/pkgs/atomic-desktop/default.nix b/pkgs/atomic-desktop/default.nix new file mode 100644 index 00000000..63cd3d60 --- /dev/null +++ b/pkgs/atomic-desktop/default.nix @@ -0,0 +1,29 @@ +{ fetchFromGitHub, rustPlatform, stdenv, lib, pkg-config, glib, ... }: + +rustPlatform.buildRustPackage rec { + pname = "atomic-server-tauri"; + version = "0.34.5"; + + src = fetchFromGitHub { + owner = "atomicdata-dev"; + repo = "atomic-server"; + rev = "v${version}"; + hash = "sha256-rqucTVvlXe9CXPsZ2cNzyDK9onXw/H96PzWpTR7Fdl4="; + }; + + sourceRoot = "${src.name}/desktop"; + + nativeBuildInputs = [ + pkg-config + glib # FIXME(jl): is this a runtime dep? + ]; + + cargoHash = "sha256-5N6P2oHw/sTGUrLdw2bCw8mNHy5OxFPUhUoQEWkwkm4="; + + meta = with lib; { + description = ""; + homepage = ""; + license = licenses.mit; + maintainers = with maintainers; [ ]; + }; +}