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

39 lines
922 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
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
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
};
}