2023-08-14 23:08:03 +00:00
|
|
|
{ pkgs, lib }:
|
|
|
|
|
2023-08-18 10:32:31 +00:00
|
|
|
let
|
|
|
|
inherit (pkgs.stdenv) isDarwin;
|
|
|
|
in
|
2023-12-16 23:53:21 +00:00
|
|
|
pkgs.rustPlatform.buildRustPackage {
|
2023-08-14 23:08:03 +00:00
|
|
|
pname = "rexit";
|
2023-12-16 23:53:21 +00:00
|
|
|
version = "1.3.0-unstable";
|
2023-08-14 23:08:03 +00:00
|
|
|
|
2023-08-18 10:32:31 +00:00
|
|
|
src = pkgs.fetchFromGitHub {
|
2024-04-01 18:16:29 +00:00
|
|
|
owner = "nifoc";
|
2023-08-18 10:32:31 +00:00
|
|
|
repo = "Rexit";
|
2024-04-01 18:16:29 +00:00
|
|
|
rev = "8bc9c9f74cf08ee74b701f86f4bc46c04404dd25";
|
|
|
|
hash = "sha256-Q8LsbwHeiBm9Gld6d1c58YM6k62FPSPOjNChVA3R1ns=";
|
2023-08-14 23:08:03 +00:00
|
|
|
};
|
|
|
|
|
2024-04-01 18:16:29 +00:00
|
|
|
cargoSha256 = "sha256-GivHp/+YNGnxo9Sz4XiHEm1F685Rq+9SRcxL0Gz5Qjo=";
|
2023-08-14 23:08:03 +00:00
|
|
|
|
2023-08-18 10:53:51 +00:00
|
|
|
nativeBuildInputs = with pkgs; [ pkg-config ];
|
|
|
|
|
2023-08-18 10:32:31 +00:00
|
|
|
buildInputs = with pkgs; [
|
|
|
|
libiconv
|
2023-08-18 10:49:07 +00:00
|
|
|
openssl
|
2023-08-18 10:32:31 +00:00
|
|
|
] ++ lib.optionals isDarwin (with pkgs.darwin.apple_sdk.frameworks; [
|
|
|
|
CoreFoundation
|
|
|
|
CoreServices
|
|
|
|
Security
|
|
|
|
]);
|
2023-08-14 23:08:03 +00:00
|
|
|
|
2023-08-18 10:32:31 +00:00
|
|
|
doCheck = false;
|
2023-08-14 23:08:03 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "This tool will export your reddit chats into a plethora of formats";
|
|
|
|
homepage = "https://github.com/MPult/Rexit/";
|
|
|
|
license = [ licenses.gpl3Only ];
|
2023-08-18 10:32:31 +00:00
|
|
|
platforms = [ "x86_64-darwin" "aarch64-darwin" "aarch64-linux" "x86_64-linux" ];
|
2023-08-14 23:08:03 +00:00
|
|
|
};
|
|
|
|
}
|