nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 cmake,
6 pkg-config,
7 mbelib,
8 serialdv,
9}:
10
11stdenv.mkDerivation (finalAttrs: {
12 pname = "dsdcc";
13 version = "1.9.6";
14
15 src = fetchFromGitHub {
16 owner = "f4exb";
17 repo = "dsdcc";
18 rev = "v${finalAttrs.version}";
19 hash = "sha256-4wSf4pOEheuhW4ReEDo5i3poiHMC0wgSUk2lXBYWjOs=";
20 };
21
22 nativeBuildInputs = [
23 cmake
24 pkg-config
25 ];
26
27 buildInputs = [
28 mbelib
29 serialdv
30 ];
31
32 cmakeFlags = [
33 "-DUSE_MBELIB=ON"
34 ];
35
36 postFixup = ''
37 substituteInPlace "$out"/lib/pkgconfig/libdsdcc.pc \
38 --replace '=''${exec_prefix}//' '=/'
39 '';
40
41 meta = {
42 description = "Digital Speech Decoder (DSD) rewritten as a C++ library";
43 homepage = "https://github.com/f4exb/dsdcc";
44 license = lib.licenses.gpl3;
45 mainProgram = "dsdccx";
46 maintainers = with lib.maintainers; [ alexwinter ];
47 platforms = lib.platforms.unix;
48 };
49})