Skip to content

Instantly share code, notes, and snippets.

{ autoPatchelfHook, appimageTools, pkgs, desktop-file-utils, stdenv, fetchurl
, fetchzip, fetchFromGitHub }:
# fetchzip is for compatibility, bother AppImage builder about that :
# https://docs.appimage.org/packaging-guide/distribution.html#do-not-put-appimages-into-other-archives
let
self = appimagePackages;
appimagePackages = with self; {
#!@shell@
if [ ! -z "$DEBUG" ] ; then
env
set -x
fi
export PATH=@path@
# src : AppImage
# dest : let's unpack() create the directory
#!@bash@/bin/bash
set -x
export PATH=/empty
for i in @path@; do PATH=$PATH:$i/bin; done
# src : AppImage
# dest : let's unpack() create the directory
unpack() {
src=$1
out=$2
{ stdenv, buildFHSUserEnv, writeScript, pkgs
, bash, radare2, jq, squashfsTools
, coreutils, file, libarchive, runtimeShell }:
rec {
/* appimage-exec = stdenv.mkDerivation { */
#inherit pname version;
/* name = "appimage-exec"; */
{ stdenv, buildFHSUserEnv, writeScript
, bash, radare2, jq, squashfsTools
, coreutils, file, libarchive, runtimeShell }:
rec {
appimage-exec = stdenv.mkDerivation {
#inherit pname version;
name = "appimage-exec";
#!${runtimeShell}
if [ $# -eq 0 ]; then
echo "Usage: $0 FILE [OPTION...]"
echo
echo 'Options are passed on to the appimage.'
echo "If you want to execute a custom command in the appimage's environment, set the APPIMAGE_DEBUG_EXEC environment variable."
exit 1
fi
APPIMAGE="$(realpath "$1")"
shift
{ buildFHSUserEnv, coreutils, file, libarchive, runtimeShell
, extraPkgs ? pkgs: [], appimageTools, stdenv }:
let
version = "1.0";
fhsArgs = appimageTools.defaultFhsEnvArgs;
appimage-exec = stdenv.mkDerivation {
#inherit pname version;
# TomTom CPU : S3C2412XL-26 ARM926EJ ARM CPU with 8KB I-Cache/8KB DCache/MMU
# nix-shell -I nixpkgs=/home/genesis/devel/nixpkgs
let
self: super: { SDL = super.SDL.override {openglSupport = false;}; };
#moz_overlay = import ();
#nixpkgs = import <nixpkgs> { overlays = [ moz_overlay ]; };
#nixpkgs = import <nixpkgs> { };
in
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header:
EAPI=5
inherit qmake-utils
DESCRIPTION="a full featured webcam capture application."
HOMEPAGE="https://webcamoid.github.io"
#!/usr/bin/env python
import gtk, threading, datetime, urllib2, json
import Image, ImageChops, ImageStat, StringIO
CONFIG_FILE = "config.json"
# config sample
#{
# "sensivity": 10,