2024-03-02 22:05:30 +01:00
|
|
|
{...}: let
|
2023-06-13 23:04:10 +02:00
|
|
|
pname = "ds3os";
|
|
|
|
version = "0.22.0.0";
|
2024-03-02 22:05:30 +01:00
|
|
|
in {
|
|
|
|
flake.overlays.ds3os = final: prev: {
|
|
|
|
ds3os = prev.gcc11Stdenv.mkDerivation {
|
|
|
|
inherit pname version;
|
2023-06-13 23:04:10 +02:00
|
|
|
|
2024-03-02 22:05:30 +01:00
|
|
|
src = prev.fetchFromGitHub {
|
|
|
|
owner = "TLeonardUK";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}-main";
|
|
|
|
sha256 = "sha256-Rsiyo2tuOsjyl1OtXKbzRlD6d3divJJAdlijXt/RxmA=";
|
|
|
|
};
|
2023-06-13 23:04:10 +02:00
|
|
|
|
2024-03-02 22:05:30 +01:00
|
|
|
hardeningDisable = ["format"];
|
2023-06-13 23:04:10 +02:00
|
|
|
|
2024-03-02 22:05:30 +01:00
|
|
|
nativeBuildInputs = with prev; [cmake];
|
2023-06-13 23:04:10 +02:00
|
|
|
|
2024-03-02 22:05:30 +01:00
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/{bin,libexec}
|
|
|
|
cp -r ../bin/x64_release $out/libexec/.
|
|
|
|
ln -s $out/libexec/Server $out/bin/ds3os
|
|
|
|
'';
|
2023-06-13 23:04:10 +02:00
|
|
|
|
2024-03-02 22:05:30 +01:00
|
|
|
meta.broken = true;
|
2023-06-13 23:04:10 +02:00
|
|
|
};
|
2024-03-02 22:05:30 +01:00
|
|
|
};
|
2023-06-13 23:04:10 +02:00
|
|
|
}
|