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
32
pkgs/tools/cd-dvd/srt-to-vtt-cl/default.nix
Normal file
32
pkgs/tools/cd-dvd/srt-to-vtt-cl/default.nix
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
{ lib, stdenv, fetchFromGitHub, substituteAll }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "srt-to-vtt-cl";
|
||||
version = "unstable-2019-01-03";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "nwoltman";
|
||||
repo = pname;
|
||||
rev = "ce3d0776906eb847c129d99a85077b5082f74724";
|
||||
sha256 = "0qxysj08gjr6npyvg148llmwmjl2n9cyqjllfnf3gxb841dy370n";
|
||||
};
|
||||
|
||||
patches = [
|
||||
(substituteAll {
|
||||
src = ./fix-validation.patch;
|
||||
})
|
||||
];
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
cp bin/$(uname -s)/$(uname -m)/srt-vtt $out/bin
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Convert SRT files to VTT";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ ericdallo ];
|
||||
homepage = "https://github.com/nwoltman/srt-to-vtt-cl";
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
13
pkgs/tools/cd-dvd/srt-to-vtt-cl/fix-validation.patch
Normal file
13
pkgs/tools/cd-dvd/srt-to-vtt-cl/fix-validation.patch
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -1,9 +1,4 @@
|
||||
-ERR = $(shell which clang++ >/dev/null; echo $$?)
|
||||
-ifeq "$(ERR)" "0"
|
||||
- CXX ?= clang++
|
||||
-else
|
||||
- CXX ?= g++
|
||||
-endif
|
||||
+CXX ?= g++
|
||||
CXXFLAGS = -std=c++11 -O2 -MMD -I ./deps
|
||||
OBJECTS := src/text_encoding_detect.o src/Utils.o src/Converter.o src/main.o
|
||||
DEPENDS := $(OBJECTS:.o=.d)
|
||||
Loading…
Add table
Add a link
Reference in a new issue