diff options
Diffstat (limited to 'pkgs/applications/audio/keyfinder/default.nix')
-rw-r--r-- | pkgs/applications/audio/keyfinder/default.nix | 35 |
1 files changed, 17 insertions, 18 deletions
diff --git a/pkgs/applications/audio/keyfinder/default.nix b/pkgs/applications/audio/keyfinder/default.nix index 74110c5924e..ae1a8ea1edf 100644 --- a/pkgs/applications/audio/keyfinder/default.nix +++ b/pkgs/applications/audio/keyfinder/default.nix @@ -1,8 +1,8 @@ { stdenv, fetchFromGitHub, libav_0_8, libkeyfinder, qtbase, qtxmlpatterns, taglib }: -let version = "2.1"; in -stdenv.mkDerivation { +stdenv.mkDerivation rec { name = "keyfinder-${version}"; + version = "2.1"; src = fetchFromGitHub { sha256 = "0j9k90ll4cr8j8dywb6zf1bs9vijlx7m4zsh6w9hxwrr7ymz89hn"; @@ -11,8 +11,22 @@ stdenv.mkDerivation { owner = "ibsh"; }; + buildInputs = [ libav_0_8 libkeyfinder qtbase qtxmlpatterns taglib ]; + + postPatch = '' + substituteInPlace is_KeyFinder.pro \ + --replace "keyfinder.0" "keyfinder" \ + --replace '$$[QT_INSTALL_PREFIX]' "$out" \ + --replace "-stdlib=libc++" "" + ''; + + configurePhase = '' + qmake + ''; + + enableParallelBuilding = true; + meta = with stdenv.lib; { - inherit version; description = "Musical key detection for digital audio (graphical UI)"; longDescription = '' KeyFinder is an open source key detection tool, for DJs interested in @@ -28,19 +42,4 @@ stdenv.mkDerivation { platforms = platforms.linux; maintainers = with maintainers; [ nckx ]; }; - - buildInputs = [ libav_0_8 libkeyfinder qtbase qtxmlpatterns taglib ]; - - postPatch = '' - substituteInPlace is_KeyFinder.pro \ - --replace "keyfinder.0" "keyfinder" \ - --replace '$$[QT_INSTALL_PREFIX]' "$out" \ - --replace "-stdlib=libc++" "" - ''; - - configurePhase = '' - qmake - ''; - - enableParallelBuilding = true; } |