about summary refs log tree commit diff
path: root/pkgs/desktops/deepin/disomaster/default.nix
blob: 758c8ff76c3e8943e3adb6a7243a65575ccd1923 (plain) (blame)
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
{ stdenv
, mkDerivation
, fetchFromGitHub
, pkgconfig
, qmake
, qtbase
, libisoburn
, deepin
}:

mkDerivation rec {
  pname = "disomaster";
  version = "5.0.0";

  src = fetchFromGitHub {
    owner = "linuxdeepin";
    repo = pname;
    rev = version;
    sha256 = "13144gq0mpbpclzxc79fb1kirh0vvi50jvjnbpla9s8lvh59xl62";
  };

  nativeBuildInputs = [
    deepin.setupHook
    pkgconfig
    qmake
  ];

  buildInputs = [
    libisoburn
    qtbase
  ];

  postPatch = ''
    searchHardCodedPaths  # debugging

    sed -i '/^QMAKE_PKGCONFIG_DESTDIR/i QMAKE_PKGCONFIG_PREFIX = $$PREFIX' \
       libdisomaster/libdisomaster.pro
  '';

  passthru.updateScript = deepin.updateScript { inherit pname version src; };

  meta = with stdenv.lib; {
    description = "A libisoburn wrapper for Qt";
    homepage = "https://github.com/linuxdeepin/disomaster";
    license = licenses.gpl3;
    platforms = platforms.linux;
    maintainers = with maintainers; [ romildo worldofpeace ];
  };
}