Install yasnippet and vala-snippets packages
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: buildPhase
|
||||
# key: bp
|
||||
# --
|
||||
buildPhase= ''
|
||||
$1
|
||||
'';
|
||||
$0
|
@@ -0,0 +1,8 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: checkPhase
|
||||
# key: ch
|
||||
# --
|
||||
checkPhase= ''
|
||||
$1
|
||||
'';
|
||||
$0
|
@@ -0,0 +1,8 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: configurePhase
|
||||
# key: cp
|
||||
# --
|
||||
configurePhase= ''
|
||||
$1
|
||||
'';
|
||||
$0
|
8
elpa/yasnippet-20160924.2001/snippets/nix-mode/distPhase
Normal file
8
elpa/yasnippet-20160924.2001/snippets/nix-mode/distPhase
Normal file
@@ -0,0 +1,8 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: distPhase
|
||||
# key: dp
|
||||
# --
|
||||
distPhase= ''
|
||||
$1
|
||||
'';
|
||||
$0
|
8
elpa/yasnippet-20160924.2001/snippets/nix-mode/fixPhase
Normal file
8
elpa/yasnippet-20160924.2001/snippets/nix-mode/fixPhase
Normal file
@@ -0,0 +1,8 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: fixPhase
|
||||
# key: fp
|
||||
# --
|
||||
fixPhase= ''
|
||||
$1
|
||||
'';
|
||||
$0
|
@@ -0,0 +1,8 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: installCheckPhase
|
||||
# key: ic
|
||||
# --
|
||||
installCheckPhase= ''
|
||||
$1
|
||||
'';
|
||||
$0
|
12
elpa/yasnippet-20160924.2001/snippets/nix-mode/installPhase
Normal file
12
elpa/yasnippet-20160924.2001/snippets/nix-mode/installPhase
Normal 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
|
@@ -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"
|
||||
))};
|
||||
};
|
||||
}
|
54
elpa/yasnippet-20160924.2001/snippets/nix-mode/package_url
Normal file
54
elpa/yasnippet-20160924.2001/snippets/nix-mode/package_url
Normal 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"
|
||||
))};
|
||||
};
|
||||
}
|
@@ -0,0 +1,8 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: patchPhase
|
||||
# key: pp
|
||||
# --
|
||||
patchPhase = ''
|
||||
$1
|
||||
'';
|
||||
$0
|
5
elpa/yasnippet-20160924.2001/snippets/nix-mode/phases
Normal file
5
elpa/yasnippet-20160924.2001/snippets/nix-mode/phases
Normal 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}";
|
@@ -0,0 +1,8 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: unpackPhase
|
||||
# key: up
|
||||
# --
|
||||
unpackPhase = ''
|
||||
$1
|
||||
'';
|
||||
$0
|
Reference in New Issue
Block a user