Files
nixpkgs/pkgs/by-name/mp/mpvc/package.nix
Dark Steveneq 646b892680
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
push sheeet
2025-10-09 14:15:47 +02:00

55 lines
1013 B
Nix

{
lib,
fetchFromGitHub,
makeWrapper,
socat,
stdenv,
testers,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "mpvc";
version = "1.4-unstable-2024-07-09";
src = fetchFromGitHub {
owner = "gmt4";
repo = "mpvc";
rev = "966156dacd026cde220951d41c4ac5915cd6ad64";
hash = "sha256-/M3xOb0trUaxJGXmV2+sOCbrHGyP4jpyo+S/oBoDkO0=";
};
nativeBuildInputs = [ makeWrapper ];
buildInputs = [ socat ];
outputs = [
"out"
"doc"
];
makeFlags = [ "PREFIX=$(out)" ];
installFlags = [ "PREFIX=$(out)" ];
strictDeps = true;
postInstall = ''
wrapProgram $out/bin/mpvc --prefix PATH : "${lib.getBin socat}/"
'';
# This is not Archlinux :)
postFixup = ''
rm -r $out/share/licenses
rmdir $out/share || true
'';
meta = {
homepage = "https://github.com/gmt4/mpvc";
description = "Mpc-like control interface for mpv";
license = lib.licenses.mit;
mainProgram = "mpvc";
maintainers = [ ];
platforms = lib.platforms.linux;
};
})