tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
flac: modernize derivation
KSJ2000
11 months ago
233cd3ff
3bf8a684
+46
-24
2 changed files
expand all
collapse all
unified
split
pkgs
by-name
fl
flac
package.nix
package.patch
+34
-24
pkgs/by-name/fl/flac/package.nix
···
1
{
2
-
lib,
3
-
stdenv,
4
-
fetchFromGitHub,
5
cmake,
6
-
pandoc,
7
-
pkg-config,
8
doxygen,
0
9
graphviz,
0
10
libogg,
0
0
0
0
0
11
}:
12
13
-
stdenv.mkDerivation rec {
14
pname = "flac";
15
version = "1.5.0";
16
17
src = fetchFromGitHub {
18
owner = "xiph";
19
repo = "flac";
20
-
tag = version;
21
hash = "sha256-B6XRai5UOAtY/7JXNbI3YuBgazi1Xd2ZOs6vvLq9LIs=";
22
};
23
24
nativeBuildInputs = [
25
cmake
0
0
26
pandoc
27
pkg-config
28
-
doxygen
29
-
graphviz
30
];
31
32
-
buildInputs = [
33
-
libogg
34
-
];
35
36
-
cmakeFlags = lib.optionals (!stdenv.hostPlatform.isStatic) [
37
-
"-DBUILD_SHARED_LIBS=ON"
38
-
];
39
40
CFLAGS = [
41
"-O3"
···
43
];
44
CXXFLAGS = [ "-O3" ];
45
46
-
# doCheck = true; # takes lots of time
0
47
48
outputs = [
49
"bin"
50
"dev"
51
-
"out"
52
-
"man"
53
"doc"
0
0
54
];
55
56
-
meta = with lib; {
0
0
0
0
0
0
57
homepage = "https://xiph.org/flac/";
58
description = "Library and tools for encoding and decoding the FLAC lossless audio file format";
59
-
changelog = "https://xiph.org/flac/changelog.html";
60
mainProgram = "flac";
61
-
platforms = platforms.all;
62
-
license = licenses.bsd3;
63
-
maintainers = with maintainers; [ ruuda ];
0
0
0
0
0
64
};
65
-
}
···
1
{
0
0
0
2
cmake,
0
0
3
doxygen,
4
+
fetchFromGitHub,
5
graphviz,
6
+
lib,
7
libogg,
8
+
nix-update-script,
9
+
pandoc,
10
+
pkg-config,
11
+
stdenv,
12
+
versionCheckHook,
13
}:
14
15
+
stdenv.mkDerivation (finalAttrs: {
16
pname = "flac";
17
version = "1.5.0";
18
19
src = fetchFromGitHub {
20
owner = "xiph";
21
repo = "flac";
22
+
tag = finalAttrs.version;
23
hash = "sha256-B6XRai5UOAtY/7JXNbI3YuBgazi1Xd2ZOs6vvLq9LIs=";
24
};
25
26
nativeBuildInputs = [
27
cmake
28
+
doxygen
29
+
graphviz
30
pandoc
31
pkg-config
0
0
32
];
33
34
+
buildInputs = [ libogg ];
0
0
35
36
+
cmakeFlags = lib.optionals (!stdenv.hostPlatform.isStatic) [ "-DBUILD_SHARED_LIBS=ON" ];
0
0
37
38
CFLAGS = [
39
"-O3"
···
41
];
42
CXXFLAGS = [ "-O3" ];
43
44
+
patches = [ ./package.patch ];
45
+
doCheck = true;
46
47
outputs = [
48
"bin"
49
"dev"
0
0
50
"doc"
51
+
"man"
52
+
"out"
53
];
54
55
+
nativeInstallCheckInputs = [ versionCheckHook ];
56
+
doInstallCheck = true;
57
+
versionCheckProgramArg = "--version";
58
+
59
+
passthru.updateScript = nix-update-script { };
60
+
61
+
meta = {
62
homepage = "https://xiph.org/flac/";
63
description = "Library and tools for encoding and decoding the FLAC lossless audio file format";
64
+
changelog = "https://github.com/xiph/flac/releases/tag/${finalAttrs.version}";
65
mainProgram = "flac";
66
+
platforms = lib.platforms.all;
67
+
license = with lib.licenses; [
68
+
bsd3
69
+
fdl13Plus
70
+
gpl2Plus
71
+
lgpl21Plus
72
+
];
73
+
maintainers = with lib.maintainers; [ ruuda ];
74
};
75
+
})
+12
pkgs/by-name/fl/flac/package.patch
···
0
0
0
0
0
0
0
0
0
0
0
0
···
1
+
diff --git a/test/test_replaygain.sh b/test/test_replaygain.sh
2
+
index 11fb77dc..b5dea14c 100755
3
+
--- a/test/test_replaygain.sh
4
+
+++ b/test/test_replaygain.sh
5
+
@@ -140,7 +140,4 @@ for ACTION in $REPLAYGAIN_FREQ ; do
6
+
done
7
+
done
8
+
9
+
-
10
+
-rm -f $testdir/out.flac $testdir/out.meta
11
+
-
12
+
exit 0