Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
51 lines
1005 B
Nix
51 lines
1005 B
Nix
{
|
|
lib,
|
|
buildGoModule,
|
|
fetchFromSourcehut,
|
|
pkg-config,
|
|
mpv-unwrapped,
|
|
stdenv,
|
|
}:
|
|
buildGoModule (finalAttrs: {
|
|
pname = "ostui";
|
|
version = "1.0.4";
|
|
|
|
src = fetchFromSourcehut {
|
|
owner = "~ser";
|
|
repo = "ostui";
|
|
rev = "v${finalAttrs.version}";
|
|
hash = "sha256-efX19jkJnXyO4iuY2EZqhtLJZ7R/Q2JQZf72gyLgY8k=";
|
|
};
|
|
|
|
vendorHash = "sha256-Vmjd0bbeR9+PZCjh1cczE5MWeH5PDVE6obJLmV0wCLQ=";
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs = [
|
|
mpv-unwrapped
|
|
];
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
"-X main.Version=${finalAttrs.version}"
|
|
];
|
|
|
|
env = {
|
|
CGO_ENABLED = "1";
|
|
};
|
|
|
|
doCheck = !stdenv.hostPlatform.isDarwin;
|
|
|
|
meta = {
|
|
homepage = "https://git.sr.ht/~ser/ostui";
|
|
description = "Terminal client for *sonic music servers, inspired by ncmpcpp and musickube";
|
|
license = lib.licenses.gpl3Only;
|
|
platforms = lib.platforms.linux ++ lib.platforms.darwin;
|
|
mainProgram = "ostui";
|
|
maintainers = with lib.maintainers; [ m0streng0 ];
|
|
};
|
|
})
|