about summary refs log tree commit diff
path: root/pkgs/by-name/ds
diff options
context:
space:
mode:
authorPeder Bergebakken Sundt <pbsds@hotmail.com>2024-02-13 19:28:16 +0100
committerGitHub <noreply@github.com>2024-02-13 19:28:16 +0100
commitcd9b9d02ba5752ad85a6533efacb6ecb6add2b88 (patch)
tree20311b707b5b123a65e5ba17350fc35fe0d049cc /pkgs/by-name/ds
parentcec3d3a933508fd7b60abba32918a6c933b7ce7b (diff)
parent7e7357cb287d95a24da0d0ecbb0fb232b7da7722 (diff)
Merge pull request #281250 from Gliczy/dsda-launcher
dsda-launcher: init at 1.3.1-hotfix
Diffstat (limited to 'pkgs/by-name/ds')
-rw-r--r--pkgs/by-name/ds/dsda-launcher/package.nix47
1 files changed, 47 insertions, 0 deletions
diff --git a/pkgs/by-name/ds/dsda-launcher/package.nix b/pkgs/by-name/ds/dsda-launcher/package.nix
new file mode 100644
index 0000000000000..8a83fb43a6f57
--- /dev/null
+++ b/pkgs/by-name/ds/dsda-launcher/package.nix
@@ -0,0 +1,47 @@
+{ lib
+, stdenv
+, fetchFromGitHub
+, qt6
+}:
+stdenv.mkDerivation rec {
+  pname = "dsda-launcher";
+  version = "1.3.1-hotfix";
+
+  src = fetchFromGitHub {
+    owner = "Pedro-Beirao";
+    repo = "dsda-launcher";
+    rev = "v${version}";
+    hash = "sha256-V6VLUl148L47LjKnPe5MZCuhZSMtI0wd18i8b+7jCvk=";
+  };
+
+  nativeBuildInputs = [ qt6.wrapQtAppsHook ];
+
+  buildInputs = [ qt6.qtbase qt6.qtwayland ];
+
+  buildPhase = ''
+    runHook preBuild
+    mkdir -p "./dsda-launcher/build"
+    cd "./dsda-launcher/build"
+    qmake6 ..
+    make
+    runHook postBuild
+  '';
+
+  installPhase = ''
+    runHook preInstall
+    mkdir -p $out/bin
+    cp ./dsda-launcher $out/bin
+
+    install -Dm444 ../icons/dsda-Launcher.desktop $out/share/applications/dsda-Launcher.desktop
+    install -Dm444 ../icons/dsda-launcher.png $out/share/pixmaps/dsda-launcher.png
+    runHook postInstall
+  '';
+
+  meta = with lib; {
+    homepage = "https://github.com/Pedro-Beirao/dsda-launcher";
+    description = "This is a launcher GUI for the dsda-doom source port";
+    license = licenses.gpl3;
+    platforms = platforms.linux;
+    maintainers = [ maintainers.Gliczy ];
+  };
+}