slimerjs: 0.10.2 -> 0.10.3

This commit is contained in:
Michael Raskin 2017-03-13 08:23:19 +01:00
parent 8799254eac
commit 7dc3edaa6a

View File

@ -1,13 +1,14 @@
{stdenv, fetchurl, fetchgit, zip, unzip, firefox, bash}: {stdenv, fetchurl, fetchgit, fetchFromGitHub, zip, unzip, firefox, bash}:
let let
s = # Generated upstream information s = # Generated upstream information
rec { rec {
baseName="slimerjs"; baseName="slimerjs";
version="0.10.2"; version="0.10.3";
name="${baseName}-${version}"; name="${baseName}-${version}";
hash="16pg12bvfqls707nsdqi3bl1c833kncsvnd0qiq5692lrh93x529"; owner = "laurentj";
url="http://download.slimerjs.org/releases/0.10.2/slimerjs-0.10.2.zip"; repo = "${baseName}";
sha256="16pg12bvfqls707nsdqi3bl1c833kncsvnd0qiq5692lrh93x529"; sha256="16v6a1kcq8il4snbrgsq5xmxs35alzf4qlmscr2yli95xq5fnl5y";
rev = "${version}";
}; };
buildInputs = [ buildInputs = [
unzip zip unzip zip
@ -16,12 +17,15 @@ in
stdenv.mkDerivation { stdenv.mkDerivation {
inherit (s) name version; inherit (s) name version;
inherit buildInputs; inherit buildInputs;
src = fetchurl { #src = fetchurl {
inherit (s) url sha256; # inherit (s) url sha256;
}; #};
#src = fetchgit { #src = fetchgit {
# inherit (s) url sha256 rev; # inherit (s) url sha256 rev;
#}; #};
src = fetchFromGitHub {
inherit (s) owner repo rev sha256;
};
preConfigure = '' preConfigure = ''
test -d src && cd src test -d src && cd src
test -f omni.ja || zip omni.ja -r */ test -f omni.ja || zip omni.ja -r */