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
86
pkgs/tools/games/ajour/default.nix
Normal file
86
pkgs/tools/games/ajour/default.nix
Normal file
|
|
@ -0,0 +1,86 @@
|
|||
{ stdenv
|
||||
, lib
|
||||
, fetchFromGitHub
|
||||
, rustPlatform
|
||||
, autoPatchelfHook
|
||||
, cmake
|
||||
, makeWrapper
|
||||
, pkg-config
|
||||
, python3
|
||||
, expat
|
||||
, freetype
|
||||
, kdialog
|
||||
, zenity
|
||||
, openssl
|
||||
, libglvnd
|
||||
, libX11
|
||||
, libxcb
|
||||
, libXcursor
|
||||
, libXi
|
||||
, libxkbcommon
|
||||
, libXrandr
|
||||
, vulkan-loader
|
||||
, wayland
|
||||
}:
|
||||
|
||||
let
|
||||
rpathLibs = [
|
||||
libglvnd
|
||||
libXcursor
|
||||
libXi
|
||||
libxkbcommon
|
||||
libXrandr
|
||||
libX11
|
||||
vulkan-loader
|
||||
wayland
|
||||
];
|
||||
|
||||
in rustPlatform.buildRustPackage rec {
|
||||
pname = "Ajour";
|
||||
version = "1.3.2";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "casperstorm";
|
||||
repo = "ajour";
|
||||
rev = version;
|
||||
sha256 = "sha256-oVaNLclU0EVNtxAASE8plXcC+clkwhBeb9pz1vXufV0=";
|
||||
};
|
||||
|
||||
cargoSha256 = "sha256-Q+wYBLsZN8YQtUJfrxmjImbnWRPmngJPB8sDG65LuJY=";
|
||||
|
||||
nativeBuildInputs = [
|
||||
autoPatchelfHook
|
||||
cmake
|
||||
makeWrapper
|
||||
pkg-config
|
||||
python3
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
expat
|
||||
freetype
|
||||
openssl
|
||||
libxcb
|
||||
libX11
|
||||
libxkbcommon
|
||||
];
|
||||
|
||||
fixupPhase = ''
|
||||
patchelf --set-rpath "${lib.makeLibraryPath rpathLibs}:$(patchelf --print-rpath $out/bin/ajour)" $out/bin/ajour
|
||||
wrapProgram $out/bin/ajour --prefix PATH ":" ${lib.makeBinPath [ zenity kdialog ]}
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "World of Warcraft addon manager written in Rust";
|
||||
longDescription = ''
|
||||
Ajour is a World of Warcraft addon manager written in Rust with a
|
||||
strong focus on performance and simplicity. The project is
|
||||
completely advertisement free, privacy respecting and open source.
|
||||
'';
|
||||
homepage = "https://github.com/casperstorm/ajour";
|
||||
changelog = "https://github.com/casperstorm/ajour/blob/master/CHANGELOG.md";
|
||||
license = licenses.mit;
|
||||
broken = stdenv.isDarwin;
|
||||
maintainers = with maintainers; [ hexa ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue