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
44
pkgs/tools/misc/xprite-editor/default.nix
Normal file
44
pkgs/tools/misc/xprite-editor/default.nix
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
{ lib, stdenv
|
||||
, fetchFromGitHub
|
||||
, rustPlatform
|
||||
, gtk3
|
||||
, AppKit
|
||||
, pkg-config
|
||||
, python3
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "xprite-editor-unstable";
|
||||
version = "2019-09-22";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "rickyhan";
|
||||
repo = "xprite-editor";
|
||||
rev = "7f899dff982642927024540e4bafd74e4ea5e52a";
|
||||
sha256 = "1k6k8y8gg1vdmyjz27q689q9rliw0rrnzwlpjcd4vlc6swaq9ahx";
|
||||
fetchSubmodules = true;
|
||||
# Rename unicode file name which leads to different checksums on HFS+
|
||||
# vs. other filesystems because of unicode normalization.
|
||||
postFetch = ''
|
||||
mv $out/config/palettes/Sweet\ Guaran*.hex $out/config/palettes/Sweet\ Guarana.hex
|
||||
'';
|
||||
};
|
||||
|
||||
buildInputs = lib.optionals stdenv.isLinux [ gtk3 ]
|
||||
++ lib.optionals stdenv.isDarwin [ AppKit ];
|
||||
|
||||
nativeBuildInputs = lib.optionals stdenv.isLinux [ pkg-config python3 ];
|
||||
|
||||
cargoSha256 = "0z1ip667d1qwvm9md3zg8ib9jixpg7qj5ypwib7r2928h14yg7ck";
|
||||
|
||||
cargoBuildFlags = [ "--bin" "xprite-native" ];
|
||||
|
||||
meta = with lib; {
|
||||
broken = stdenv.isDarwin;
|
||||
homepage = "https://github.com/rickyhan/xprite-editor";
|
||||
description = "Pixel art editor";
|
||||
license = licenses.gpl3;
|
||||
maintainers = [ maintainers.marsam ];
|
||||
platforms = platforms.linux ++ platforms.darwin;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue