rexit: init
This commit is contained in:
parent
fed0b17590
commit
c1d39f2f5c
2 changed files with 37 additions and 0 deletions
|
@ -46,6 +46,7 @@
|
|||
liblpeg = import ./packages/liblpeg-darwin.nix { inherit pkgs; };
|
||||
neovim-nightly = import ./packages/neovim-nightly.nix { inherit (inputs'.neovim-flake.packages) neovim; inherit liblpeg lib; };
|
||||
phantomjs = import ./packages/phantomjs.nix { inherit pkgs lib; };
|
||||
rexit = import ./packages/rexit.nix { inherit pkgs lib; };
|
||||
} else {
|
||||
neovim-nightly = import ./packages/neovim-nightly.nix { inherit (inputs'.neovim-flake.packages) neovim; inherit lib; };
|
||||
};
|
||||
|
|
36
packages/rexit.nix
Normal file
36
packages/rexit.nix
Normal 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" ];
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue