Add overlay for ds3os

Signed-off-by: Magic_RB <magic_rb@redalder.org>
This commit is contained in:
Magic_RB 2023-06-13 23:04:10 +02:00
parent 2ef9634a33
commit a0b302d906
2 changed files with 35 additions and 0 deletions

View file

@ -59,6 +59,7 @@
overlays/getmail6 overlays/getmail6
overlays/maildrop overlays/maildrop
overlays/courier-unicode.nix overlays/courier-unicode.nix
overlays/ds3os.nix
]; ];
flake.nixosModules = { flake.nixosModules = {

34
overlays/ds3os.nix Normal file
View file

@ -0,0 +1,34 @@
{ ... }:
let
pname = "ds3os";
version = "0.22.0.0";
in
{
flake.overlays.ds3os =
final: prev:
{
ds3os =
prev.gcc11Stdenv.mkDerivation {
inherit pname version;
src = prev.fetchFromGitHub {
owner = "TLeonardUK";
repo = pname;
rev = "v${version}-main";
sha256 = "sha256-Rsiyo2tuOsjyl1OtXKbzRlD6d3divJJAdlijXt/RxmA=";
};
hardeningDisable = [ "format" ];
nativeBuildInputs = with prev; [ cmake ];
installPhase = ''
mkdir -p $out/{bin,libexec}
cp -r ../bin/x64_release $out/libexec/.
ln -s $out/libexec/Server $out/bin/ds3os
'';
meta.broken = true;
};
};
}