diff options
author | Jan Malakhovski <oxij@oxij.org> | 2023-08-02 13:09:30 +0000 |
---|---|---|
committer | Jan Malakhovski <oxij@oxij.org> | 2023-08-03 16:34:45 +0000 |
commit | a0a909fa9ecd2b74ef3933a6f9309d3922b37463 (patch) | |
tree | c905b9ee865ed241f6d334ea186ead1d64ae0749 /pkgs/tools/audio/piper | |
parent | 775f21b9fdc1f2bb46518a575339fac8ff867959 (diff) |
treewide: noop: replace every newly introduced `stdenv.mkDerivation rec` with a fixpoint over `finalAttrs`
Diffstat (limited to 'pkgs/tools/audio/piper')
-rw-r--r-- | pkgs/tools/audio/piper/default.nix | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/pkgs/tools/audio/piper/default.nix b/pkgs/tools/audio/piper/default.nix index ed70eb4848fcc..d753d7bb3e1ea 100644 --- a/pkgs/tools/audio/piper/default.nix +++ b/pkgs/tools/audio/piper/default.nix @@ -16,21 +16,18 @@ , piper-train }: -let +stdenv.mkDerivation (finalAttrs: { pname = "piper"; version = "1.2.0"; -in -stdenv.mkDerivation rec { - inherit pname version; src = fetchFromGitHub { owner = "rhasspy"; repo = "piper"; - rev = "refs/tags/v${version}"; + rev = "refs/tags/v${finalAttrs.version}"; hash = "sha256-6WNWqJt0PO86vnf+3iHaRRg2KwBOEj4aicmB+P2phlk="; }; - sourceRoot = "${src.name}/src/cpp"; + sourceRoot = "${finalAttrs.src.name}/src/cpp"; nativeBuildInputs = [ cmake @@ -63,10 +60,10 @@ stdenv.mkDerivation rec { }; meta = with lib; { - changelog = "https://github.com/rhasspy/piper/releases/tag/v${version}"; + changelog = "https://github.com/rhasspy/piper/releases/tag/v${finalAttrs.version}"; description = "A fast, local neural text to speech system"; homepage = "https://github.com/rhasspy/piper"; license = licenses.mit; maintainers = with maintainers; [ hexa ]; }; -} +}) |