diff options
author | Jörg Thalheim <joerg@thalheim.io> | 2023-11-03 10:00:56 +0100 |
---|---|---|
committer | Jörg Thalheim <Mic92@users.noreply.github.com> | 2023-11-03 15:54:20 +0100 |
commit | 5016616e6bdc347af514110c877cf3635c0020c6 (patch) | |
tree | 08b1e7ebf08daabdff146d18ecffcfc01746a4f5 /pkgs | |
parent | 60602f1d4b7f5bd03776c3bb3d105ccda7d198aa (diff) |
libdeltachat: also install interactive repl
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/development/libraries/libdeltachat/default.nix | 13 | ||||
-rw-r--r-- | pkgs/development/python-modules/deltachat/default.nix | 7 |
2 files changed, 18 insertions, 2 deletions
diff --git a/pkgs/development/libraries/libdeltachat/default.nix b/pkgs/development/libraries/libdeltachat/default.nix index 8d110da2b2f27..d66fa031e2e04 100644 --- a/pkgs/development/libraries/libdeltachat/default.nix +++ b/pkgs/development/libraries/libdeltachat/default.nix @@ -1,4 +1,5 @@ { lib +, rust , stdenv , fetchFromGitHub , cargo @@ -42,6 +43,18 @@ stdenv.mkDerivation rec { }; }; + outputs = [ "bin" "out" ]; + + preBuild = '' + cargo build \ + --target ${rust.envVars.rustHostPlatformSpec} \ + --release \ + -p deltachat-repl \ + --frozen \ + -j $NIX_BUILD_CORES \ + -Z unstable-options --out-dir $bin/bin/ + ''; + nativeBuildInputs = [ cmake perl diff --git a/pkgs/development/python-modules/deltachat/default.nix b/pkgs/development/python-modules/deltachat/default.nix index 034be82d7e391..6e31227e6b339 100644 --- a/pkgs/development/python-modules/deltachat/default.nix +++ b/pkgs/development/python-modules/deltachat/default.nix @@ -56,8 +56,11 @@ buildPythonPackage rec { "deltachat.message" ]; - meta = libdeltachat.meta // { + meta = { description = "Python bindings for the Delta Chat Core library"; homepage = "https://github.com/deltachat/deltachat-core-rust/tree/master/python"; - }; + license = lib.licenses.mpl20; + maintainers = with lib.maintainers; [ dotlambda srapenne ]; + platforms = lib.platforms.unix; +}; } |