There was a race condition that lead to incorrect user permissions on the sounds directory. The solution to use the preStart script is better and fixes this issue as well.
23 lines
497 B
Nix
23 lines
497 B
Nix
{ lib
|
|
, stdenvNoCC
|
|
, fetchurl
|
|
, unzip
|
|
}:
|
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
src = fetchurl {
|
|
url = "https://www.asterisksounds.org/sites/asterisksounds.org/files/sounds/de/download/asterisk-sounds-core-de-${version}.zip";
|
|
sha256 = "y97xVDBHgnD/Z/DxjKcSNjCXXfiVO+PWUFMbyQpaFLY=";
|
|
};
|
|
name = "asterisk-sounds-de";
|
|
version = "2.11.19";
|
|
dontBuild = true;
|
|
nativeBuildInputs = [ unzip ];
|
|
unpackPhase = ''
|
|
unzip $src
|
|
'';
|
|
installPhase = ''
|
|
mkdir $out
|
|
cp -r * $out
|
|
'';
|
|
}
|