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
44
pkgs/tools/system/foremost/default.nix
Normal file
44
pkgs/tools/system/foremost/default.nix
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
{ lib, stdenv, fetchurl }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "foremost";
|
||||
version = "1.5.7";
|
||||
|
||||
src = fetchurl {
|
||||
sha256 = "0d2zxw0ijg8cd3ksgm8cf8jg128zr5x7z779jar90g9f47pm882h";
|
||||
url = "http://foremost.sourceforge.net/pkg/${pname}-${version}.tar.gz";
|
||||
};
|
||||
|
||||
patches = [ ./makefile.patch ];
|
||||
|
||||
# -fcommon: Workaround build failure on -fno-common toolchains like upstream
|
||||
# gcc-10. Otherwise build fails as:
|
||||
# ld: api.o:(.bss+0xbdba0): multiple definition of `wildcard'; main.o:(.bss+0xbd760): first defined here
|
||||
NIX_CFLAGS_COMPILE = "-fcommon";
|
||||
|
||||
makeFlags = [ "PREFIX=$(out)" ];
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
hardeningDisable = [ "format" ];
|
||||
|
||||
preInstall = ''
|
||||
mkdir -p $out/{bin,share/man/man8}
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Recover files based on their contents";
|
||||
longDescription = ''
|
||||
Foremost is a console program to recover files based on their headers,
|
||||
footers, and internal data structures. Foremost can work on image files, such
|
||||
as those generated by dd, Safeback, Encase, etc, or directly on a drive.
|
||||
The headers and footers can be specified by a configuration file or you can
|
||||
use command line switches to specify built-in file types. These built-in types
|
||||
look at the data structures of a given file format allowing for a more
|
||||
reliable and faster recovery.
|
||||
'';
|
||||
homepage = "http://foremost.sourceforge.net/";
|
||||
license = licenses.publicDomain;
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
23
pkgs/tools/system/foremost/makefile.patch
Normal file
23
pkgs/tools/system/foremost/makefile.patch
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
--- a/Makefile 2015-04-21 00:40:46.949266581 +0200
|
||||
+++ b/Makefile 2015-04-21 00:41:38.637165883 +0200
|
||||
@@ -24,9 +24,9 @@
|
||||
RAW_FLAGS += -DVERSION=\"$(VERSION)\"
|
||||
|
||||
# Where we get installed
|
||||
-BIN = /usr/local/bin
|
||||
-MAN = /usr/share/man/man8
|
||||
-CONF= /usr/local/etc
|
||||
+BIN = $(PREFIX)/bin
|
||||
+MAN = $(PREFIX)/share/man/man8
|
||||
+CONF= $(PREFIX)/etc
|
||||
# Setup for compiling and cross-compiling for Windows
|
||||
# The CR_ prefix refers to cross compiling from OSX to Windows
|
||||
CR_CC = $(CR_BASE)/gcc
|
||||
@@ -120,7 +120,6 @@
|
||||
install: goals
|
||||
install -m 755 $(NAME) $(BIN)
|
||||
install -m 444 $(MAN_PAGES) $(MAN)
|
||||
- install -m 444 foremost.conf $(CONF)
|
||||
macinstall: BIN = /usr/local/bin/
|
||||
macinstall: MAN = /usr/share/man/man1/
|
||||
macinstall: CONF = /usr/local/etc/
|
||||
Loading…
Add table
Add a link
Reference in a new issue