Merge branch 'master' into staging
This commit is contained in:
@@ -8,6 +8,11 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "3ef25907ec5d1dfb0df94c9388c020b593fbe162d7aaa9bd08f35d2a125af056";
|
||||
};
|
||||
|
||||
patchPhase = ''
|
||||
substituteInPlace Makefile \
|
||||
--replace "gcc" "cc"
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
mkdir -p $out/man/man1
|
||||
|
||||
@@ -14,7 +14,7 @@ stdenv.mkDerivation {
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin $out/share/man/man1
|
||||
gcc -O2 hardlink.c -o $out/bin/hardlink
|
||||
cc -O2 hardlink.c -o $out/bin/hardlink
|
||||
mv hardlink.1 $out/share/man/man1/hardlink.1
|
||||
'';
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
{ stdenv, fetchurl }:
|
||||
{ stdenv, fetchurl
|
||||
, IOKit ? null }:
|
||||
|
||||
let
|
||||
version = "6.4";
|
||||
@@ -18,6 +19,8 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "11bsxcghh7adzdklcslamlynydxb708vfz892d5w7agdq405ddza";
|
||||
};
|
||||
|
||||
buildInputs = [] ++ stdenv.lib.optional stdenv.isDarwin IOKit;
|
||||
|
||||
patchPhase = ''
|
||||
cp ${driverdb} drivedb.h
|
||||
sed -i -e 's@which which >/dev/null || exit 1@alias which="type -p"@' update-smart-drivedb.in
|
||||
|
||||
@@ -6,7 +6,9 @@ stdenv.mkDerivation {
|
||||
|
||||
installPhase=''make install "PREFIX=$out"'';
|
||||
|
||||
patchPhase = ''sed -i 's@/usr/bin/install@install@g' Makefile'';
|
||||
patchPhase = ''
|
||||
sed -i 's@/usr/bin/install@install@g ; s/gcc/cc/g' Makefile
|
||||
'';
|
||||
|
||||
crossAttrs = {
|
||||
makeFlags = "CC=${stdenv.cross.config}-gcc";
|
||||
|
||||
@@ -18,7 +18,7 @@ stdenv.mkDerivation rec {
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = https://github.com/RhysU/yeshup;
|
||||
platforms = platforms.all;
|
||||
platforms = platforms.linux;
|
||||
license = licenses.cc-by-sa-30; # From Stackoverflow answer
|
||||
maintainers = with maintainers; [ obadz ];
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user