diff options
author | github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> | 2023-08-05 12:01:30 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-05 12:01:30 +0000 |
commit | 6458cb74a2d16d200ef040c881e3eb1c4378ad2d (patch) | |
tree | 423239861f2711307dc0f8f8f9b8521ec7104c51 /pkgs/tools/audio | |
parent | 91c8b652dbbc8eff5007621ba32cf66ee28a218c (diff) | |
parent | 0d98427489fd368378069a56a094c452d9ad8b7f (diff) |
Merge master into staging-next
Diffstat (limited to 'pkgs/tools/audio')
-rw-r--r-- | pkgs/tools/audio/linuxwave/default.nix | 52 |
1 files changed, 13 insertions, 39 deletions
diff --git a/pkgs/tools/audio/linuxwave/default.nix b/pkgs/tools/audio/linuxwave/default.nix index 5d01416661517..213a409098866 100644 --- a/pkgs/tools/audio/linuxwave/default.nix +++ b/pkgs/tools/audio/linuxwave/default.nix @@ -2,62 +2,36 @@ , stdenv , fetchFromGitHub , installShellFiles -, zig +, zigHook }: -stdenv.mkDerivation rec { +stdenv.mkDerivation (finalAttrs: { pname = "linuxwave"; version = "0.1.5"; src = fetchFromGitHub { owner = "orhun"; repo = "linuxwave"; - rev = "v${version}"; - hash = "sha256-5c8h9bAe3Qv7PJ3PPcwMJYKPlWsmnqshe6vLIgtdDiQ="; + rev = "v${finalAttrs.version}"; fetchSubmodules = true; + hash = "sha256-5c8h9bAe3Qv7PJ3PPcwMJYKPlWsmnqshe6vLIgtdDiQ="; }; nativeBuildInputs = [ installShellFiles - zig + zigHook ]; - postConfigure = '' - export XDG_CACHE_HOME=$(mktemp -d) - ''; - - buildPhase = '' - runHook preBuild - - zig build -Drelease-safe -Dcpu=baseline - - runHook postBuild - ''; - - checkPhase = '' - runHook preCheck - - zig build test - - runHook postCheck - ''; - - installPhase = '' - runHook preInstall - - zig build -Drelease-safe -Dcpu=baseline --prefix $out install - + postInstall = '' installManPage man/linuxwave.1 - - runHook postInstall ''; - meta = with lib; { - description = "Generate music from the entropy of Linux"; + meta = { homepage = "https://github.com/orhun/linuxwave"; - changelog = "https://github.com/orhun/linuxwave/blob/${src.rev}/CHANGELOG.md"; - license = licenses.mit; - maintainers = with maintainers; [ figsoda ]; - platforms = platforms.all; + description = "Generate music from the entropy of Linux"; + changelog = "https://github.com/orhun/linuxwave/blob/${finalAttrs.src.rev}/CHANGELOG.md"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ figsoda ]; + inherit (zigHook.meta) platforms; }; -} +}) |