Changelog: https://github.com/orhun/linuxwave/releases/tag/v0.4.0 Diff: https://github.com/orhun/linuxwave/compare/v0.3.0...v0.4.0
48 lines
946 B
Nix
48 lines
946 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
installShellFiles,
|
|
zig_0_16,
|
|
callPackage,
|
|
}:
|
|
|
|
let
|
|
zig = zig_0_16;
|
|
in
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "linuxwave";
|
|
version = "0.4.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "orhun";
|
|
repo = "linuxwave";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-5LcAExNFCsQIeRqLHMCLO+MnK7p2q2qOA1SdMCR4nCw=";
|
|
};
|
|
|
|
zigBuildFlags = [
|
|
"--system"
|
|
(callPackage ./deps.nix { })
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
installShellFiles
|
|
zig
|
|
];
|
|
|
|
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/v${finalAttrs.version}/CHANGELOG.md";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ puiyq ];
|
|
inherit (zig.meta) platforms;
|
|
mainProgram = "linuxwave";
|
|
};
|
|
})
|