nixpkgs/pkgs/tools/audio/linuxwave/default.nix

38 lines
838 B
Nix
Raw Normal View History

2023-04-22 22:47:14 +00:00
{ lib
, stdenv
, fetchFromGitHub
, installShellFiles
, zig_0_10
2023-04-22 22:47:14 +00:00
}:
stdenv.mkDerivation (finalAttrs: {
2023-04-22 22:47:14 +00:00
pname = "linuxwave";
version = "0.1.5";
2023-04-22 22:47:14 +00:00
src = fetchFromGitHub {
owner = "orhun";
repo = "linuxwave";
rev = "v${finalAttrs.version}";
2023-04-22 22:47:14 +00:00
fetchSubmodules = true;
hash = "sha256-5c8h9bAe3Qv7PJ3PPcwMJYKPlWsmnqshe6vLIgtdDiQ=";
2023-04-22 22:47:14 +00:00
};
nativeBuildInputs = [
installShellFiles
zig_0_10.hook
2023-04-22 22:47:14 +00:00
];
postInstall = ''
2023-04-22 22:47:14 +00:00
installManPage man/linuxwave.1
'';
meta = {
2023-04-22 22:47:14 +00:00
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;
2023-04-22 22:47:14 +00:00
};
})