mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-12-03 05:26:18 +01:00
aff0158ef7
Signed-off-by: magic_rb <magic_rb@redalder.org>
30 lines
669 B
Nix
30 lines
669 B
Nix
{...}: 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;
|
|
};
|
|
};
|
|
}
|