mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 09:23:01 +00:00
Merge pull request #227699 from figsoda/linuxwave
This commit is contained in:
commit
43846461d6
63
pkgs/tools/audio/linuxwave/default.nix
Normal file
63
pkgs/tools/audio/linuxwave/default.nix
Normal file
@ -0,0 +1,63 @@
|
||||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, installShellFiles
|
||||
, zig
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "linuxwave";
|
||||
version = "0.1.3";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "orhun";
|
||||
repo = "linuxwave";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-e+QTteyHAyYmU4vb86Ju92DxNFFX01g/rsViNI5ba1s=";
|
||||
fetchSubmodules = true;
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
installShellFiles
|
||||
zig
|
||||
];
|
||||
|
||||
postConfigure = ''
|
||||
export XDG_CACHE_HOME=$(mktemp -d)
|
||||
'';
|
||||
|
||||
buildPhase = ''
|
||||
runHook preBuild
|
||||
|
||||
zig build -Drelease-safe -Dcpu=baseline
|
||||
|
||||
runHook postBuild
|
||||
'';
|
||||
|
||||
checkPhase = ''
|
||||
runHook preCheck
|
||||
|
||||
zig build test
|
||||
|
||||
runHook postCheck
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
zig build -Drelease-safe -Dcpu=baseline --prefix $out install
|
||||
|
||||
installManPage man/linuxwave.1
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Generate music from the entropy of Linux";
|
||||
homepage = "https://github.com/orhun/linuxwave";
|
||||
changelog = "https://github.com/orhun/linuxwave/blob/${src.rev}/CHANGELOG.md";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ figsoda ];
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
@ -9113,6 +9113,8 @@ with pkgs;
|
||||
|
||||
lfs = callPackage ../tools/filesystems/lfs { };
|
||||
|
||||
linuxwave = callPackage ../tools/audio/linuxwave { };
|
||||
|
||||
littlefs-fuse = callPackage ../tools/filesystems/littlefs-fuse { };
|
||||
|
||||
lksctp-tools = callPackage ../os-specific/linux/lksctp-tools { };
|
||||
|
Loading…
Reference in New Issue
Block a user