forked from NixOS/nixpkgs
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
29 changed files
with
462 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ stdenv, fetchgit, emacs, pcache, logito }: | ||
|
||
stdenv.mkDerivation rec { | ||
name = "gh-0.5.3"; | ||
|
||
src = fetchgit { | ||
url = "https://github.com/sigma/gh.el.git"; | ||
rev = "v0.5.3"; | ||
sha256 = "efa231e0091e8c7785385149dc97b2d8dc24aba65f4b0974b8ed7f62b7596ad3"; | ||
}; | ||
|
||
buildInputs = [ emacs ]; | ||
propagatedUserEnvPkgs = [ pcache logito ]; | ||
|
||
patchPhase = '' | ||
sed -i Makefile \ | ||
-e "s|^ *EFLAGS *=|& -L ${pcache}/share/emacs/site-lisp -L ${logito}/share/emacs/site-lisp --eval '(setq user-emacs-directory \"./\")'|" \ | ||
-e "s|/usr/local|$out|" \ | ||
-e "s|/site-lisp/\$(PKGNAME)|/site-lisp|" | ||
''; | ||
|
||
buildPhase = "make lisp"; | ||
|
||
meta = { | ||
description = "A (very early) GitHub client library for Emacs"; | ||
homepage = https://github.com/sigma/gh.el; | ||
license = "GPLv2+"; | ||
|
||
platforms = stdenv.lib.platforms.all; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{ stdenv, fetchgit, emacs, gh, pcache, logito }: | ||
|
||
stdenv.mkDerivation rec { | ||
name = "gist-1.0"; | ||
|
||
src = fetchgit { | ||
url = "https://github.com/sigma/gist.el.git"; | ||
rev = "bbb457e4eaaf5f96cfaaa4f63021e3e542bfbfed"; | ||
sha256 = "469f9df52076d0c6038183cff4b9415bca98de66c08814a60b69729b44bdf294"; | ||
}; | ||
|
||
buildInputs = [ emacs ]; | ||
|
||
buildPhase = '' | ||
emacs -L ${gh}/share/emacs/site-lisp \ | ||
-L ${pcache}/share/emacs/site-lisp \ | ||
-L ${logito}/share/emacs/site-lisp \ | ||
--eval '(setq user-emacs-directory "./")' \ | ||
--batch -f batch-byte-compile gist.el | ||
''; | ||
|
||
propagatedUserEnvPkgs = [ gh pcache logito ]; | ||
|
||
installPhase = '' | ||
install -d $out/share/emacs/site-lisp | ||
install gist.el gist.elc $out/share/emacs/site-lisp | ||
''; | ||
|
||
meta = { | ||
description = "Emacs integration for gist.github.com"; | ||
homepage = https://github.com/sigma/gist.el; | ||
license = "GPLv2+"; | ||
|
||
platforms = stdenv.lib.platforms.all; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ stdenv, fetchgit, emacs }: | ||
|
||
stdenv.mkDerivation rec { | ||
name = "logito-0.1"; | ||
|
||
src = fetchgit { | ||
url = "https://github.com/sigma/logito.git"; | ||
rev = "v0.1"; | ||
sha256 = "b9a7433417eafc5bc158f63dddf559b2044368eb3061f0264169de319c68fe4a"; | ||
}; | ||
|
||
buildInputs = [ emacs ]; | ||
|
||
buildPhase = '' | ||
emacs --batch -f batch-byte-compile logito.el | ||
''; | ||
|
||
installPhase = '' | ||
install -d $out/share/emacs/site-lisp | ||
install logito.el logito.elc $out/share/emacs/site-lisp | ||
''; | ||
|
||
meta = { | ||
description = "tiny logging framework for Emacs"; | ||
homepage = https://github.com/sigma/logito; | ||
license = "GPLv2+"; | ||
|
||
platforms = stdenv.lib.platforms.all; | ||
}; | ||
} |
32 changes: 32 additions & 0 deletions
32
pkgs/applications/editors/emacs-modes/lorem-ipsum/default.nix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ stdenv, fetchurl, emacs }: | ||
|
||
stdenv.mkDerivation rec { | ||
name = "lorem-ipsum-0.1"; | ||
|
||
src = fetchurl { | ||
url = "http://www.emacswiki.org/emacs/download/lorem-ipsum.el"; | ||
sha256 = "122d0z3xqfaikgk34l7bh989mfxddin2ljinysp2lqw8djfi7jsl"; | ||
}; | ||
|
||
phases = [ "buildPhase" "installPhase"]; | ||
|
||
buildInputs = [ emacs ]; | ||
|
||
buildPhase = '' | ||
cp $src lorem-ipsum.el | ||
emacs --batch -f batch-byte-compile lorem-ipsum.el | ||
''; | ||
|
||
installPhase = '' | ||
install -d $out/share/emacs/site-lisp | ||
install lorem-ipsum.el lorem-ipsum.elc $out/share/emacs/site-lisp | ||
''; | ||
|
||
meta = { | ||
description = "Insert dummy pseudo Latin text for emacs."; | ||
homepage = http://www.emacswiki.org/emacs/LoremIpsum; | ||
license = "GPLv2+"; | ||
|
||
platforms = stdenv.lib.platforms.all; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ stdenv, fetchgit, emacs }: | ||
|
||
stdenv.mkDerivation rec { | ||
name = "pcache-0.2.3"; | ||
|
||
src = fetchgit { | ||
url = "https://github.com/sigma/pcache.git"; | ||
rev = "v0.2.3"; | ||
sha256 = "f7cdad5a729b24f96ec69db4adfd19daf45c27aaf3a0267385b252cb2e59daa0"; | ||
}; | ||
|
||
buildInputs = [ emacs ]; | ||
|
||
buildPhase = '' | ||
emacs --batch -f batch-byte-compile pcache.el | ||
''; | ||
|
||
installPhase = '' | ||
install -d $out/share/emacs/site-lisp | ||
install pcache.el pcache.elc $out/share/emacs/site-lisp | ||
''; | ||
|
||
meta = { | ||
description = "Persistent caching for Emacs"; | ||
homepage = https://github.com/sigma/pcache.el; | ||
license = "GPLv2+"; | ||
|
||
platforms = stdenv.lib.platforms.all; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ stdenv, fetchurl, libX11, ncurses}: | ||
|
||
stdenv.mkDerivation rec { | ||
name = "st-0.2.1"; | ||
|
||
src = fetchurl { | ||
url = http://hg.suckless.org/st/archive/0.2.1.tar.gz; | ||
sha256 = "15yqyys69ifjc4vrzvamrg7x0pwa60mnjpi0kap4y9ykhds83xab"; | ||
}; | ||
|
||
buildInputs = [ libX11 ncurses ]; | ||
|
||
installPhase = '' | ||
TERMINFO=$out/share/terminfo make install PREFIX=$out | ||
''; | ||
|
||
meta = { | ||
homepage = http://st.suckless.org/; | ||
license = "MIT"; | ||
maintainers = with stdenv.lib.maintainers; [viric]; | ||
platforms = with stdenv.lib.platforms; linux; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
Go comes with hardcoded cacert. We add the usual in NixOS, | ||
for easier NixOS life. | ||
|
||
diff --git a/src/pkg/crypto/x509/root_unix.go b/src/pkg/crypto/x509/root_unix.go | ||
index 76e79f4..6ef1dd3 100644 | ||
--- a/src/pkg/crypto/x509/root_unix.go | ||
+++ b/src/pkg/crypto/x509/root_unix.go | ||
@@ -15,6 +15,7 @@ var certFiles = []string{ | ||
"/etc/ssl/ca-bundle.pem", // OpenSUSE | ||
"/etc/ssl/cert.pem", // OpenBSD | ||
"/usr/local/share/certs/ca-root-nss.crt", // FreeBSD | ||
+ "/etc/ssl/certs/ca-bundle.crt", // NixOS | ||
} | ||
|
||
func (c *Certificate) systemVerify(opts *VerifyOptions) (chains [][]*Certificate, err error) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
pkgs/development/libraries/haskell/digestive-functors-heist/default.nix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ cabal, digestiveFunctors, heist, text, xmlhtml }: | ||
|
||
cabal.mkDerivation (self: { | ||
pname = "digestive-functors-heist"; | ||
version = "0.5.0.0"; | ||
sha256 = "1cqzpnr53mailnmjgkbqk4f4hrjd84h6682mr8x7qg5v27zvcdbn"; | ||
buildDepends = [ digestiveFunctors heist text xmlhtml ]; | ||
meta = { | ||
homepage = "http://github.com/jaspervdj/digestive-functors"; | ||
description = "Heist frontend for the digestive-functors library"; | ||
license = self.stdenv.lib.licenses.bsd3; | ||
platforms = self.ghc.meta.platforms; | ||
}; | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.