diff --git a/default.nix b/default.nix index 97ff433..9987ac0 100644 --- a/default.nix +++ b/default.nix @@ -29,23 +29,23 @@ in rust-synapse-compress-state = pkgs.callPackage ./pkgs/rust-synapse-compress-state { }; matrix-corporal = pkgs.callPackage ./pkgs/matrix-corporal { }; - matrix-registration = pkgs.callPackage ./pkgs/matrix-registration { }; - rank_photos = pkgs.callPackage ./pkgs/rank_photos { }; - grav1 = pkgs.callPackage ./pkgs/grav1/server.nix { wsgiserver = wsgiserver; setuptools = pkgs.python3Packages.setuptools; }; - grav1c = pkgs.callPackage ./pkgs/grav1/client.nix { }; + # grav1 = pkgs.callPackage ./pkgs/grav1/server.nix { wsgiserver = wsgiserver; setuptools = pkgs.python3Packages.setuptools; }; + # grav1c = pkgs.callPackage ./pkgs/grav1/client.nix { }; - av1client = pkgs.callPackage ./pkgs/av1master/client.nix { }; + # av1client = pkgs.callPackage ./pkgs/av1master/client.nix { }; - radical-native = pkgs.callPackage ./pkgs/radical-native { }; + # radical-native = pkgs.callPackage ./pkgs/radical-native { }; photini = pkgs.libsForQt5.callPackage ./pkgs/photini { }; plotbitrate = pkgs.callPackage ./pkgs/plotbitrate { }; - wii-u-gc-adapter = pkgs.callPackage ./pkgs/wii-u-gc-adapter { }; + # wii-u-gc-adapter = pkgs.callPackage ./pkgs/wii-u-gc-adapter { }; - minecraft-server-fabric = pkgs.callPackage ./pkgs/minecraft-server-fabric { }; + # minecraft-server-fabric = pkgs.callPackage ./pkgs/minecraft-server-fabric { }; + + dowlords-faf-client = pkgs.callPackage ./pkgs/downlords { }; mesloNFp10k = pkgs.callPackage ./pkgs/fonts/MesloNFp10k.nix { }; wallpapers = pkgs.callPackage ./pkgs/wallpapers/monogatari { }; diff --git a/pkgs/downlords/default.nix b/pkgs/downlords/default.nix new file mode 100644 index 0000000..8bdb778 --- /dev/null +++ b/pkgs/downlords/default.nix @@ -0,0 +1,26 @@ +{ lib, stdenv, fetchzip, makeWrapper, jdk14, steam-run, ... }: + +stdenv.mkDerivation rec { + + pname = "downlords-faf-client"; + version = "v1.2.3"; + + src = fetchzip { + url = "https://github.com/FAForever/downlords-faf-client/releases/download/${version}/dfc_unix_${lib.stringAsChars (x: if x == "." then "_" else if x == "v" then "" else x) version}.tar.gz"; + sha256 = "0snbqn6qngjrb1s4knxq5k48816zk975h6b19fnpja2pabwkxzpc"; + }; + + nativeBuildInputs = [ makeWrapper ]; + buildInputs = [ jdk14 ]; + + installPhase = '' + mkdir -p $out/lib/ $out/bin + cp -r ${src} $out/lib/downlords + + makeWrapper $out/lib/downlords/downlords-faf-client $out/bin/dowlords \ + --set INSTALL4J_JAVA_HOME "${jdk14}/lib/openjdk" \ + --set PWD $out/lib/downlords \ + --run "cd $out/lib/downlords" + ''; + +}