diff --git a/pkgs/development/libraries/aptdec/default.nix b/pkgs/development/libraries/aptdec/default.nix index 053e9d37c7f..f969f0d66ad 100644 --- a/pkgs/development/libraries/aptdec/default.nix +++ b/pkgs/development/libraries/aptdec/default.nix @@ -7,22 +7,18 @@ , libsndfile }: -stdenv.mkDerivation { +stdenv.mkDerivation rec { pname = "aptdec"; - version = "unstable-2022-05-18"; + version = "1.8.0"; src = fetchFromGitHub { owner = "Xerbo"; repo = "aptdec"; - rev = "b1cc7480732349a7c772124f984b58f4c734c91b"; - sha256 = "sha256-Fi9IkZcvqxpmHzqucpCr++37bmTtMy18P4LPznoaYIY="; + rev = "v${version}"; + hash = "sha256-5Pr2PlCPSEIWnThJXKcQEudmxhLJC2sVa9BfAOEKHB4="; + fetchSubmodules = true; }; - # fixes https://github.com/Xerbo/aptdec/issues/15 - postPatch = '' - substituteInPlace CMakeLists.txt --replace "-Werror" "" - ''; - nativeBuildInputs = [ cmake pkg-config ]; buildInputs = [ libpng libsndfile ];