Merge remote-tracking branch 'upstream/staging-next' into HEAD
This commit is contained in:
@@ -0,0 +1,69 @@
|
||||
{ lib
|
||||
, stdenv
|
||||
, fetchzip
|
||||
, autoPatchelfHook
|
||||
, makeWrapper
|
||||
, makeDesktopItem
|
||||
, copyDesktopItems
|
||||
, wrapGAppsHook
|
||||
, gobject-introspection
|
||||
, gdk-pixbuf
|
||||
, jre
|
||||
, androidenv
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "agi";
|
||||
version = "1.1.0-dev-20210413";
|
||||
|
||||
src = fetchzip {
|
||||
url = "https://github.com/google/agi-dev-releases/releases/download/v${version}/agi-${version}-linux.zip";
|
||||
sha256 = "13i6n95d0cjrhx68qsich6xzk5f9ga0y3m19k4z2d58s164rnh0v";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
autoPatchelfHook
|
||||
makeWrapper
|
||||
wrapGAppsHook
|
||||
gdk-pixbuf
|
||||
gobject-introspection
|
||||
copyDesktopItems
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
stdenv.cc.cc.lib
|
||||
];
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
mkdir -p $out/{bin,lib}
|
||||
cp ./{agi,gapis,gapir,gapit,device-info} $out/bin
|
||||
cp lib/gapic.jar $out/lib
|
||||
wrapProgram $out/bin/agi \
|
||||
--add-flags "--vm ${jre}/bin/java" \
|
||||
--add-flags "--jar $out/lib/gapic.jar" \
|
||||
--add-flags "--adb ${androidenv.androidPkgs_9_0.platform-tools}/bin/adb"
|
||||
for i in 16 32 48 64 96 128 256 512 1024; do
|
||||
install -D ${src}/icon.png $out/share/icons/hicolor/''${i}x$i/apps/agi.png
|
||||
done
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
desktopItems = [(makeDesktopItem {
|
||||
name = "agi";
|
||||
desktopName = "Android GPU Inspector";
|
||||
exec = "$out/bin/agi";
|
||||
icon = "agi";
|
||||
type = "Application";
|
||||
categories = "Development;Debugger;Graphics;3DGraphics";
|
||||
terminal = "false";
|
||||
})];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/google/agi/";
|
||||
description = "Android GPU Inspector";
|
||||
license = licenses.asl20;
|
||||
platforms = [ "x86_64-linux" ];
|
||||
maintainers = [ maintainers.ivar ];
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
{ lib
|
||||
, stdenv
|
||||
, fetchurl
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
pname = "pikchr";
|
||||
version = "unstable-2021-04-07";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://pikchr.org/home/tarball/90b6d5b4a3834ff0/pikchr.tar.gz";
|
||||
sha256 = "1cqpnljy12gl82rcbb7mwhgv9szcliwkbwwh67hzdv020h1scxym";
|
||||
};
|
||||
|
||||
# can't open generated html files
|
||||
postPatch = ''
|
||||
substituteInPlace Makefile --replace open "test -f"
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
install -Dm755 pikchr $out/bin/pikchr
|
||||
install -Dm755 pikchr.out $out/lib/pikchr.o
|
||||
install -Dm644 pikchr.h $out/include/pikchr.h
|
||||
'';
|
||||
|
||||
doCheck = true;
|
||||
checkTarget = "test";
|
||||
|
||||
meta = with lib; {
|
||||
description = "A PIC-like markup language for diagrams in technical documentation";
|
||||
homepage = "https://pikchr.org";
|
||||
license = licenses.bsd0;
|
||||
maintainers = with maintainers; [ fgaz ];
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
{ lib, stdenv, fetchFromGitHub, cmake, pkg-config, graphicsmagick, libjpeg
|
||||
, ffmpeg, zlib, libexif }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "timg";
|
||||
version = "1.4.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "hzeller";
|
||||
repo = "timg";
|
||||
rev = "v${version}";
|
||||
sha256 = "10qhjfkbazncmj07y0a6cpmi7ki0l10qzpvi2zh8369yycqqxr8y";
|
||||
};
|
||||
|
||||
buildInputs = [ graphicsmagick ffmpeg libexif libjpeg zlib ];
|
||||
|
||||
nativeBuildInputs = [ cmake pkg-config ];
|
||||
|
||||
cmakeFlags = [
|
||||
"-DTIMG_VERSION_FROM_GIT=Off"
|
||||
"-DWITH_VIDEO_DECODING=On"
|
||||
"-DWITH_VIDEO_DEVICE=On"
|
||||
"-DWITH_OPENSLIDE_SUPPORT=Off" # https://openslide.org/ lib not yet in nix
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://timg.sh/";
|
||||
description = "A terminal image and video viewer";
|
||||
license = licenses.gpl2Only;
|
||||
platforms = platforms.unix;
|
||||
maintainers = with maintainers; [ hzeller ];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user