2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, zlib, Cocoa }:
|
2015-03-13 22:06:37 +00:00
|
|
|
|
2020-10-24 00:24:08 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "atomicparsley";
|
2024-06-09 00:49:12 +00:00
|
|
|
version = "20240608.083822.1ed9031";
|
2015-03-13 22:06:37 +00:00
|
|
|
|
2020-10-24 00:24:08 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "wez";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2024-06-09 00:49:12 +00:00
|
|
|
sha256 = "sha256-VhrOMpGNMkNNYjcfCqlHI8gdApWr1ThtcxDwQ6gyV/g=";
|
2015-03-13 22:06:37 +00:00
|
|
|
};
|
|
|
|
|
2020-10-24 00:24:08 +00:00
|
|
|
nativeBuildInputs = [ cmake ];
|
2018-11-05 18:12:46 +00:00
|
|
|
|
|
|
|
buildInputs = [ zlib ]
|
2021-01-15 09:19:50 +00:00
|
|
|
++ lib.optionals stdenv.hostPlatform.isDarwin [ Cocoa ];
|
2017-03-21 22:35:54 +00:00
|
|
|
|
2020-10-24 00:24:08 +00:00
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
install -D AtomicParsley $out/bin/AtomicParsley
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
2015-03-13 22:06:37 +00:00
|
|
|
|
2021-08-10 00:48:29 +00:00
|
|
|
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
|
|
|
|
)
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-10-24 00:24:08 +00:00
|
|
|
description = "CLI program for reading, parsing and setting metadata into MPEG-4 files";
|
|
|
|
homepage = "https://github.com/wez/atomicparsley";
|
|
|
|
license = licenses.gpl2Plus;
|
2015-03-13 22:06:37 +00:00
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ pjones ];
|
2022-04-01 19:34:55 +00:00
|
|
|
mainProgram = "AtomicParsley";
|
2015-03-13 22:06:37 +00:00
|
|
|
};
|
|
|
|
}
|