Files
nixpkgs/pkgs/by-name/vc/vcs/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

61 lines
1.2 KiB
Nix

{
lib,
stdenv,
fetchurl,
makeWrapper,
coreutils,
ffmpeg,
gawk,
gnugrep,
gnused,
imagemagick,
mplayer,
util-linux,
getopt,
dejavu_fonts,
}:
let
version = "1.13.4";
gopt = if stdenv.hostPlatform.isLinux then util-linux else getopt;
runtimeDeps = [
coreutils
ffmpeg
gawk
gnugrep
gnused
imagemagick
mplayer
gopt
];
in
stdenv.mkDerivation {
pname = "vcs";
inherit version;
src = fetchurl {
url = "http://p.outlyer.net/files/vcs/vcs-${version}.bash";
sha256 = "0nhwcpffp3skz24kdfg4445i6j37ks6a0qsbpfd3dbi4vnpa60a0";
};
unpackCmd = "mkdir src; cp $curSrc src/vcs";
patches = [ ./fonts.patch ];
nativeBuildInputs = [ makeWrapper ];
inherit dejavu_fonts;
installPhase = ''
mkdir -p $out/bin
mv vcs $out/bin/vcs
substituteAllInPlace $out/bin/vcs
chmod +x $out/bin/vcs
wrapProgram $out/bin/vcs --argv0 vcs --set PATH "${lib.makeBinPath runtimeDeps}"
'';
meta = with lib; {
description = "Generates contact sheets from video files";
homepage = "http://p.outlyer.net/vcs";
license = licenses.lgpl21Plus;
maintainers = with maintainers; [ elitak ];
platforms = with platforms; unix;
mainProgram = "vcs";
};
}