mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 21:53:32 +00:00
sblast: init at 0.7.0 (#343460)
This commit is contained in:
commit
e96a754181
61
pkgs/by-name/sb/sblast/package.nix
Normal file
61
pkgs/by-name/sb/sblast/package.nix
Normal file
@ -0,0 +1,61 @@
|
||||
{
|
||||
buildGoModule,
|
||||
fetchFromGitHub,
|
||||
ffmpeg,
|
||||
lib,
|
||||
makeBinaryWrapper,
|
||||
nix-update-script,
|
||||
pulseaudio,
|
||||
testers,
|
||||
}:
|
||||
let
|
||||
self = buildGoModule rec {
|
||||
pname = "sblast";
|
||||
version = "0.7.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "ugjka";
|
||||
repo = "sblast";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-+ZeZ2lohAngfljCa/z9yjCKvQwCMEiwzzPFrpAU8lWA=";
|
||||
};
|
||||
|
||||
vendorHash = "sha256-yPwLilMiDR1aSeuk8AEmuYPsHPRWqiByGLwgkdI5t+s=";
|
||||
|
||||
nativeBuildInputs = [
|
||||
makeBinaryWrapper
|
||||
];
|
||||
|
||||
postInstall = ''
|
||||
wrapProgram $out/bin/sblast \
|
||||
--suffix PATH : ${
|
||||
lib.makeBinPath [
|
||||
ffmpeg
|
||||
pulseaudio
|
||||
]
|
||||
}
|
||||
'';
|
||||
|
||||
# build only the toplevel package, and not `makerel`
|
||||
subPackages = ".";
|
||||
|
||||
passthru = {
|
||||
updateScript = nix-update-script { };
|
||||
tests.version = testers.testVersion {
|
||||
package = self;
|
||||
version = "v${version}";
|
||||
};
|
||||
};
|
||||
|
||||
meta = {
|
||||
description = "Blast your Linux audio to DLNA receivers";
|
||||
homepage = "https://github.com/ugjka/sblast";
|
||||
# license is "MIT+NoAI": <https://github.com/ugjka/sblast/blob/main/LICENSE>
|
||||
license = lib.licenses.unfree;
|
||||
mainProgram = "sblast";
|
||||
maintainers = with lib.maintainers; [ colinsane ];
|
||||
platforms = lib.platforms.linux;
|
||||
};
|
||||
};
|
||||
in
|
||||
self
|
Loading…
Reference in New Issue
Block a user