nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 fetchFromGitLab,
5 libsForQt5,
6}:
7stdenv.mkDerivation {
8 pname = "dsremote";
9 version = "0-unstable-2025-07-07";
10
11 src = fetchFromGitLab {
12 owner = "Teuniz";
13 repo = "DSRemote";
14 rev = "b290debcfecd4fecf2069fb958bd43fe9e5ce5e1";
15 hash = "sha256-7a13T8MwIFDhrXe7xqB84D6MwfTYs1gJj6VWs4JbzEM=";
16 };
17
18 nativeBuildInputs = [
19 libsForQt5.qmake
20 libsForQt5.qt5.wrapQtAppsHook
21 libsForQt5.qt5.qtbase
22 ];
23
24 hardeningDisable = [ "fortify" ];
25
26 postPatch = ''
27 substituteInPlace dsremote.pro \
28 --replace-fail "/usr/" "$out/" \
29 --replace-fail "/etc/" "$out/etc/"
30 '';
31
32 meta = {
33 description = "Rigol DS1000Z remote control and waveform viewer";
34 homepage = "https://www.teuniz.net/DSRemote";
35 license = lib.licenses.gpl3Plus;
36 platforms = lib.platforms.linux;
37 maintainers = with lib.maintainers; [ mksafavi ];
38 mainProgram = "dsremote";
39 };
40}