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
37
pkgs/games/ue4/generate-expr-from-cdn.sh
Normal file
37
pkgs/games/ue4/generate-expr-from-cdn.sh
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
#!/bin/sh
|
||||
|
||||
go() {
|
||||
file="$1"
|
||||
|
||||
IFS=$'\n'
|
||||
for pack in $(perl -n -e '/(<Pack .*\/>)/ && print "$1\n"' $file); do
|
||||
remotepath=$(echo "$pack" | perl -n -e '/RemotePath="([^"]*)"/ && print $1')
|
||||
hash=$(echo "$pack" | perl -n -e '/Hash="([^"]*)"/ && print $1')
|
||||
url="http://cdn.unrealengine.com/dependencies/$remotepath/$hash"
|
||||
|
||||
until sha256=$(nix-prefetch-url $url --type sha256); do
|
||||
true
|
||||
done
|
||||
|
||||
cat <<EOF
|
||||
"$hash" = fetchurl {
|
||||
url = $url;
|
||||
sha256 = "$sha256";
|
||||
};
|
||||
EOF
|
||||
done
|
||||
}
|
||||
|
||||
|
||||
cat <<EOF
|
||||
{ fetchurl }:
|
||||
|
||||
{
|
||||
EOF
|
||||
|
||||
go Engine/Build/Commit.gitdeps.xml
|
||||
go Engine/Build/Promoted.gitdeps.xml
|
||||
|
||||
cat <<EOF
|
||||
}
|
||||
EOF
|
||||
Loading…
Add table
Add a link
Reference in a new issue