1{ lib
2, stdenv
3, fetchFromGitHub
4, installShellFiles
5, zig_0_10
6}:
7
8stdenv.mkDerivation (finalAttrs: {
9 pname = "linuxwave";
10 version = "0.1.5";
11
12 src = fetchFromGitHub {
13 owner = "orhun";
14 repo = "linuxwave";
15 rev = "v${finalAttrs.version}";
16 fetchSubmodules = true;
17 hash = "sha256-5c8h9bAe3Qv7PJ3PPcwMJYKPlWsmnqshe6vLIgtdDiQ=";
18 };
19
20 nativeBuildInputs = [
21 installShellFiles
22 zig_0_10.hook
23 ];
24
25 postInstall = ''
26 installManPage man/linuxwave.1
27 '';
28
29 meta = {
30 homepage = "https://github.com/orhun/linuxwave";
31 description = "Generate music from the entropy of Linux";
32 changelog = "https://github.com/orhun/linuxwave/blob/${finalAttrs.src.rev}/CHANGELOG.md";
33 license = lib.licenses.mit;
34 maintainers = with lib.maintainers; [ figsoda ];
35 inherit (zig_0_10.meta) platforms;
36 mainProgram = "linuxwave";
37 };
38})