blob: 3433bde6e11ab0f4df122d5e5ef9d9b7f5f9d550 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
{ lib, stdenv, fetchFromGitHub, cmake, zlib, Cocoa }:
stdenv.mkDerivation rec {
pname = "atomicparsley";
version = "20240608.083822.1ed9031";
src = fetchFromGitHub {
owner = "wez";
repo = pname;
rev = version;
sha256 = "sha256-VhrOMpGNMkNNYjcfCqlHI8gdApWr1ThtcxDwQ6gyV/g=";
};
nativeBuildInputs = [ cmake ];
buildInputs = [ zlib ]
++ lib.optionals stdenv.isDarwin [ Cocoa ];
installPhase = ''
runHook preInstall
install -D AtomicParsley $out/bin/AtomicParsley
runHook postInstall
'';
doCheck = true;
postPatch = ''
patchShebangs tests/test.sh
'';
# copying files so that we dont need to patch the test.sh
checkPhase = ''
(
cp AtomicParsley ../tests
cd ../tests
mkdir tests
mv *.mp4 tests
./test.sh
)
'';
meta = with lib; {
description = "CLI program for reading, parsing and setting metadata into MPEG-4 files";
homepage = "https://github.com/wez/atomicparsley";
license = licenses.gpl2Plus;
platforms = platforms.unix;
maintainers = with maintainers; [ pjones ];
mainProgram = "AtomicParsley";
};
}
|