mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-24 20:02:58 +03:00
Merge branch 'master' into staging
This commit is contained in:
commit
78b7529ee3
@ -11,6 +11,8 @@ stdenv.mkDerivation rec {
|
||||
|
||||
buildInputs = [ ffmpeg sox ];
|
||||
|
||||
NIX_CFLAGS_COMPILE = "-Wno-error";
|
||||
|
||||
meta = {
|
||||
description = "A audio/video loudness scanner implementing ITU-R BS.1770";
|
||||
license = stdenv.lib.licenses.gpl2Plus;
|
||||
|
@ -1,4 +1,5 @@
|
||||
{ fetchurl, stdenv }:
|
||||
{ fetchurl, stdenv
|
||||
, IOKit ? null }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "cd-discid-${version}";
|
||||
@ -11,6 +12,9 @@ stdenv.mkDerivation rec {
|
||||
|
||||
installFlags = "PREFIX=$(out) INSTALL=install";
|
||||
|
||||
buildInputs = []
|
||||
++ stdenv.lib.optional stdenv.isDarwin [ IOKit ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = http://linukz.org/cd-discid.shtml;
|
||||
license = licenses.gpl2Plus;
|
||||
|
@ -12,6 +12,8 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "0nha21rbdhl10vdpaq8d5v5fszvggl1xar555pvrnvm2y443ffpp";
|
||||
};
|
||||
|
||||
NIX_LDFLAGS = if stdenv.isDarwin then "-lintl" else null;
|
||||
|
||||
buildInputs = [ gtk2 which pkgconfig intltool file ];
|
||||
|
||||
doCheck = true;
|
||||
|
@ -12,6 +12,9 @@ stdenv.mkDerivation rec {
|
||||
patches = [ ./configure.patch ];
|
||||
patchFlags = "-p0";
|
||||
|
||||
NIX_CFLAGS_COMPILE = "-Wno-error";
|
||||
buildFlags = [ "CC=cc" ];
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
cp mg $out/bin
|
||||
|
@ -1,4 +1,4 @@
|
||||
{ stdenv, fetchurl, intltool, pkgconfig, gtk2 }:
|
||||
{ stdenv, fetchurl, intltool, pkgconfig, gtk2, fetchpatch }:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "gpicview-0.2.4";
|
||||
@ -8,6 +8,13 @@ stdenv.mkDerivation {
|
||||
sha256 = "1svcy1c8bgk0pl12yhyv16h2fl52x5vzzcv57z6qdcv5czgvgglr";
|
||||
};
|
||||
|
||||
patches = [
|
||||
(fetchpatch {
|
||||
url = "https://raw.githubusercontent.com/nonas/debian-clang/master/buildlogs/gpicview/gpicview-0.2.4/debian/patches/clang_FTBFS_Wreturn-type.patch";
|
||||
sha256 = "02dm966bplnv10knpdx7rlpjipk884156ggd9ij05zhza0jl8xcs";
|
||||
})
|
||||
];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "A simple and fast image viewer for X";
|
||||
homepage = http://lxde.sourceforge.net/gpicview/;
|
||||
|
@ -1,4 +1,5 @@
|
||||
{ fetchurl, stdenv, gettext, pkgconfig, glib, gtk, libX11, libSM, libICE }:
|
||||
{ fetchurl, stdenv, gettext, pkgconfig, glib, gtk, libX11, libSM, libICE
|
||||
, IOKit ? null }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "gkrellm-2.3.5";
|
||||
@ -7,7 +8,8 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "12rc6zaa7kb60b9744lbrlfkxxfniprm6x0mispv63h4kh75navh";
|
||||
};
|
||||
|
||||
buildInputs = [gettext pkgconfig glib gtk libX11 libSM libICE];
|
||||
buildInputs = [gettext pkgconfig glib gtk libX11 libSM libICE]
|
||||
++ stdenv.lib.optionals stdenv.isDarwin [ IOKit ];
|
||||
|
||||
hardeningDisable = [ "format" ];
|
||||
|
||||
|
@ -21,7 +21,7 @@ stdenv.mkDerivation rec {
|
||||
'';
|
||||
homepage = http://www.roland-riegel.de/nload/index.html;
|
||||
license = stdenv.lib.licenses.gpl2;
|
||||
platforms = stdenv.lib.platforms.unix;
|
||||
platforms = stdenv.lib.platforms.linux;
|
||||
maintainers = [ stdenv.lib.maintainers.devhell ];
|
||||
};
|
||||
}
|
||||
|
@ -19,6 +19,6 @@ stdenv.mkDerivation rec {
|
||||
homepage = https://github.com/Airblader/i3blocks-gaps;
|
||||
license = licenses.gpl3;
|
||||
maintainers = [ "carlsverre" ];
|
||||
platforms = platforms.all;
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
|
161
pkgs/development/compilers/go/1.7.nix
Normal file
161
pkgs/development/compilers/go/1.7.nix
Normal file
@ -0,0 +1,161 @@
|
||||
{ stdenv, lib, fetchFromGitHub, tzdata, iana_etc, go_1_4, runCommand
|
||||
, perl, which, pkgconfig, patch, fetchpatch
|
||||
, pcre
|
||||
, Security, Foundation, bash }:
|
||||
|
||||
let
|
||||
goBootstrap = runCommand "go-bootstrap" {} ''
|
||||
mkdir $out
|
||||
cp -rf ${go_1_4}/* $out/
|
||||
chmod -R u+w $out
|
||||
find $out -name "*.c" -delete
|
||||
cp -rf $out/bin/* $out/share/go/bin/
|
||||
'';
|
||||
in
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "go-${version}";
|
||||
version = "1.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "golang";
|
||||
repo = "go";
|
||||
rev = "go${version}";
|
||||
sha256 = "03wc4r5pgxrlh3lp8l0hb1bhsrwv4hfq1fcj8n82bfk3hvj43am2";
|
||||
};
|
||||
|
||||
# perl is used for testing go vet
|
||||
nativeBuildInputs = [ perl which pkgconfig patch ];
|
||||
buildInputs = [ pcre ];
|
||||
propagatedBuildInputs = lib.optionals stdenv.isDarwin [
|
||||
Security Foundation
|
||||
];
|
||||
|
||||
# I'm not sure what go wants from its 'src', but the go installation manual
|
||||
# describes an installation keeping the src.
|
||||
preUnpack = ''
|
||||
topdir=$PWD
|
||||
mkdir -p $out/share
|
||||
cd $out/share
|
||||
'';
|
||||
|
||||
prePatch = ''
|
||||
# Ensure that the source directory is named go
|
||||
cd ..
|
||||
if [ ! -d go ]; then
|
||||
mv * go
|
||||
fi
|
||||
|
||||
cd go
|
||||
patchShebangs ./ # replace /bin/bash
|
||||
|
||||
# This source produces shell script at run time,
|
||||
# and thus it is not corrected by patchShebangs.
|
||||
substituteInPlace misc/cgo/testcarchive/carchive_test.go \
|
||||
--replace '#!/usr/bin/env bash' '#!${stdenv.shell}'
|
||||
|
||||
# Disabling the 'os/http/net' tests (they want files not available in
|
||||
# chroot builds)
|
||||
rm src/net/{listen,parse}_test.go
|
||||
rm src/syscall/exec_linux_test.go
|
||||
# !!! substituteInPlace does not seems to be effective.
|
||||
# The os test wants to read files in an existing path. Just don't let it be /usr/bin.
|
||||
sed -i 's,/usr/bin,'"`pwd`", src/os/os_test.go
|
||||
sed -i 's,/bin/pwd,'"`type -P pwd`", src/os/os_test.go
|
||||
# Disable the unix socket test
|
||||
sed -i '/TestShutdownUnix/areturn' src/net/net_test.go
|
||||
# Disable the hostname test
|
||||
sed -i '/TestHostname/areturn' src/os/os_test.go
|
||||
# ParseInLocation fails the test
|
||||
sed -i '/TestParseInSydney/areturn' src/time/format_test.go
|
||||
# Remove the api check as it never worked
|
||||
sed -i '/src\/cmd\/api\/run.go/ireturn nil' src/cmd/dist/test.go
|
||||
# Remove the coverage test as we have removed this utility
|
||||
sed -i '/TestCoverageWithCgo/areturn' src/cmd/go/go_test.go
|
||||
|
||||
sed -i 's,/etc/protocols,${iana_etc}/etc/protocols,' src/net/lookup_unix.go
|
||||
sed -i 's,/etc/services,${iana_etc}/etc/services,' src/net/port_unix.go
|
||||
|
||||
# Disable cgo lookup tests not works, they depend on resolver
|
||||
rm src/net/cgo_unix_test.go
|
||||
|
||||
'' + lib.optionalString stdenv.isLinux ''
|
||||
sed -i 's,/usr/share/zoneinfo/,${tzdata}/share/zoneinfo/,' src/time/zoneinfo_unix.go
|
||||
'' + lib.optionalString stdenv.isDarwin ''
|
||||
substituteInPlace src/race.bash --replace \
|
||||
"sysctl machdep.cpu.extfeatures | grep -qv EM64T" true
|
||||
sed -i 's,strings.Contains(.*sysctl.*,true {,' src/cmd/dist/util.go
|
||||
sed -i 's,"/etc","'"$TMPDIR"'",' src/os/os_test.go
|
||||
sed -i 's,/_go_os_test,'"$TMPDIR"'/_go_os_test,' src/os/path_test.go
|
||||
|
||||
sed -i '/TestChdirAndGetwd/areturn' src/os/os_test.go
|
||||
sed -i '/TestRead0/areturn' src/os/os_test.go
|
||||
sed -i '/TestNohup/areturn' src/os/signal/signal_test.go
|
||||
sed -i '/TestSystemRoots/areturn' src/crypto/x509/root_darwin_test.go
|
||||
|
||||
sed -i '/TestGoInstallRebuildsStalePackagesInOtherGOPATH/areturn' src/cmd/go/go_test.go
|
||||
sed -i '/TestBuildDashIInstallsDependencies/areturn' src/cmd/go/go_test.go
|
||||
|
||||
sed -i '/TestDisasmExtld/areturn' src/cmd/objdump/objdump_test.go
|
||||
|
||||
touch $TMPDIR/group $TMPDIR/hosts $TMPDIR/passwd
|
||||
|
||||
sed -i '1 a\exit 0' misc/cgo/errors/test.bash
|
||||
|
||||
mkdir $topdir/dirtyhacks
|
||||
cat <<EOF > $topdir/dirtyhacks/clang
|
||||
#!${bash}/bin/bash
|
||||
$(type -P clang) "\$@" 2> >(sed '/ld: warning:.*ignoring unexpected dylib file/ d' 1>&2)
|
||||
exit $?
|
||||
EOF
|
||||
chmod +x $topdir/dirtyhacks/clang
|
||||
PATH=$topdir/dirtyhacks:$PATH
|
||||
'';
|
||||
|
||||
patches = [
|
||||
./remove-tools-1.7.patch
|
||||
];
|
||||
|
||||
GOOS = if stdenv.isDarwin then "darwin" else "linux";
|
||||
GOARCH = if stdenv.isDarwin then "amd64"
|
||||
else if stdenv.system == "i686-linux" then "386"
|
||||
else if stdenv.system == "x86_64-linux" then "amd64"
|
||||
else if stdenv.isArm then "arm"
|
||||
else throw "Unsupported system";
|
||||
GOARM = stdenv.lib.optionalString (stdenv.system == "armv5tel-linux") "5";
|
||||
GO386 = 387; # from Arch: don't assume sse2 on i686
|
||||
CGO_ENABLED = 1;
|
||||
GOROOT_BOOTSTRAP = "${goBootstrap}/share/go";
|
||||
|
||||
# The go build actually checks for CC=*/clang and does something different, so we don't
|
||||
# just want the generic `cc` here.
|
||||
CC = if stdenv.isDarwin then "clang" else "cc";
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p "$out/bin"
|
||||
export GOROOT="$(pwd)/"
|
||||
export GOBIN="$out/bin"
|
||||
export PATH="$GOBIN:$PATH"
|
||||
cd ./src
|
||||
echo Building
|
||||
./all.bash
|
||||
'';
|
||||
|
||||
preFixup = ''
|
||||
rm -r $out/share/go/pkg/bootstrap
|
||||
rmdir $out/bin && mv $out/share/go/bin $out/bin
|
||||
'';
|
||||
|
||||
setupHook = ./setup-hook.sh;
|
||||
|
||||
disallowedReferences = [ go_1_4 ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
branch = "1.7";
|
||||
homepage = http://golang.org/;
|
||||
description = "The Go Programming language";
|
||||
license = licenses.bsd3;
|
||||
maintainers = with maintainers; [ cstrahan wkennington ];
|
||||
platforms = platforms.linux ++ platforms.darwin;
|
||||
};
|
||||
}
|
35
pkgs/development/compilers/go/remove-tools-1.7.patch
Normal file
35
pkgs/development/compilers/go/remove-tools-1.7.patch
Normal file
@ -0,0 +1,35 @@
|
||||
diff --git a/src/go/build/build.go b/src/go/build/build.go
|
||||
index 496fe11..8c81dbd 100644
|
||||
--- a/src/go/build/build.go
|
||||
+++ b/src/go/build/build.go
|
||||
@@ -1388,7 +1388,7 @@ func init() {
|
||||
}
|
||||
|
||||
// ToolDir is the directory containing build tools.
|
||||
-var ToolDir = filepath.Join(runtime.GOROOT(), "pkg/tool/"+runtime.GOOS+"_"+runtime.GOARCH)
|
||||
+var ToolDir = runtime.GOTOOLDIR()
|
||||
|
||||
// IsLocalImport reports whether the import path is
|
||||
// a local import path, like ".", "..", "./foo", or "../foo".
|
||||
diff --git a/src/runtime/extern.go b/src/runtime/extern.go
|
||||
index d346362..fb22b6e 100644
|
||||
--- a/src/runtime/extern.go
|
||||
+++ b/src/runtime/extern.go
|
||||
@@ -194,6 +194,17 @@ func GOROOT() string {
|
||||
return defaultGoroot
|
||||
}
|
||||
|
||||
+// GOTOOLDIR returns the root of the Go tree.
|
||||
+// It uses the GOTOOLDIR environment variable, if set,
|
||||
+// or else the root used during the Go build.
|
||||
+func GOTOOLDIR() string {
|
||||
+ s := gogetenv("GOTOOLDIR")
|
||||
+ if s != "" {
|
||||
+ return s
|
||||
+ }
|
||||
+ return GOROOT() + "/pkg/tool/" + GOOS + "_" + GOARCH
|
||||
+}
|
||||
+
|
||||
// Version returns the Go tree's version string.
|
||||
// It is either the commit hash and date at the time of the build or,
|
||||
// when possible, a release tag like "go1.3".
|
@ -2,7 +2,8 @@
|
||||
, gnused, gawk, makeWrapper
|
||||
, odbcSupport ? false, unixODBC ? null
|
||||
, wxSupport ? false, mesa ? null, wxGTK ? null, xorg ? null
|
||||
, enableDebugInfo ? false }:
|
||||
, enableDebugInfo ? false
|
||||
, Carbon ? null, Cocoa ? null }:
|
||||
|
||||
assert wxSupport -> mesa != null && wxGTK != null && xorg != null;
|
||||
assert odbcSupport -> unixODBC != null;
|
||||
@ -23,7 +24,8 @@ stdenv.mkDerivation rec {
|
||||
buildInputs =
|
||||
[ perl gnum4 ncurses openssl makeWrapper
|
||||
] ++ optional wxSupport [ mesa wxGTK xorg.libX11 ]
|
||||
++ optional odbcSupport [ unixODBC ];
|
||||
++ optional odbcSupport [ unixODBC ]
|
||||
++ optional stdenv.isDarwin [ Carbon Cocoa ];
|
||||
|
||||
patchPhase = '' sed -i "s@/bin/rm@rm@" lib/odbc/configure erts/configure '';
|
||||
|
||||
|
@ -1,4 +1,5 @@
|
||||
{ stdenv, fetchurl, perl, icu, zlib, gmp, readline }:
|
||||
{ stdenv, fetchurl, perl, icu, zlib, gmp, readline
|
||||
, CoreServices, ApplicationServices }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "rakudo-star-${version}";
|
||||
@ -9,7 +10,8 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "0czx7w1chf108mpyps7k7nqq8cbsy1rbb87ajms9xj65l4ywg8ka";
|
||||
};
|
||||
|
||||
buildInputs = [ icu zlib gmp readline perl ];
|
||||
buildInputs = [ icu zlib gmp readline perl ]
|
||||
++ stdenv.lib.optionals stdenv.isDarwin [ CoreServices ApplicationServices ];
|
||||
configureScript = "perl ./Configure.pl";
|
||||
configureFlags =
|
||||
[ "--backends=moar"
|
||||
|
@ -12,7 +12,7 @@ stdenv.mkDerivation rec {
|
||||
|
||||
buildInputs = [ cmake perl go ];
|
||||
enableParallelBuilding = true;
|
||||
NIX_CFLAGS_COMPILE = "-Wno-error=cpp";
|
||||
NIX_CFLAGS_COMPILE = "-Wno-error";
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin $out/include $out/lib
|
||||
|
@ -12,6 +12,14 @@ stdenv.mkDerivation {
|
||||
|
||||
buildFlags = [ "libdclxvipairing.so" ];
|
||||
|
||||
patchPhase = ''
|
||||
substituteInPlace Makefile \
|
||||
--replace "gcc" "cc"
|
||||
'' + stdenv.lib.optionalString stdenv.isDarwin ''
|
||||
substituteInPlace Makefile \
|
||||
--replace "-soname=libdclxvipairing.so" "-install_name,libdclxvipairing.so"
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/{include,lib}
|
||||
find . -name \*.h -exec cp {} $out/include \;
|
||||
|
@ -1,4 +1,5 @@
|
||||
{ stdenv, fetchurl, xlibsWrapper, libpng, libjpeg, libtiff, zlib, bzip2, libXcursor, libXrandr, libXft }:
|
||||
{ stdenv, fetchurl, xlibsWrapper, libpng, libjpeg, libtiff, zlib, bzip2, libXcursor, libXrandr, libXft
|
||||
, CoreServices ? null }:
|
||||
|
||||
let
|
||||
version = "1.7.9";
|
||||
@ -12,7 +13,8 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "1jb9368xsin3ppdf6979n5s7in3s9klbxqbwcp0z8misjixl7nzg";
|
||||
};
|
||||
|
||||
buildInputs = [ libpng xlibsWrapper libjpeg libtiff zlib bzip2 libXcursor libXrandr libXft ];
|
||||
buildInputs = [ libpng xlibsWrapper libjpeg libtiff zlib bzip2 libXcursor libXrandr libXft ]
|
||||
++ stdenv.lib.optionals stdenv.isDarwin [ CoreServices ];
|
||||
|
||||
doCheck = true;
|
||||
|
||||
|
@ -1,5 +1,6 @@
|
||||
{ stdenv, fetchurl, pkgconfig, glib, babl, libpng, cairo, libjpeg
|
||||
, librsvg, pango, gtk, bzip2, intltool }:
|
||||
, librsvg, pango, gtk, bzip2, intltool
|
||||
, OpenGL ? null }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "gegl-0.2.0";
|
||||
@ -21,7 +22,8 @@ stdenv.mkDerivation rec {
|
||||
|
||||
NIX_LDFLAGS = if stdenv.isDarwin then "-lintl" else null;
|
||||
|
||||
buildInputs = [ babl libpng cairo libjpeg librsvg pango gtk bzip2 intltool ];
|
||||
buildInputs = [ babl libpng cairo libjpeg librsvg pango gtk bzip2 intltool ]
|
||||
++ stdenv.lib.optional stdenv.isDarwin OpenGL;
|
||||
|
||||
nativeBuildInputs = [ pkgconfig ];
|
||||
|
||||
|
@ -1,4 +1,5 @@
|
||||
{ stdenv, fetchurl, mesa_glu, x11, libXmu, libXi }:
|
||||
{ stdenv, fetchurl, mesa_glu, x11, libXmu, libXi
|
||||
, AGL ? null }:
|
||||
|
||||
with stdenv.lib;
|
||||
|
||||
@ -12,6 +13,7 @@ stdenv.mkDerivation rec {
|
||||
|
||||
nativeBuildInputs = [ x11 libXmu libXi ];
|
||||
propagatedNativeBuildInputs = [ mesa_glu ]; # GL/glew.h includes GL/glu.h
|
||||
buildInputs = [] ++ optionals stdenv.isDarwin [ AGL ];
|
||||
|
||||
patchPhase = ''
|
||||
sed -i 's|lib64|lib|' config/Makefile.linux
|
||||
|
@ -1,4 +1,5 @@
|
||||
{ stdenv, fetchurl, pkgconfig, libnfc, openssl }:
|
||||
{ stdenv, fetchurl, pkgconfig, libnfc, openssl
|
||||
, libobjc ? null }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "libfreefare-${version}";
|
||||
@ -9,7 +10,7 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "0r5wfvwgf35lb1v65wavnwz2wlfyfdims6a9xpslf4lsm4a1v8xz";
|
||||
};
|
||||
|
||||
buildInputs = [ pkgconfig libnfc openssl ];
|
||||
buildInputs = [ pkgconfig libnfc openssl ] ++ stdenv.lib.optional stdenv.isDarwin libobjc;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "The libfreefare project aims to provide a convenient API for MIFARE card manipulations";
|
||||
|
@ -15,7 +15,7 @@ stdenv.mkDerivation rec {
|
||||
homepage = http://sourceforge.net/projects/omxil/;
|
||||
description = "An opensource implementation of the Khronos OpenMAX Integration Layer API to access multimedia components";
|
||||
license = licenses.lgpl21;
|
||||
platforms = platforms.all;
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ wkennington ];
|
||||
};
|
||||
}
|
||||
|
@ -11,6 +11,8 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "1cychxc3ff8fp857iikw0n2s13s2mhw2dn1mr632f7w3sn6vvrww";
|
||||
};
|
||||
|
||||
NIX_LDFLAGS = stdenv.lib.optionalString stdenv.isDarwin "-lintl";
|
||||
|
||||
propagatedBuildInputs = [ glib ];
|
||||
nativeBuildInputs = [ pkgconfig intltool libxslt docbook_xsl ];
|
||||
buildInputs = [ libgcrypt gobjectIntrospection vala_0_32 ];
|
||||
|
@ -1,4 +1,5 @@
|
||||
{ stdenv, fetchurl }:
|
||||
{ stdenv, fetchurl
|
||||
, IOKit ? null }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "libstatgrab-0.91";
|
||||
@ -8,6 +9,8 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "1azinx2yzs442ycwq6p15skl3mscmqj7fd5hq7fckhjp92735s83";
|
||||
};
|
||||
|
||||
buildInputs = [] ++ stdenv.lib.optional stdenv.isDarwin IOKit;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = http://www.i-scream.org/libstatgrab/;
|
||||
description = "A library that provides cross platforms access to statistics about the running system";
|
||||
|
@ -1,4 +1,5 @@
|
||||
{ stdenv, fetchurl }:
|
||||
{ stdenv, fetchurl
|
||||
, CoreServices ? null }:
|
||||
|
||||
let version = "4.12"; in
|
||||
|
||||
@ -27,6 +28,8 @@ stdenv.mkDerivation {
|
||||
moveToOutput share "$dev" # just aclocal
|
||||
'';
|
||||
|
||||
buildInputs = [] ++ stdenv.lib.optionals stdenv.isDarwin [ CoreServices ];
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
meta = {
|
||||
|
@ -11,6 +11,7 @@ stdenv.mkDerivation rec {
|
||||
buildInputs = [ ncurses libiconv ];
|
||||
|
||||
buildPhase = ''
|
||||
sed -i s/gcc/cc/g Makefile
|
||||
sed -i s%ncursesw/ncurses.h%ncurses.h% stfl_internals.h
|
||||
'' + ( stdenv.lib.optionalString stdenv.isDarwin ''
|
||||
sed -i 's/LDLIBS += -lncursesw/LDLIBS += -lncursesw -liconv/' Makefile
|
||||
|
@ -20,6 +20,7 @@ stdenv.mkDerivation {
|
||||
substituteInPlace install/install.mak --replace /usr/local/bin $out/bin
|
||||
substituteInPlace install/install.mak --replace MKDIR=mkdir "MKDIR=mkdir -p"
|
||||
'';
|
||||
buildFlags = [ "CCC=c++" "LD=c++" ];
|
||||
|
||||
meta = {
|
||||
description = "C and C++ Code Counter";
|
||||
|
@ -8,6 +8,8 @@ stdenv.mkDerivation {
|
||||
sha256 = "04k631g9lzvp9xr4sw51xpq1g542np61s1l8fpwx9rbsc8m5l0i6";
|
||||
};
|
||||
|
||||
buildFlags = [ "CC=cc" ];
|
||||
|
||||
installPhase = ''
|
||||
# Manually copy, make install copies to /usr/local/bin
|
||||
mkdir -pv $out/bin/
|
||||
|
@ -10,7 +10,7 @@ stdenv.mkDerivation rec {
|
||||
};
|
||||
|
||||
buildPhase = ''
|
||||
gcc tie.c -o tie
|
||||
cc tie.c -o tie
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
|
@ -28,6 +28,11 @@ stdenv.mkDerivation rec {
|
||||
chmod 755 -R $sourceRoot/libsailing
|
||||
'';
|
||||
|
||||
patchPhase = ''
|
||||
substituteInPlace Makefile \
|
||||
--replace gcc cc
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Simulator daemon for autonomous sailing boats";
|
||||
homepage = https://github.com/sails-simulator/sailsd;
|
||||
|
@ -1,4 +1,4 @@
|
||||
{ stdenv, fetchurl, openssl, libuuid }:
|
||||
{ stdenv, fetchurl, openssl, libuuid, cmake }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "mosquitto";
|
||||
@ -11,7 +11,8 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "1imw5ps0cqda41b574k8hgz9gdr8yy58f76fg8gw14pdnvf3l7sr";
|
||||
};
|
||||
|
||||
buildInputs = [ openssl libuuid ];
|
||||
buildInputs = [ openssl libuuid ]
|
||||
++ stdenv.lib.optional stdenv.isDarwin cmake;
|
||||
|
||||
makeFlags = [
|
||||
"DESTDIR=$(out)"
|
||||
|
@ -16,7 +16,7 @@ stdenv.mkDerivation rec {
|
||||
phases = [ "buildPhase" "installPhase" ];
|
||||
|
||||
buildPhase = ''
|
||||
gcc -O2 -o RunningX $(pkg-config --cflags --libs x11) $src
|
||||
cc -O2 -o RunningX $(pkg-config --cflags --libs x11) $src
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
|
@ -18,7 +18,7 @@ stdenv.mkDerivation rec {
|
||||
buildInputs = [ libX11 imlib2 ]
|
||||
++ stdenv.lib.optional enableXinerama libXinerama;
|
||||
|
||||
buildFlags = if enableXinerama then "xinerama=1" else "xinerama=0";
|
||||
buildFlags = "CC=cc " + (if enableXinerama then "xinerama=1" else "xinerama=0");
|
||||
|
||||
installFlags = "DESTDIR=$(out) PREFIX=";
|
||||
|
||||
|
@ -10,7 +10,9 @@ stdenv.mkDerivation rec {
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace Makefile --replace "prefix = /usr" "prefix = $out"
|
||||
substituteInPlace Makefile \
|
||||
--replace "prefix = /usr" "prefix = $out" \
|
||||
--replace "gcc" "cc"
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
|
@ -9,6 +9,11 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "073h03bmpfdy15qh37lvppayld2747i4acpyk0pm5nf2raiak0zm";
|
||||
};
|
||||
|
||||
patchPhase = ''
|
||||
substituteInPlace Makefile \
|
||||
--replace "gcc" "cc"
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
cp ./dumptorrent $out/bin
|
||||
|
@ -3,6 +3,7 @@
|
||||
, python, freetype, zlib, glib, libungif, libpng, libjpeg, libtiff, libxml2, pango
|
||||
, withGTK ? false, gtk2
|
||||
, withPython ? true
|
||||
, Carbon ? null, Cocoa ? null
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
@ -30,7 +31,8 @@ stdenv.mkDerivation rec {
|
||||
python freetype zlib glib libungif libpng libjpeg libtiff libxml2
|
||||
pango
|
||||
]
|
||||
++ lib.optionals withGTK [ gtk2 ];
|
||||
++ lib.optionals withGTK [ gtk2 ]
|
||||
++ lib.optionals (withGTK && stdenv.isDarwin) [ Carbon Cocoa ];
|
||||
|
||||
configureFlags =
|
||||
lib.optionals (!withPython) [ "--disable-python-scripting" "--disable-python-extension" ]
|
||||
|
@ -13,6 +13,8 @@ stdenv.mkDerivation rec {
|
||||
|
||||
buildInputs = [ ncurses ];
|
||||
|
||||
buildFlags = [ "CC=cc" ];
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin $out/share/man/man1
|
||||
cp sl $out/bin
|
||||
|
@ -9,6 +9,8 @@ stdenv.mkDerivation {
|
||||
|
||||
buildInputs = [xlibsWrapper];
|
||||
|
||||
buildFlags = [ "CC=cc" ];
|
||||
|
||||
installPhase = ''
|
||||
mkdir -pv "$out/bin"
|
||||
mkdir -pv "$out/share/man/man1"
|
||||
|
@ -46,6 +46,6 @@ stdenv.mkDerivation rec {
|
||||
description = "Secure parasitic rdate replacement";
|
||||
homepage = https://github.com/ioerror/tlsdate;
|
||||
maintainers = with maintainers; [ tv fpletz ];
|
||||
platforms = platforms.allBut [ "darwin" ];
|
||||
platforms = platforms.allBut platforms.darwin;
|
||||
};
|
||||
}
|
||||
|
@ -1,4 +1,5 @@
|
||||
{ stdenv, fetchurl, pkgconfig, udev, dbus_libs, perl, python2 }:
|
||||
{ stdenv, fetchurl, pkgconfig, udev, dbus_libs, perl, python2
|
||||
, IOKit ? null }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "pcsclite-${version}";
|
||||
@ -26,7 +27,8 @@ stdenv.mkDerivation rec {
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ pkgconfig perl python2 ];
|
||||
buildInputs = stdenv.lib.optionals stdenv.isLinux [ udev dbus_libs ];
|
||||
buildInputs = stdenv.lib.optionals stdenv.isLinux [ udev dbus_libs ]
|
||||
++ stdenv.lib.optionals stdenv.isDarwin [ IOKit ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Middleware to access a smart card using SCard API (PC/SC)";
|
||||
|
@ -9,6 +9,8 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "1axg8r4g5n5kdqj5013pgck80nni3z172xkg506vz4zx1zcmrm4r";
|
||||
};
|
||||
|
||||
buildFlags = [ "CC=cc" ];
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
mv stricat $out/bin
|
||||
|
@ -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 ];
|
||||
};
|
||||
|
@ -1,4 +1,4 @@
|
||||
{ stdenv, fetchurl, zlib }:
|
||||
{ stdenv, fetchurl, zlib, libiconv }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "odt2txt-0.4";
|
||||
@ -10,7 +10,9 @@ stdenv.mkDerivation rec {
|
||||
|
||||
configurePhase="export makeFlags=\"DESTDIR=$out\"";
|
||||
|
||||
buildInputs = [ zlib ];
|
||||
buildInputs = [ zlib libiconv ];
|
||||
|
||||
NIX_LDFLAGS = stdenv.lib.optionalString stdenv.isDarwin "-liconv";
|
||||
|
||||
meta = {
|
||||
description = "Simple .odt to .txt converter";
|
||||
|
@ -1,4 +1,4 @@
|
||||
{ stdenv, fetchurl, autoconf, automake }:
|
||||
{ stdenv, fetchurl, autoconf, automake, libiconv }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "unrtf-${version}";
|
||||
@ -11,6 +11,9 @@ stdenv.mkDerivation rec {
|
||||
|
||||
nativeBuildInputs = [ autoconf automake ];
|
||||
|
||||
buildInputs = [ ] ++ stdenv.lib.optional stdenv.isDarwin libiconv;
|
||||
NIX_LDFLAGS = stdenv.lib.optionalString stdenv.isDarwin "-liconv";
|
||||
|
||||
preConfigure = "./bootstrap";
|
||||
|
||||
outputs = [ "out" "man" ];
|
||||
|
@ -1603,6 +1603,7 @@ in
|
||||
fontforge = lowPrio (callPackage ../tools/misc/fontforge { });
|
||||
fontforge-gtk = callPackage ../tools/misc/fontforge {
|
||||
withGTK = true;
|
||||
inherit (darwin.apple_sdk.frameworks) Carbon Cocoa;
|
||||
};
|
||||
|
||||
fontmatrix = callPackage ../applications/graphics/fontmatrix {};
|
||||
@ -1615,6 +1616,7 @@ in
|
||||
|
||||
fox = callPackage ../development/libraries/fox/default.nix {
|
||||
libpng = libpng12;
|
||||
inherit (darwin.apple_sdk.frameworks) CoreServices;
|
||||
};
|
||||
|
||||
fox_1_6 = callPackage ../development/libraries/fox/fox-1.6.nix { };
|
||||
@ -3018,7 +3020,9 @@ in
|
||||
|
||||
pciutils = callPackage ../tools/system/pciutils { };
|
||||
|
||||
pcsclite = callPackage ../tools/security/pcsclite { };
|
||||
pcsclite = callPackage ../tools/security/pcsclite {
|
||||
inherit (darwin.apple_sdk.frameworks) IOKit;
|
||||
};
|
||||
|
||||
pcsctools = callPackage ../tools/security/pcsctools {
|
||||
inherit (perlPackages) pcscperl Glib Gtk2 Pango;
|
||||
@ -3493,7 +3497,9 @@ in
|
||||
|
||||
slsnif = callPackage ../tools/misc/slsnif { };
|
||||
|
||||
smartmontools = callPackage ../tools/system/smartmontools { };
|
||||
smartmontools = callPackage ../tools/system/smartmontools {
|
||||
inherit (darwin.apple_sdk.frameworks) IOKit;
|
||||
};
|
||||
|
||||
smbldaptools = callPackage ../tools/networking/smbldaptools {
|
||||
inherit (perlPackages) NetLDAP CryptSmbHash DigestSHA1;
|
||||
@ -4733,7 +4739,11 @@ in
|
||||
inherit (darwin.apple_sdk.frameworks) Security Foundation;
|
||||
};
|
||||
|
||||
go = self.go_1_6;
|
||||
go_1_7 = callPackage ../development/compilers/go/1.7.nix {
|
||||
inherit (darwin.apple_sdk.frameworks) Security Foundation;
|
||||
};
|
||||
|
||||
go = self.go_1_7;
|
||||
|
||||
go-repo-root = callPackage ../development/tools/go-repo-root { };
|
||||
|
||||
@ -5648,7 +5658,9 @@ in
|
||||
|
||||
clooj = callPackage ../development/interpreters/clojure/clooj.nix { };
|
||||
|
||||
erlangR16 = callPackage ../development/interpreters/erlang/R16.nix { };
|
||||
erlangR16 = callPackage ../development/interpreters/erlang/R16.nix {
|
||||
inherit (darwin.apple_sdk.frameworks) Carbon Cocoa;
|
||||
};
|
||||
erlangR16_odbc = callPackage ../development/interpreters/erlang/R16.nix { odbcSupport = true; };
|
||||
erlangR17 = callPackage ../development/interpreters/erlang/R17.nix {
|
||||
inherit (darwin.apple_sdk.frameworks) Carbon Cocoa;
|
||||
@ -5934,7 +5946,9 @@ in
|
||||
|
||||
racket = callPackage ../development/interpreters/racket { };
|
||||
|
||||
rakudo = callPackage ../development/interpreters/rakudo { };
|
||||
rakudo = callPackage ../development/interpreters/rakudo {
|
||||
inherit (darwin.apple_sdk.frameworks) CoreServices ApplicationServices;
|
||||
};
|
||||
|
||||
rascal = callPackage ../development/interpreters/rascal { };
|
||||
|
||||
@ -7285,7 +7299,9 @@ in
|
||||
|
||||
gephi = callPackage ../applications/science/misc/gephi { };
|
||||
|
||||
gegl = callPackage ../development/libraries/gegl { };
|
||||
gegl = callPackage ../development/libraries/gegl {
|
||||
inherit (darwin.apple_sdk.frameworks) OpenGL;
|
||||
};
|
||||
|
||||
gegl_0_3 = callPackage ../development/libraries/gegl/3.0.nix { };
|
||||
|
||||
@ -7338,7 +7354,9 @@ in
|
||||
gle = callPackage ../development/libraries/gle { };
|
||||
|
||||
glew = callPackage ../development/libraries/glew { };
|
||||
glew110 = callPackage ../development/libraries/glew/1.10.nix { };
|
||||
glew110 = callPackage ../development/libraries/glew/1.10.nix {
|
||||
inherit (darwin.apple_sdk.frameworks) AGL;
|
||||
};
|
||||
|
||||
glfw = self.glfw3;
|
||||
glfw2 = callPackage ../development/libraries/glfw/2.x.nix { };
|
||||
@ -8085,7 +8103,9 @@ in
|
||||
|
||||
libffi = callPackage ../development/libraries/libffi { };
|
||||
|
||||
libfreefare = callPackage ../development/libraries/libfreefare { };
|
||||
libfreefare = callPackage ../development/libraries/libfreefare {
|
||||
inherit (darwin) libobjc;
|
||||
};
|
||||
|
||||
libftdi = callPackage ../development/libraries/libftdi { };
|
||||
|
||||
@ -8469,7 +8489,9 @@ in
|
||||
|
||||
libspatialite = callPackage ../development/libraries/libspatialite { };
|
||||
|
||||
libstatgrab = callPackage ../development/libraries/libstatgrab { };
|
||||
libstatgrab = callPackage ../development/libraries/libstatgrab {
|
||||
inherit (darwin.apple_sdk.frameworks) IOKit;
|
||||
};
|
||||
|
||||
libsvm = callPackage ../development/libraries/libsvm { };
|
||||
|
||||
@ -8845,7 +8867,9 @@ in
|
||||
|
||||
non = callPackage ../applications/audio/non { };
|
||||
|
||||
nspr = callPackage ../development/libraries/nspr { };
|
||||
nspr = callPackage ../development/libraries/nspr {
|
||||
inherit (darwin.apple_sdk.frameworks) CoreServices;
|
||||
};
|
||||
|
||||
nss = lowPrio (callPackage ../development/libraries/nss { });
|
||||
nssTools = nss.tools;
|
||||
@ -12460,7 +12484,9 @@ in
|
||||
|
||||
cbc = callPackage ../applications/science/math/cbc { };
|
||||
|
||||
cddiscid = callPackage ../applications/audio/cd-discid { };
|
||||
cddiscid = callPackage ../applications/audio/cd-discid {
|
||||
inherit (darwin) IOKit;
|
||||
};
|
||||
|
||||
cdparanoia = self.cdparanoiaIII;
|
||||
|
||||
@ -13293,7 +13319,9 @@ in
|
||||
|
||||
svox = callPackage ../applications/audio/svox { };
|
||||
|
||||
gkrellm = callPackage ../applications/misc/gkrellm { };
|
||||
gkrellm = callPackage ../applications/misc/gkrellm {
|
||||
inherit (darwin) IOKit;
|
||||
};
|
||||
|
||||
gmu = callPackage ../applications/audio/gmu { };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user