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
39
pkgs/development/tools/slimerjs/default.nix
Normal file
39
pkgs/development/tools/slimerjs/default.nix
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
{ lib, stdenv, fetchFromGitHub, zip, unzip, firefox, bash }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "slimerjs";
|
||||
version = "1.0.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "laurentj";
|
||||
repo = "slimerjs";
|
||||
sha256 = "sha256-RHd9PqcSkO9FYi5x+09TN7c4fKGf5pCPXjoCUXZ2mvA=";
|
||||
rev = version;
|
||||
};
|
||||
|
||||
buildInputs = [ zip ];
|
||||
nativeBuildInputs = [ unzip ];
|
||||
|
||||
preConfigure = ''
|
||||
test -d src && cd src
|
||||
test -f omni.ja || zip omni.ja -r */
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p "$out"/{bin,share/doc/slimerjs,lib/slimerjs}
|
||||
cp LICENSE README* "$out/share/doc/slimerjs"
|
||||
cp -r * "$out/lib/slimerjs"
|
||||
echo '#!${bash}/bin/bash' >> "$out/bin/slimerjs"
|
||||
echo 'export SLIMERJSLAUNCHER=${firefox}/bin/firefox' >> "$out/bin/slimerjs"
|
||||
echo "'$out/lib/slimerjs/slimerjs' \"\$@\"" >> "$out/bin/slimerjs"
|
||||
chmod a+x "$out/bin/slimerjs"
|
||||
sed -e 's@MaxVersion=[3456][0-9][.]@MaxVersion=99.@' -i "$out/lib/slimerjs/application.ini"
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Gecko-based programmatically-driven browser";
|
||||
license = licenses.mpl20;
|
||||
maintainers = with maintainers; [ raskin ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue