1
0
Fork 0
nix-overlay/packages/rexit.nix

39 lines
954 B
Nix
Raw Normal View History

2023-08-14 23:08:03 +00:00
{ pkgs, lib }:
2023-08-18 10:32:31 +00:00
let
inherit (pkgs.stdenv) isDarwin;
in
pkgs.rustPlatform.buildRustPackage {
2023-08-14 23:08:03 +00:00
pname = "rexit";
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
nativeBuildInputs = with pkgs; [ pkg-config ];
2023-08-18 10:32:31 +00:00
buildInputs = with pkgs; [
libiconv
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
};
}