alpha
Login
or
Join now
lass.pds.lassul.us
/
superconfig
Star
0
Fork
1
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
This repository has no description
Star
0
Fork
1
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
1
Pipelines
pkgs.dectalk: init
author
lassulus
date
7 months ago
(Mar 3, 2026, 7:35 PM CET)
commit
51930afe
51930afe2b53a0c56dc1df4de4ec0cf54a445021
parent
215ad06e
215ad06edeb26b1b6324d54e2a37ccde7a86643a
+90
1 changed file
Expand all
Collapse all
Unified
Split
5pkgs
dectalk
package.nix
+90
5pkgs/dectalk/package.nix
View file
Reviewed
···
1
1
+
{
2
2
+
lib,
3
3
+
stdenv,
4
4
+
fetchFromGitHub,
5
5
+
autoconf,
6
6
+
automake,
7
7
+
pkg-config,
8
8
+
libpulseaudio,
9
9
+
alsa-lib,
10
10
+
}:
11
11
+
12
12
+
stdenv.mkDerivation {
13
13
+
pname = "dectalk";
14
14
+
version = "0-unstable-2025-10-27";
15
15
+
16
16
+
src = fetchFromGitHub {
17
17
+
owner = "dectalk";
18
18
+
repo = "dectalk";
19
19
+
rev = "c3c1e4ae4117f951d8d7f9ef2848408ec79047fd";
20
20
+
hash = "sha256-28d8/LLxtkfjBLRz8jH6xGf16koxMZqm2h67bAey4qg=";
21
21
+
};
22
22
+
23
23
+
nativeBuildInputs = [
24
24
+
autoconf
25
25
+
automake
26
26
+
pkg-config
27
27
+
];
28
28
+
29
29
+
buildInputs = [
30
30
+
libpulseaudio
31
31
+
alsa-lib
32
32
+
];
33
33
+
34
34
+
postPatch = ''
35
35
+
# Replace git version detection with static version since .git is not available
36
36
+
sed -i 's/m4_esyscmd_s(echo $(git describe --always)$(git status --porcelain | awk .*))/c3c1e4a/' src/configure.ac
37
37
+
'';
38
38
+
39
39
+
configurePhase = ''
40
40
+
runHook preConfigure
41
41
+
cd src
42
42
+
./autogen.sh
43
43
+
./configure --prefix=$out
44
44
+
cd ..
45
45
+
runHook postConfigure
46
46
+
'';
47
47
+
48
48
+
buildPhase = ''
49
49
+
runHook preBuild
50
50
+
make -C src -j$NIX_BUILD_CORES
51
51
+
runHook postBuild
52
52
+
'';
53
53
+
54
54
+
installPhase = ''
55
55
+
runHook preInstall
56
56
+
mkdir -p $out/bin $out/lib $out/dic
57
57
+
58
58
+
# Libraries
59
59
+
cp dist/lib/*.so $out/lib/
60
60
+
61
61
+
# Main binaries
62
62
+
for bin in say dtmemory aclock; do
63
63
+
if [ -f "dist/$bin" ]; then
64
64
+
cp "dist/$bin" $out/bin/
65
65
+
fi
66
66
+
done
67
67
+
68
68
+
# Tools
69
69
+
if [ -d dist/tools ]; then
70
70
+
cp dist/tools/* $out/bin/
71
71
+
fi
72
72
+
73
73
+
# Dictionaries
74
74
+
cp dist/dic/* $out/dic/
75
75
+
76
76
+
# DECtalk config — must be at $out/DECtalk.conf (compiled-in DECTALK_INSTALL_PREFIX)
77
77
+
cp dist/DECtalk.conf $out/DECtalk.conf
78
78
+
79
79
+
runHook postInstall
80
80
+
'';
81
81
+
82
82
+
meta = {
83
83
+
description = "Modern builds of the DECtalk text-to-speech engine";
84
84
+
homepage = "https://github.com/dectalk/dectalk";
85
85
+
# license = lib.licenses.unfree;
86
86
+
license = lib.licenses.free;
87
87
+
platforms = lib.platforms.linux;
88
88
+
mainProgram = "say";
89
89
+
};
90
90
+
}