2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, libdvdread }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-12-06 16:07:01 +00:00
|
|
|
pname = "lxdvdrip";
|
2023-07-15 17:15:38 +00:00
|
|
|
version = "1.77";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-12-06 16:07:01 +00:00
|
|
|
url = "mirror://sourceforge/lxdvdrip/lxdvdrip-${version}.tgz";
|
2023-07-15 17:15:38 +00:00
|
|
|
hash = "sha256-OzHrscftsCmJvSw7bb/Z2WDP322VCuQDY58dW2OqxB8=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
postPatch = ''
|
2020-04-24 23:36:52 +00:00
|
|
|
sed -i -e s,/usr/local,$out, -e s,/etc,$out/etc,g Makefile
|
2023-07-15 17:15:38 +00:00
|
|
|
sed -i -e s,/usr/local,$out, mbuffer/Makefile
|
2020-04-24 23:36:52 +00:00
|
|
|
makeFlags="$makeFlags PREFIX=$out"
|
|
|
|
'';
|
|
|
|
|
|
|
|
preInstall = ''
|
|
|
|
mkdir -p $out/man/man1 $out/bin $out/share $out/etc
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildInputs = [ libdvdread ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = {
|
2024-09-26 11:04:55 +00:00
|
|
|
broken = (stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isAarch64);
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Command line tool to make a copy from a video DVD for private use";
|
|
|
|
homepage = "https://sourceforge.net/projects/lxdvdrip";
|
2021-01-15 22:18:51 +00:00
|
|
|
license = lib.licenses.gpl2;
|
|
|
|
platforms = lib.platforms.linux;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|