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
64
pkgs/applications/misc/obinskit/default.nix
Normal file
64
pkgs/applications/misc/obinskit/default.nix
Normal file
|
|
@ -0,0 +1,64 @@
|
|||
{ stdenv
|
||||
, lib
|
||||
, fetchurl
|
||||
, libxkbcommon
|
||||
, systemd
|
||||
, xorg
|
||||
, electron_13
|
||||
, makeWrapper
|
||||
, makeDesktopItem
|
||||
}:
|
||||
let
|
||||
desktopItem = makeDesktopItem rec {
|
||||
name = "Obinskit";
|
||||
exec = "obinskit";
|
||||
icon = "obinskit";
|
||||
desktopName = "Obinskit";
|
||||
genericName = "Obinskit keyboard configurator";
|
||||
categories = [ "Utility" ];
|
||||
};
|
||||
electron = electron_13;
|
||||
in
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "obinskit";
|
||||
version = "1.2.11";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://s3.hexcore.xyz/occ/linux/tar/ObinsKit_${version}_x64.tar.gz";
|
||||
sha256 = "1kcn41wmwcx6q70spa9a1qh7wfrj1sk4v4i58lbnf9kc6vasw41a";
|
||||
};
|
||||
|
||||
unpackPhase = "tar -xzf $src";
|
||||
|
||||
sourceRoot = "ObinsKit_${version}_x64";
|
||||
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
|
||||
dontConfigure = true;
|
||||
dontBuild = true;
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/opt/obinskit
|
||||
|
||||
cp -r resources $out/opt/obinskit/
|
||||
cp -r locales $out/opt/obinskit/
|
||||
|
||||
mkdir -p $out/share/{applications,pixmaps}
|
||||
install resources/icons/tray-darwin@2x.png $out/share/pixmaps/obinskit.png
|
||||
ln -s ${desktopItem}/share/applications/* $out/share/applications
|
||||
'';
|
||||
|
||||
postFixup = ''
|
||||
makeWrapper ${electron}/bin/electron $out/bin/${pname} \
|
||||
--add-flags $out/opt/obinskit/resources/app.asar \
|
||||
--prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath [ stdenv.cc.cc.lib libxkbcommon (lib.getLib systemd) xorg.libXt xorg.libXtst ]}"
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Graphical configurator for Anne Pro and Anne Pro II keyboards";
|
||||
homepage = "https://www.hexcore.xyz/obinskit";
|
||||
license = licenses.unfree;
|
||||
maintainers = with maintainers; [ shou ];
|
||||
platforms = [ "x86_64-linux" ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue