1
0
Fork 0

rexit: init

This commit is contained in:
Daniel Kempkens 2023-08-15 01:08:03 +02:00
parent fed0b17590
commit c1d39f2f5c
Signed by: daniel
SSH key fingerprint: SHA256:Ks/MyhQYcPRQiwMKLAKquWCdCPe3JXlb1WttgnAoSeM
2 changed files with 37 additions and 0 deletions

View file

@ -46,6 +46,7 @@
liblpeg = import ./packages/liblpeg-darwin.nix { inherit pkgs; }; liblpeg = import ./packages/liblpeg-darwin.nix { inherit pkgs; };
neovim-nightly = import ./packages/neovim-nightly.nix { inherit (inputs'.neovim-flake.packages) neovim; inherit liblpeg lib; }; neovim-nightly = import ./packages/neovim-nightly.nix { inherit (inputs'.neovim-flake.packages) neovim; inherit liblpeg lib; };
phantomjs = import ./packages/phantomjs.nix { inherit pkgs lib; }; phantomjs = import ./packages/phantomjs.nix { inherit pkgs lib; };
rexit = import ./packages/rexit.nix { inherit pkgs lib; };
} else { } else {
neovim-nightly = import ./packages/neovim-nightly.nix { inherit (inputs'.neovim-flake.packages) neovim; inherit lib; }; neovim-nightly = import ./packages/neovim-nightly.nix { inherit (inputs'.neovim-flake.packages) neovim; inherit lib; };
}; };

36
packages/rexit.nix Normal file
View file

@ -0,0 +1,36 @@
{ pkgs, lib }:
pkgs.stdenv.mkDerivation rec {
pname = "rexit";
version = "1.2.0";
src = pkgs.fetchurl {
url = "https://github.com/MPult/Rexit/releases/download/v${version}/rexit-macos.zip";
sha256 = "sha256-Xuf2bpTAIodeD4NinrFaWVNd5y/hvJjvQTYtAchBWb4=";
};
buildInputs = with pkgs; [ unzip ];
unpackPhase = ''
unzip $src
'';
dontStrip = true;
installPhase = ''
install -D rexit $out/bin/rexit
'';
doInstallCheck = true;
installCheckPhase = ''
$out/bin/rexit --version
'';
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 ];
platforms = [ "x86_64-darwin" "aarch64-darwin" ];
};
}