uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
50
pkgs/tools/video/atomicparsley/default.nix
Normal file
50
pkgs/tools/video/atomicparsley/default.nix
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
{ lib, stdenv, fetchFromGitHub, cmake, zlib, Cocoa }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "atomicparsley";
|
||||
version = "20210715.151551.e7ad03a";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "wez";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "sha256-77yWwfdEul4uLsUNX1dLwj8K0ilcuBaTVKMyXDvKVx4=";
|
||||
};
|
||||
|
||||
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 = "A 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";
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue