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
77
pkgs/development/web/cypress/default.nix
Normal file
77
pkgs/development/web/cypress/default.nix
Normal file
|
|
@ -0,0 +1,77 @@
|
|||
{ alsa-lib
|
||||
, autoPatchelfHook
|
||||
, callPackage
|
||||
, fetchzip
|
||||
, gtk2
|
||||
, gtk3
|
||||
, lib
|
||||
, mesa
|
||||
, nss
|
||||
, stdenv
|
||||
, udev
|
||||
, unzip
|
||||
, wrapGAppsHook
|
||||
, xorg
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "cypress";
|
||||
version = "9.6.0";
|
||||
|
||||
src = fetchzip {
|
||||
url = "https://cdn.cypress.io/desktop/${version}/linux-x64/cypress.zip";
|
||||
sha256 = "Mac6lmwQqbj9EPfpG0iLI8Qx04q7E0swmTqXx0J+Sdc=";
|
||||
};
|
||||
|
||||
# don't remove runtime deps
|
||||
dontPatchELF = true;
|
||||
|
||||
nativeBuildInputs = [ autoPatchelfHook wrapGAppsHook unzip ];
|
||||
|
||||
buildInputs = with xorg; [
|
||||
libXScrnSaver
|
||||
libXdamage
|
||||
libXtst
|
||||
libxshmfence
|
||||
] ++ [
|
||||
nss
|
||||
gtk2
|
||||
alsa-lib
|
||||
gtk3
|
||||
mesa # for libgbm
|
||||
];
|
||||
|
||||
runtimeDependencies = [ (lib.getLib udev) ];
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p $out/bin $out/opt/cypress
|
||||
cp -vr * $out/opt/cypress/
|
||||
# Let's create the file binary_state ourselves to make the npm package happy on initial verification.
|
||||
# Cypress now verifies version by reading bin/resources/app/package.json
|
||||
mkdir -p $out/bin/resources/app
|
||||
printf '{"version":"%b"}' $version > $out/bin/resources/app/package.json
|
||||
# Cypress now looks for binary_state.json in bin
|
||||
echo '{"verified": true}' > $out/binary_state.json
|
||||
ln -s $out/opt/cypress/Cypress $out/bin/Cypress
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
passthru = {
|
||||
updateScript = ./update.sh;
|
||||
|
||||
tests = {
|
||||
example = callPackage ./cypress-example-kitchensink { };
|
||||
};
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
description = "Fast, easy and reliable testing for anything that runs in a browser";
|
||||
homepage = "https://www.cypress.io";
|
||||
license = licenses.mit;
|
||||
platforms = [ "x86_64-linux" ];
|
||||
maintainers = with maintainers; [ tweber mmahut ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue