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
38
pkgs/development/libraries/mysocketw/default.nix
Normal file
38
pkgs/development/libraries/mysocketw/default.nix
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, openssl
|
||||
, cmake
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "mysocketw";
|
||||
version = "3.11.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "RigsOfRods";
|
||||
repo = "socketw";
|
||||
rev = version;
|
||||
hash = "sha256-mpfhmKE2l59BllkOjmURIfl17lAakXpmGh2x9SFSaAo=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
cmake
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
openssl
|
||||
];
|
||||
|
||||
postPatch = lib.optionalString stdenv.isDarwin ''
|
||||
substituteInPlace src/Makefile \
|
||||
--replace -Wl,-soname, -Wl,-install_name,$out/lib/
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Cross platform (Linux/FreeBSD/Unix/Win32) streaming socket C++";
|
||||
homepage = "https://github.com/RigsOfRods/socketw";
|
||||
license = licenses.lgpl21Plus;
|
||||
maintainers = with maintainers; [ ];
|
||||
};
|
||||
}
|
||||
13
pkgs/development/libraries/mysocketw/gcc.patch
Normal file
13
pkgs/development/libraries/mysocketw/gcc.patch
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
I picked it up from:
|
||||
http://www.rigsofrods.com/wiki/images/c/c0/Socketw.patch
|
||||
|
||||
--- a/src/sw_base.cxx.old 2009-12-19 21:19:31.057051328 -0800
|
||||
+++ b/src/sw_base.cxx 2009-12-19 21:19:44.939551918 -0800
|
||||
@@ -19,6 +19,7 @@
|
||||
#include <time.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
+#include <stdlib.h>
|
||||
|
||||
#ifndef __WIN32__
|
||||
#include <netdb.h>
|
||||
Loading…
Add table
Add a link
Reference in a new issue