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:22:24 +00:00
|
|
|
pkgs.rustPlatform.buildRustPackage rec {
|
2023-08-14 23:08:03 +00:00
|
|
|
pname = "rexit";
|
2023-12-16 23:22:24 +00:00
|
|
|
version = "1.2.1";
|
2023-08-14 23:08:03 +00:00
|
|
|
|
2023-08-18 10:32:31 +00:00
|
|
|
src = pkgs.fetchFromGitHub {
|
2023-08-28 21:38:55 +00:00
|
|
|
owner = "MPult";
|
2023-08-18 10:32:31 +00:00
|
|
|
repo = "Rexit";
|
2023-12-16 23:22:24 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "sha256-KnwyyMC/uUcOlrCMofMjN7F6FAkUGFQ9m7COUaGDGdE=";
|
2023-08-14 23:08:03 +00:00
|
|
|
};
|
|
|
|
|
2023-12-16 23:22:24 +00:00
|
|
|
cargoSha256 = "sha256-69vqfut2uRReZXT+ILFlaCZ3mTtr0yhKgFSv1wZgZVI=";
|
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
|
|
|
};
|
|
|
|
}
|