Files
nixpkgs/pkgs/by-name/sm/smpeg2/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

59 lines
1.0 KiB
Nix

{
lib,
stdenv,
autoconf,
automake,
fetchFromGitHub,
makeWrapper,
pkg-config,
SDL2,
}:
stdenv.mkDerivation {
pname = "smpeg2";
version = "unstable-2022-05-26";
src = fetchFromGitHub {
owner = "icculus";
repo = "smpeg";
rev = "c5793e5f3f2765fc09c24380d7e92136a0e33d3b";
sha256 = "sha256-Z0u83K1GIXd0jUYo5ZyWUH2Zt7Hn8z+yr06DAtAEukw=";
};
nativeBuildInputs = [
autoconf
automake
makeWrapper
pkg-config
];
buildInputs = [ SDL2 ];
outputs = [
"out"
"dev"
"man"
];
preConfigure = ''
sh autogen.sh
'';
postInstall = ''
moveToOutput bin/smpeg2-config "$dev"
wrapProgram $dev/bin/smpeg2-config \
--prefix PATH ":" "${pkg-config}/bin" \
--prefix PKG_CONFIG_PATH ":" "${lib.getDev SDL2}/lib/pkgconfig"
'';
enableParallelBuilding = true;
meta = with lib; {
homepage = "https://icculus.org/smpeg/";
description = "SDL2 MPEG Player Library";
license = licenses.lgpl2;
platforms = platforms.unix;
maintainers = with maintainers; [ orivej ];
};
}