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
46
pkgs/games/20kly/default.nix
Normal file
46
pkgs/games/20kly/default.nix
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
{ lib
|
||||
, fetchFromGitHub
|
||||
, python3Packages
|
||||
}:
|
||||
|
||||
python3Packages.buildPythonApplication rec {
|
||||
pname = "20kly";
|
||||
version = "1.5.0";
|
||||
|
||||
format = "other";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "20kly";
|
||||
repo = "20kly";
|
||||
rev = "v${version}";
|
||||
sha256 = "1zxsxg49a02k7zidx3kgk2maa0vv0n1f9wrl5vch07sq3ghvpphx";
|
||||
};
|
||||
|
||||
patchPhase = ''
|
||||
substituteInPlace lightyears \
|
||||
--replace \
|
||||
"LIGHTYEARS_DIR = \".\"" \
|
||||
"LIGHTYEARS_DIR = \"$out/share\""
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = with python3Packages; [
|
||||
pygame
|
||||
];
|
||||
|
||||
buildPhase = ''
|
||||
python -O -m compileall .
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p "$out/share"
|
||||
cp -r data lib20k lightyears "$out/share"
|
||||
install -Dm755 lightyears "$out/bin/lightyears"
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "A steampunk-themed strategy game where you have to manage a steam supply network";
|
||||
homepage = "http://jwhitham.org.uk/20kly/";
|
||||
license = licenses.gpl2Only;
|
||||
maintainers = with maintainers; [ fgaz ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue