about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/audio/sfxr-qt/default.nix
blob: a98d1431d65e4473f229300ba581bbaf08d7dfa4 (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
{ stdenv, fetchFromGitHub
, cmake
, qtbase, qtquickcontrols2
, SDL
, python3
}:

stdenv.mkDerivation rec {
  name = "sfxr-qt-${version}";
  version = "1.2.0";
  src = fetchFromGitHub {
    owner = "agateau";
    repo = "sfxr-qt";
    rev = version;
    sha256 = "1ndw1dcmzvkrc6gnb0y057zb4lqlhwrv18jlbx26w3s4xrbxqr41";
    fetchSubmodules = true;
  };
  nativeBuildInputs = [
    cmake
    (python3.withPackages (pp: with pp; [ pyyaml jinja2 ]))
  ];
  buildInputs = [
    qtbase qtquickcontrols2
    SDL
  ];
  configurePhase = "cmake . -DCMAKE_INSTALL_PREFIX=$out";

  meta = with stdenv.lib; {
    homepage = https://github.com/agateau/sfxr-qt;
    description = "A sound effect generator, QtQuick port of sfxr";
    license = licenses.gpl2;
    maintainers = with maintainers; [ fgaz ];
    platforms = platforms.linux;
  };
}