about summary refs log tree commit diff
path: root/pkgs/tools/audio/linuxwave/default.nix
blob: 98860675dafccf5e32242d44ebcfb5ae59a9bf25 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{ lib
, stdenv
, fetchFromGitHub
, installShellFiles
, zig_0_10
}:

stdenv.mkDerivation (finalAttrs: {
  pname = "linuxwave";
  version = "0.1.5";

  src = fetchFromGitHub {
    owner = "orhun";
    repo = "linuxwave";
    rev = "v${finalAttrs.version}";
    fetchSubmodules = true;
    hash = "sha256-5c8h9bAe3Qv7PJ3PPcwMJYKPlWsmnqshe6vLIgtdDiQ=";
  };

  nativeBuildInputs = [
    installShellFiles
    zig_0_10.hook
  ];

  postInstall = ''
    installManPage man/linuxwave.1
  '';

  meta = {
    homepage = "https://github.com/orhun/linuxwave";
    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 (zig_0_10.meta) platforms;
  };
})