Merge branch 'master' into stdenv-updates
Conflicts (simple): pkgs/applications/networking/browsers/chromium/default.nix pkgs/development/libraries/libsoup/default.nix pkgs/os-specific/linux/kernel/manual-config.nix pkgs/os-specific/linux/qemu-kvm/default.nix
This commit is contained in:
16
pkgs/development/tools/haskell/packunused/default.nix
Normal file
16
pkgs/development/tools/haskell/packunused/default.nix
Normal file
@@ -0,0 +1,16 @@
|
||||
{ cabal, Cabal, cmdargs, filepath, haskellSrcExts }:
|
||||
|
||||
cabal.mkDerivation (self: {
|
||||
pname = "packunused";
|
||||
version = "0.1.0.0";
|
||||
sha256 = "131x99id3jcxglj24p5sjb6mnhphj925pp4jdjy09y6ai7wss3rs";
|
||||
isLibrary = false;
|
||||
isExecutable = true;
|
||||
buildDepends = [ Cabal cmdargs filepath haskellSrcExts ];
|
||||
meta = {
|
||||
homepage = "https://github.com/hvr/packunused";
|
||||
description = "Tool for detecting redundant Cabal package dependencies";
|
||||
license = self.stdenv.lib.licenses.bsd3;
|
||||
platforms = self.ghc.meta.platforms;
|
||||
};
|
||||
})
|
||||
37
pkgs/development/tools/selenium/chromedriver/default.nix
Normal file
37
pkgs/development/tools/selenium/chromedriver/default.nix
Normal file
@@ -0,0 +1,37 @@
|
||||
{ stdenv, fetchurl, cairo, fontconfig, freetype, gdk_pixbuf, glib
|
||||
, glibc, gtk, libX11, makeWrapper, nspr, nss, pango, unzip
|
||||
}:
|
||||
|
||||
# note: there is a i686 version available as well
|
||||
assert stdenv.system == "x86_64-linux";
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "chromedriver_linux64_26.0.1383.0";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://chromedriver.googlecode.com/files/${name}.zip";
|
||||
sha256 = "0fh4r2rcpjc3nfrdyj256kjlyc0b6mhxqwxcah73q4vm1kjax8rs";
|
||||
};
|
||||
|
||||
buildInputs = [
|
||||
cairo fontconfig freetype gdk_pixbuf glib gtk libX11 makeWrapper
|
||||
nspr nss pango unzip
|
||||
];
|
||||
|
||||
unpackPhase = "unzip $src";
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
mv chromedriver $out/bin
|
||||
patchelf --set-interpreter ${glibc}/lib/ld-linux-x86-64.so.2 $out/bin/chromedriver
|
||||
wrapProgram "$out/bin/chromedriver" \
|
||||
--prefix LD_LIBRARY_PATH : "$(cat ${stdenv.gcc}/nix-support/orig-gcc)/lib64:${cairo}/lib:${fontconfig}/lib:${freetype}/lib:${gdk_pixbuf}/lib:${glib}/lib:${gtk}/lib:${libX11}/lib:${nspr}/lib:${nss}/lib:${pango}/lib:\$LD_LIBRARY_PATH"
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = http://code.google.com/p/chromedriver/;
|
||||
description = "A WebDriver server for running Selenium tests on Chrome";
|
||||
license = licenses.bsd3;
|
||||
maintainers = [ maintainers.goibhniu ];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user