2023-04-29 16:46:19 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, installShellFiles
|
2023-08-10 07:59:29 +00:00
|
|
|
, zig_0_10
|
2023-04-29 16:46:19 +00:00
|
|
|
}:
|
|
|
|
|
2023-08-10 07:59:29 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2023-04-29 16:46:19 +00:00
|
|
|
pname = "linuxwave";
|
2023-08-04 22:07:22 +00:00
|
|
|
version = "0.1.5";
|
2023-04-29 16:46:19 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "orhun";
|
|
|
|
repo = "linuxwave";
|
2023-08-10 07:59:29 +00:00
|
|
|
rev = "v${finalAttrs.version}";
|
2023-04-29 16:46:19 +00:00
|
|
|
fetchSubmodules = true;
|
2023-08-10 07:59:29 +00:00
|
|
|
hash = "sha256-5c8h9bAe3Qv7PJ3PPcwMJYKPlWsmnqshe6vLIgtdDiQ=";
|
2023-04-29 16:46:19 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
installShellFiles
|
2023-08-10 07:59:29 +00:00
|
|
|
zig_0_10.hook
|
2023-04-29 16:46:19 +00:00
|
|
|
];
|
|
|
|
|
2023-08-10 07:59:29 +00:00
|
|
|
postInstall = ''
|
2023-04-29 16:46:19 +00:00
|
|
|
installManPage man/linuxwave.1
|
|
|
|
'';
|
|
|
|
|
2023-08-10 07:59:29 +00:00
|
|
|
meta = {
|
2023-04-29 16:46:19 +00:00
|
|
|
homepage = "https://github.com/orhun/linuxwave";
|
2023-08-10 07:59:29 +00:00
|
|
|
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;
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "linuxwave";
|
2023-04-29 16:46:19 +00:00
|
|
|
};
|
2023-08-10 07:59:29 +00:00
|
|
|
})
|