nixos-config/pkgs/tildefriends/default.nix

49 lines
912 B
Nix
Raw Normal View History

2024-04-08 21:28:07 +02:00
{
lib,
stdenv,
fetchFromGitea,
gnumake,
openssl,
which,
2024-04-08 20:32:17 +02:00
}:
stdenv.mkDerivation rec {
pname = "tildefriends";
2024-04-27 13:56:15 +02:00
version = "0.0.18";
2024-04-08 20:32:17 +02:00
src = fetchFromGitea {
domain = "dev.tildefriends.net";
owner = "cory";
repo = "tildefriends";
rev = "v${version}";
2024-04-27 13:56:15 +02:00
hash = "sha256-+uthA1w8CmZfW+WOK9wYGl2fUl/k10ufOc8W+Pwa9iQ=";
fetchSubmodules = true;
2024-04-08 20:32:17 +02:00
};
nativeBuildInputs = [
gnumake
openssl
which
];
buildPhase = ''
make -j $NIX_BUILD_CORES release
'';
installPhase = ''
mkdir -p $out/bin
cp -r out/release/* $out/bin
'';
doCheck = false;
meta = {
2024-04-08 21:28:07 +02:00
homepage = "https://tildefriends.net";
2024-04-08 20:32:17 +02:00
description = "Make apps and friends from the comfort of your web browser.";
mainProgram = "tildefriends";
2024-04-08 21:28:07 +02:00
license = with lib.licenses; [mit];
maintainers = with lib.maintainers; [tasiaiso];
2024-04-08 20:32:17 +02:00
platforms = lib.platforms.all;
};
}