mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 08:23:09 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
40 lines
972 B
Nix
40 lines
972 B
Nix
{ lib, stdenv, fetchurl }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "flvstreamer";
|
|
version = "2.1c1";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://savannah/flvstreamer/source/flvstreamer-${version}.tar.gz";
|
|
sha256 = "e90e24e13a48c57b1be01e41c9a7ec41f59953cdb862b50cf3e667429394d1ee";
|
|
};
|
|
|
|
buildPhase = ''
|
|
make CC=${stdenv.cc.targetPrefix}cc posix
|
|
'';
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/bin
|
|
cp flvstreamer $out/bin
|
|
cp streams $out/bin
|
|
cp rtmpsrv $out/bin
|
|
cp rtmpsuck $out/bin
|
|
'';
|
|
|
|
meta = {
|
|
description = "Command-line RTMP client";
|
|
|
|
longDescription = ''
|
|
flvstreamer is an open source command-line RTMP client intended to
|
|
stream audio or video content from all types of flash or rtmp servers.
|
|
'';
|
|
|
|
license = lib.licenses.gpl2Plus;
|
|
|
|
homepage = "https://savannah.nongnu.org/projects/flvstreamer";
|
|
|
|
maintainers = [ lib.maintainers.thammers ];
|
|
platforms = with lib.platforms; linux ++ darwin;
|
|
};
|
|
}
|