Install yasnippet and vala-snippets packages

This commit is contained in:
Gergely Polonkai
2016-10-20 10:20:38 +02:00
parent d1468f35a7
commit a498706564
1085 changed files with 12052 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
# -*- mode: snippet -*-
# name: buildPhase
# key: bp
# --
buildPhase= ''
$1
'';
$0

View File

@@ -0,0 +1,8 @@
# -*- mode: snippet -*-
# name: checkPhase
# key: ch
# --
checkPhase= ''
$1
'';
$0

View File

@@ -0,0 +1,8 @@
# -*- mode: snippet -*-
# name: configurePhase
# key: cp
# --
configurePhase= ''
$1
'';
$0

View File

@@ -0,0 +1,8 @@
# -*- mode: snippet -*-
# name: distPhase
# key: dp
# --
distPhase= ''
$1
'';
$0

View File

@@ -0,0 +1,8 @@
# -*- mode: snippet -*-
# name: fixPhase
# key: fp
# --
fixPhase= ''
$1
'';
$0

View File

@@ -0,0 +1,8 @@
# -*- mode: snippet -*-
# name: installCheckPhase
# key: ic
# --
installCheckPhase= ''
$1
'';
$0

View File

@@ -0,0 +1,12 @@
# -*- mode: snippet -*-
# name: installPhase
# key: ip
# --
installPhase= ''
${1: mkdir -p \$out/bin
for f in \$(find . -executable -type f);
do
cp \$f \$out/bin/
done}
'';
$0

View File

@@ -0,0 +1,56 @@
# -*- mode: snippet -*-
# name: package github
# key: pg
# --
{ stdenv, fetchFromGitHub$1 }:
stdenv.mkDerivation rec {
name = "$2-\$\{version\}";
version = "$3";
src = fetchFromGitHub {
owner = "$4";
repo = "$2";
rev = "${5:v\$\{version\}}";
sha256 = "$6";
};
buildInputs = [ $1];
meta = {
description = "$7";
homepage = https://${8:github.com/$4/$2};
license = stdenv.lib.licenses.${9:$$
(yas-choose-value '(
"agpl3"
"asl20"
"bsd2"
"bsd3"
"gpl2"
"gpl3"
"lgpl3"
"mit"
))};
maintainers = [ stdenv.lib.maintainers.$10 ];
platforms = stdenv.lib.platforms.${11:$$
(yas-choose-value '(
"gnu"
"linux"
"darwin"
"freebsd"
"openbsd"
"netbsd"
"cygwin"
"illumos"
"unix"
"all"
"none"
"allBut"
"mesaPlatforms"
"x86"
"i686"
"arm"
"mips"
))};
};
}

View File

@@ -0,0 +1,54 @@
# -*- mode: snippet -*-
# name: package url
# key: pu
# --
{ stdenv, fetchurl$1}:
stdenv.mkDerivation rec {
version = "$2";
name = "$3-\$\{version\}";
src = fetchurl {
url = "$4";
sha256 = "$5";
};
buildInputs = [ $1 ];
meta = {
description = "$6";
homepage = https://$7;
license = stdenv.lib.licenses.${8:$$
(yas-choose-value '(
"agpl3"
"asl20"
"bsd2"
"bsd3"
"gpl2"
"gpl3"
"lgpl3"
"mit"
))};
maintainers = [ stdenv.lib.maintainers.$9 ];
platforms = stdenv.lib.platforms.${10:$$
(yas-choose-value '(
"gnu"
"linux"
"darwin"
"freebsd"
"openbsd"
"netbsd"
"cygwin"
"illumos"
"unix"
"all"
"none"
"allBut"
"mesaPlatforms"
"x86"
"i686"
"arm"
"mips"
))};
};
}

View File

@@ -0,0 +1,8 @@
# -*- mode: snippet -*-
# name: patchPhase
# key: pp
# --
patchPhase = ''
$1
'';
$0

View File

@@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: phases
# key: ph
# --
phases="${1:\$prePhases unpackPhase patchPhase \$preConfigurePhases configurePhase \$preBuildPhases buildPhase checkPhase \$preInstallPhases installPhase fixupPhase installCheckPhase \$preDistPhases distPhase \$postPhases}";

View File

@@ -0,0 +1,8 @@
# -*- mode: snippet -*-
# name: unpackPhase
# key: up
# --
unpackPhase = ''
$1
'';
$0