summaryrefslogtreecommitdiffstats
path: root/pkgs/by-name/cu/cutentr/package.nix
blob: b16f7ec41fac0957b015e3581da0516051d3bc71 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
{
  stdenv,
  libsForQt5,
  fetchFromGitLab,
  makeDesktopItem,
  lib,
  copyDesktopItems,
}:

let
  version = "0.3.3";
in

stdenv.mkDerivation {
  pname = "cutentr";
  inherit version;

  src = fetchFromGitLab {
    owner = "BoltsJ";
    repo = "cuteNTR";
    tag = version;
    hash = "sha256-KfnC9R38qSMhQDeaMBWm1HoO3Wzs5kyfPFwdMZCWw4E=";
  };

  desktopItems = lib.singleton (makeDesktopItem {
    name = "cuteNTR";
    desktopName = "cuteNTR";
    icon = "cutentr";
    exec = "cutentr";
    categories = [ "Game" ];
  });

  nativeBuildInputs = [
    libsForQt5.wrapQtAppsHook
    copyDesktopItems
  ];

  buildInputs = [
    libsForQt5.qtbase
  ];

  buildPhase = ''
    runHook preBuild
    qmake
    make
    runHook postBuild
  '';

  installPhase = ''
    runHook preInstall
    mkdir -p $out/bin
    cp -r cutentr $out/bin

    install -m 444 -D setup/gui/com.gitlab.BoltsJ.cuteNTR.svg $out/share/icons/hicolor/scalable/apps/cutentr.svg
    runHook postInstall
  '';

  meta = {
    description = "3DS streaming client for Linux";
    homepage = "https://gitlab.com/BoltsJ/cuteNTR";
    license = lib.licenses.gpl3Plus;
    mainProgram = "cutentr";
    platforms = [ "x86_64-linux" ];
    maintainers = [ lib.maintainers.EarthGman ];
  };
}