Skip to content

Instantly share code, notes, and snippets.

{ stdenv, fetchurl, dpkg }:
stdenv.mkDerivation rec {
pname = "etcher-bin";
version = "1.5.26";
src = fetchurl {
url = "https://github.com/balena-io/etcher/releases/download/v${version}/balena-etcher-electron_${version}_amd64.deb";
sha256 = "0hskc74y7p4j1x33yx0w4fvr610p2yimas8pxhr6bs7mb9b300h7";
};
{ stdenv, fetchurl, dpkg, makeWrapper }:
stdenv.mkDerivation rec {
pname = "etcher-bin";
version = "1.5.26";
src = fetchurl {
url = "https://github.com/balena-io/etcher/releases/download/v${version}/balena-etcher-electron_${version}_amd64.deb";
sha256 = "01zsgi420vbllfzwz86j8daqgbywf5vvaf3rlk0cka8plgy505ji";
};
TARGET = main
LIBS = -lm
CC = gcc
CFLAGS = -g -Wall
ODIR = ./build
SDIR = ./src
.PHONY: default all clean
default: $(ODIR)/$(TARGET)
{ pkgs ? import <nixpkgs> {}, stdenv, fetchFromGitHub, ... }:
stdenv.mkDerivation rec {
pname = "lantern";
version = "5.3.8";
src = fetchFromGitHub {
owner = "getlantern";
repo = "lantern";
rev = "${version}";
// Config file of V2Ray. This file follows standard JSON format, with comments support.
// Uncomment entries below to satisfy your needs. Also read our manual for more detail at
// https://www.v2ray.com/
{
"log": {
// By default, V2Ray writes access log to stdout.
"access": "/home/linarcx/v2ray.acc",
// By default, V2Ray write error log to stdout.
"error": "/home/linarcx/v2ray.err",
{ lib, stdenv, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
name = "v2ray";
version = "4.18.1";
src = fetchFromGitHub {
owner = "v2ray";
repo = "v2ray-core";
rev = "v${version}";
{ config, pkgs, lib, ... }:
let
cfg = config.services.v2ray;
inherit (lib) mkEnableOption mkIf;
in
{
# interface
options = {
TARGET = main
LIBS = `pkg-config --libs -cflags gtkmm-3.0`
CXX = g++
CFLAGS = -g -Wall
ODIR = ./build
SDIR = ./src
OBJECTS = $(patsubst $(SDIR)/**/%.cpp, $(ODIR)/%.o, $(wildcard $(SDIR)/*.cpp))
HEADERS = $(wildcard $(SDIR)/*.h)
PROJECT(PandocGui)
CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
FIND_PACKAGE(PkgConfig REQUIRED)
PKG_CHECK_MODULES(GTKMM3 REQUIRED gtkmm-3.0)
# Setup CMake to use GTKMM3.0.
# Tell the compiler where to look for headers and to the linker where to look for libraries
INCLUDE_DIRECTORIES(${GTKMM3_INCLUDE_DIRS})
LINK_DIRECTORIES(${GTKMM3_LIBRARY_DIRS})
import QtQuick 2.11
import QtQuick.Controls 2.4
import QtQuick.Controls.impl 2.4
import QtQuick.Templates 2.4 as T
T.Button {
id: control
property string iconFamily
property string iconName