nixpkgs/pkgs/development/libraries/spandsp/3.nix
Adam Joseph 88cbe74d05 spandsp: refactor
The `spandsp` derivation has the clauses in the wrong order
(e.g. `makeFlags` before `configureFlags`) which makes it hard to
understand.

This commit fixes the clause order, factors out `common.nix` from
the two versions of spandsp, and also tries to normalize the coding
style.
2023-03-09 21:40:38 -08:00

21 lines
454 B
Nix

{ lib
, stdenv
, fetchFromGitHub
, audiofile
, libtiff
, autoreconfHook
, fetchpatch
, buildPackages
, callPackage
}:
(callPackage ./common.nix {}).overrideAttrs(finalAttrs: {
version = "3.0.0";
src = fetchFromGitHub {
owner = "freeswitch";
repo = finalAttrs.pname;
rev = "6ec23e5a7e411a22d59e5678d12c4d2942c4a4b6"; # upstream does not seem to believe in tags
sha256 = "03w0s99y3zibi5fnvn8lk92dggfgrr0mz5255745jfbz28b2d5y7";
};
})