Merge remote-tracking branch 'upstream/master'
This commit is contained in:
commit
005322ec95
@ -6,6 +6,7 @@
|
|||||||
|
|
||||||
_1126 = "Christian Lask <mail@elfsechsundzwanzig.de>";
|
_1126 = "Christian Lask <mail@elfsechsundzwanzig.de>";
|
||||||
aforemny = "Alexander Foremny <alexanderforemny@googlemail.com>";
|
aforemny = "Alexander Foremny <alexanderforemny@googlemail.com>";
|
||||||
|
ak = "Alexander Kjeldaas <ak@formalprivacy.com>";
|
||||||
akc = "Anders Claesson <akc@akc.is>";
|
akc = "Anders Claesson <akc@akc.is>";
|
||||||
algorith = "Dries Van Daele <dries_van_daele@telenet.be>";
|
algorith = "Dries Van Daele <dries_van_daele@telenet.be>";
|
||||||
all = "Nix Committers <nix-commits@lists.science.uu.nl>";
|
all = "Nix Committers <nix-commits@lists.science.uu.nl>";
|
||||||
|
@ -1,15 +1,16 @@
|
|||||||
{ cabal, emacs, haskellSrcExts }:
|
{ cabal, emacs, haskellMode, haskellSrcExts }:
|
||||||
|
|
||||||
cabal.mkDerivation (self: {
|
cabal.mkDerivation (self: {
|
||||||
pname = "structured-haskell-mode";
|
pname = "structured-haskell-mode";
|
||||||
version = "1.0.2";
|
version = "1.0.3";
|
||||||
sha256 = "1lwdhlr38y5hdr78nplplr3q0hrjhryw378f1857qh0lvp03gwl2";
|
sha256 = "0axmw8bj51q8v0wd4jp6giw9dnv0mp7kp8yd16s4nm4hcqgrh5h2";
|
||||||
isLibrary = false;
|
isLibrary = false;
|
||||||
isExecutable = true;
|
isExecutable = true;
|
||||||
buildDepends = [ haskellSrcExts ];
|
buildDepends = [ haskellSrcExts haskellMode ];
|
||||||
buildTools = [ emacs ];
|
buildTools = [ emacs ];
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
emacs -L elisp --batch -f batch-byte-compile "elisp/"*.el
|
emacs -L elisp -L ${haskellMode}/share/emacs/site-lisp \
|
||||||
|
--batch -f batch-byte-compile "elisp/"*.el
|
||||||
install -d $out/share/emacs/site-lisp
|
install -d $out/share/emacs/site-lisp
|
||||||
install "elisp/"*.el "elisp/"*.elc $out/share/emacs/site-lisp
|
install "elisp/"*.el "elisp/"*.elc $out/share/emacs/site-lisp
|
||||||
'';
|
'';
|
||||||
|
@ -21,7 +21,7 @@ composableDerivation {
|
|||||||
# latest release
|
# latest release
|
||||||
args.fetchhg {
|
args.fetchhg {
|
||||||
url = "https://vim.googlecode.com/hg/";
|
url = "https://vim.googlecode.com/hg/";
|
||||||
tag = "v7-4-316";
|
rev = "v7-4-316";
|
||||||
sha256 = "0scxx33p1ky0wihk04xqpd6rygp1crm0hx446zbjwbsjj6xxn7sx";
|
sha256 = "0scxx33p1ky0wihk04xqpd6rygp1crm0hx446zbjwbsjj6xxn7sx";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
src = fetchhg {
|
src = fetchhg {
|
||||||
url = "https://vim.googlecode.com/hg/";
|
url = "https://vim.googlecode.com/hg/";
|
||||||
tag = "v7-4-316";
|
rev = "v7-4-316";
|
||||||
sha256 = "0scxx33p1ky0wihk04xqpd6rygp1crm0hx446zbjwbsjj6xxn7sx";
|
sha256 = "0scxx33p1ky0wihk04xqpd6rygp1crm0hx446zbjwbsjj6xxn7sx";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
src = fetchhg {
|
src = fetchhg {
|
||||||
url = "http://code.google.com/p/photivo/";
|
url = "http://code.google.com/p/photivo/";
|
||||||
tag = "d687864489da";
|
rev = "d687864489da";
|
||||||
sha256 = "0f6y18k7db2ci6xn664zcwm1g1k04sdv7gg1yd5jk41bndjb7z8h";
|
sha256 = "0f6y18k7db2ci6xn664zcwm1g1k04sdv7gg1yd5jk41bndjb7z8h";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -1,15 +1,15 @@
|
|||||||
{ stdenv, fetchurl, gettext, kdelibs, makeWrapper, qca2, qca2_ossl, qjson }:
|
{ stdenv, fetchurl, gettext, kdelibs, libXtst, makeWrapper, qca2, qca2_ossl, qjson }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "kdeconnect-${version}";
|
name = "kdeconnect-${version}";
|
||||||
version = "0.5.2.1";
|
version = "0.7";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "http://download.kde.org/unstable/kdeconnect/0.5.2/src/kdeconnect-kde-${version}.tar.xz";
|
url = "http://download.kde.org/unstable/kdeconnect/${version}/src/kdeconnect-kde-${version}.tar.xz";
|
||||||
sha256 = "0g632ha7xcqf839c4h0dz5637bz6gnn2gz76dc0qq09zbrq49i08";
|
sha256 = "0a8g3avg9x5j07cf3c16i4w65q3fn1cbs8zxgq0vl14rzdy09q2j";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ gettext kdelibs makeWrapper qca2 qca2_ossl qjson ];
|
buildInputs = [ gettext kdelibs libXtst makeWrapper qca2 qca2_ossl qjson ];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
wrapProgram $out/lib/kde4/libexec/kdeconnectd --prefix QT_PLUGIN_PATH : ${qca2_ossl}/lib/qt4/plugins
|
wrapProgram $out/lib/kde4/libexec/kdeconnectd --prefix QT_PLUGIN_PATH : ${qca2_ossl}/lib/qt4/plugins
|
||||||
|
@ -40,7 +40,7 @@ pythonPackages.buildPythonPackage rec {
|
|||||||
|
|
||||||
src = fetchhg {
|
src = fetchhg {
|
||||||
url = "https://code.google.com/p/ocropus.ocropy";
|
url = "https://code.google.com/p/ocropus.ocropy";
|
||||||
tag = "a6e0fbd820ce";
|
rev = "a6e0fbd820ce";
|
||||||
sha256 = "1s0v0gd6psfjp6lghwl2dj49h18mgf2n2z8hqzw8430nzhglnlvr";
|
sha256 = "1s0v0gd6psfjp6lghwl2dj49h18mgf2n2z8hqzw8430nzhglnlvr";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -5,13 +5,13 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
src = fetchbzr {
|
src = fetchbzr {
|
||||||
url = "https://code.launchpad.net/~kicad-stable-committers/kicad/stable";
|
url = "https://code.launchpad.net/~kicad-stable-committers/kicad/stable";
|
||||||
revision = 4024;
|
rev = 4024;
|
||||||
sha256 = "1sv1l2zpbn6439ccz50p05hvqg6j551aqra551wck9h3929ghly5";
|
sha256 = "1sv1l2zpbn6439ccz50p05hvqg6j551aqra551wck9h3929ghly5";
|
||||||
};
|
};
|
||||||
|
|
||||||
srcLibrary = fetchbzr {
|
srcLibrary = fetchbzr {
|
||||||
url = "http://bazaar.launchpad.net/~kicad-lib-committers/kicad/library";
|
url = "http://bazaar.launchpad.net/~kicad-lib-committers/kicad/library";
|
||||||
revision = 293;
|
rev = 293;
|
||||||
sha256 = "1wn9a4nhqyjzzfkq6xm7ag8n5n10xy7gkq6i7yry7wxini7pzv1i";
|
sha256 = "1wn9a4nhqyjzzfkq6xm7ag8n5n10xy7gkq6i7yry7wxini7pzv1i";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
src = fetchhg {
|
src = fetchhg {
|
||||||
url = "https://bitbucket.org/alanmi/abc";
|
url = "https://bitbucket.org/alanmi/abc";
|
||||||
tag = "03e221443d71e49e56cbc37f1907ee3b0ff3e7c9";
|
rev = "03e221443d71e49e56cbc37f1907ee3b0ff3e7c9";
|
||||||
sha256 = "0ahrqg718y7xpv939f6x8w1kqh7wsja4pw8hca7j67j0qjdgb4lm";
|
sha256 = "0ahrqg718y7xpv939f6x8w1kqh7wsja4pw8hca7j67j0qjdgb4lm";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@ stdenv.mkDerivation {
|
|||||||
|
|
||||||
src = fetchdarcs {
|
src = fetchdarcs {
|
||||||
url = "http://lama.univ-savoie.fr/~raffalli/GlSurf";
|
url = "http://lama.univ-savoie.fr/~raffalli/GlSurf";
|
||||||
tag = "3.3";
|
rev = "3.3";
|
||||||
sha256 = ""; md5="";
|
sha256 = ""; md5="";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
src = fetchhg {
|
src = fetchhg {
|
||||||
url = http://hg.suckless.org/tabbed;
|
url = http://hg.suckless.org/tabbed;
|
||||||
tag = "d7542a6f6dc5";
|
rev = "d7542a6f6dc5";
|
||||||
sha256 = "1963jsazfmh5k7923c1mfwppz1xbh48z16j0sa64fiscq22as2gj";
|
sha256 = "1963jsazfmh5k7923c1mfwppz1xbh48z16j0sa64fiscq22as2gj";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -82,9 +82,7 @@ assert !enableStaticLibraries -> versionOlder "7.7" ghc.version;
|
|||||||
# the default download location for Cabal packages is Hackage,
|
# the default download location for Cabal packages is Hackage,
|
||||||
# you still have to specify the checksum
|
# you still have to specify the checksum
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
# cannot use mirrors system because of subtly different directory structures
|
url = "mirror://hackage/${self.pname}/${self.fname}.tar.gz";
|
||||||
urls = ["http://hackage.haskell.org/packages/archive/${self.pname}/${self.version}/${self.fname}.tar.gz"
|
|
||||||
"http://hdiff.luite.com/packages/archive/${self.pname}/${self.fname}.tar.gz"];
|
|
||||||
inherit (self) sha256;
|
inherit (self) sha256;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
source "$stdenv/setup"
|
source "$stdenv/setup"
|
||||||
|
|
||||||
header "exporting \`$url' (revision $revision) into \`$out'"
|
header "exporting \`$url' (revision $rev) into \`$out'"
|
||||||
|
|
||||||
# Perform a lightweight checkout so that we don't end up importing
|
# Perform a lightweight checkout so that we don't end up importing
|
||||||
# all the repository's history.
|
# all the repository's history.
|
||||||
bzr -Ossl.cert_reqs=none export -r "$revision" --format=dir "$out" "$url"
|
bzr -Ossl.cert_reqs=none export -r "$rev" --format=dir "$out" "$url"
|
||||||
|
|
||||||
stopNest
|
stopNest
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
{ stdenv, bazaar }:
|
{ stdenv, bazaar }:
|
||||||
{ url, revision, sha256 }:
|
{ url, rev, sha256 }:
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
name = "bzr-export";
|
name = "bzr-export";
|
||||||
@ -11,5 +11,5 @@ stdenv.mkDerivation {
|
|||||||
outputHashMode = "recursive";
|
outputHashMode = "recursive";
|
||||||
outputHash = sha256;
|
outputHash = sha256;
|
||||||
|
|
||||||
inherit url revision;
|
inherit url rev;
|
||||||
}
|
}
|
||||||
|
@ -2,9 +2,9 @@ source $stdenv/setup
|
|||||||
|
|
||||||
tagtext=""
|
tagtext=""
|
||||||
tagflags=""
|
tagflags=""
|
||||||
if test -n "$tag"; then
|
if test -n "$rev"; then
|
||||||
tagtext="(tag $tag) "
|
tagtext="(tag $rev) "
|
||||||
tagflags="--tag=$tag"
|
tagflags="--tag=$rev"
|
||||||
elif test -n "$context"; then
|
elif test -n "$context"; then
|
||||||
tagtext="(context) "
|
tagtext="(context) "
|
||||||
tagflags="--context=$context"
|
tagflags="--context=$context"
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{stdenv, darcs, nix}: {url, tag ? null, context ? null, md5 ? "", sha256 ? ""}:
|
{stdenv, darcs, nix}: {url, rev ? null, context ? null, md5 ? "", sha256 ? ""}:
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
name = "fetchdarcs";
|
name = "fetchdarcs";
|
||||||
@ -9,5 +9,5 @@ stdenv.mkDerivation {
|
|||||||
outputHashMode = "recursive";
|
outputHashMode = "recursive";
|
||||||
outputHash = if sha256 == "" then md5 else sha256;
|
outputHash = if sha256 == "" then md5 else sha256;
|
||||||
|
|
||||||
inherit url tag context;
|
inherit url rev context;
|
||||||
}
|
}
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
source $stdenv/setup
|
source $stdenv/setup
|
||||||
header "getting $url${tag:+ ($tag)} into $out"
|
header "getting $url${rev:+ ($rev)} into $out"
|
||||||
|
|
||||||
hg clone --insecure "$url" hg-clone
|
hg clone --insecure "$url" hg-clone
|
||||||
|
|
||||||
hg archive -q -y ${tag:+-r "$tag"} --cwd hg-clone $out
|
hg archive -q -y ${rev:+-r "$rev"} --cwd hg-clone $out
|
||||||
rm -f $out/.hg_archival.txt
|
rm -f $out/.hg_archival.txt
|
||||||
|
|
||||||
stopNest
|
stopNest
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{stdenv, mercurial, nix}: {name ? null, url, tag ? null, md5 ? null, sha256 ? null}:
|
{stdenv, mercurial, nix}: {name ? null, url, rev ? null, md5 ? null, sha256 ? null}:
|
||||||
|
|
||||||
# TODO: statically check if mercurial as the https support if the url starts woth https.
|
# TODO: statically check if mercurial as the https support if the url starts woth https.
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
@ -13,6 +13,6 @@ stdenv.mkDerivation {
|
|||||||
outputHashMode = "recursive";
|
outputHashMode = "recursive";
|
||||||
outputHash = if md5 != null then md5 else sha256;
|
outputHash = if md5 != null then md5 else sha256;
|
||||||
|
|
||||||
inherit url tag;
|
inherit url rev;
|
||||||
preferLocalBuild = true;
|
preferLocalBuild = true;
|
||||||
}
|
}
|
||||||
|
@ -1,9 +1,27 @@
|
|||||||
|
# Parses a /nix/store/*-closure file and prints
|
||||||
|
# various information.
|
||||||
|
# By default, the nodes in the graph are printed to stdout.
|
||||||
|
# If the environment variable printManifest is set,
|
||||||
|
# then the graph is written as a manifest.
|
||||||
|
# If printRegistration is set, then the graph is written
|
||||||
|
# as a registration file for a manifest is written
|
||||||
|
# in the `nix-store --load-db' format.
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use File::Basename;
|
use File::Basename;
|
||||||
|
|
||||||
my %storePaths;
|
my %storePaths;
|
||||||
my %refs;
|
my %refs;
|
||||||
|
|
||||||
|
# Each argument on the command line is a graph file.
|
||||||
|
# The graph file contains line-triples and a variable
|
||||||
|
# number of references:
|
||||||
|
# <store-path>
|
||||||
|
# <deriver>
|
||||||
|
# <count>
|
||||||
|
# <ref-#1>
|
||||||
|
# ...
|
||||||
|
# <ref-#count>
|
||||||
foreach my $graph (@ARGV) {
|
foreach my $graph (@ARGV) {
|
||||||
open GRAPH, "<$graph" or die;
|
open GRAPH, "<$graph" or die;
|
||||||
|
|
||||||
|
14
pkgs/development/libraries/haskell/SHA2/default.nix
Normal file
14
pkgs/development/libraries/haskell/SHA2/default.nix
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
{ cabal, aes, monadsTf, transformers }:
|
||||||
|
|
||||||
|
cabal.mkDerivation (self: {
|
||||||
|
pname = "SHA2";
|
||||||
|
version = "0.2.5";
|
||||||
|
sha256 = "1zs79a327x6myfam3p2vr8lmszcaqnkll2qz8n4sy835vz328j40";
|
||||||
|
buildDepends = [ aes monadsTf transformers ];
|
||||||
|
meta = {
|
||||||
|
description = "Fast, incremental SHA hashing for bytestrings";
|
||||||
|
license = self.stdenv.lib.licenses.bsd3;
|
||||||
|
platforms = self.ghc.meta.platforms;
|
||||||
|
};
|
||||||
|
})
|
||||||
|
|
16
pkgs/development/libraries/haskell/command-qq/default.nix
Normal file
16
pkgs/development/libraries/haskell/command-qq/default.nix
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
{ cabal, doctest, hspec, text }:
|
||||||
|
|
||||||
|
cabal.mkDerivation (self: {
|
||||||
|
pname = "command-qq";
|
||||||
|
version = "0.3.0.0";
|
||||||
|
sha256 = "1bqfb4gc5ja9d9jygijqpf6014bmfcxnsvpv7c5n4f1z2aj07jy5";
|
||||||
|
buildDepends = [ text ];
|
||||||
|
testDepends = [ doctest hspec text ];
|
||||||
|
doCheck = false;
|
||||||
|
meta = {
|
||||||
|
homepage = "http://biegunka.github.io/command-qq/";
|
||||||
|
description = "Quasiquoters for external commands";
|
||||||
|
license = self.stdenv.lib.licenses.bsd3;
|
||||||
|
platforms = self.ghc.meta.platforms;
|
||||||
|
};
|
||||||
|
})
|
@ -0,0 +1,15 @@
|
|||||||
|
{ cabal, deepseq, HUnit, testFramework, testFrameworkHunit }:
|
||||||
|
|
||||||
|
cabal.mkDerivation (self: {
|
||||||
|
pname = "deepseq-generics";
|
||||||
|
version = "0.1.1.1";
|
||||||
|
sha256 = "1icc2gxsbnjjl150msnyysvr9r14kb6s2gm3izrj5a3mwf6l7s08";
|
||||||
|
buildDepends = [ deepseq ];
|
||||||
|
testDepends = [ deepseq HUnit testFramework testFrameworkHunit ];
|
||||||
|
meta = {
|
||||||
|
homepage = "https://github.com/hvr/deepseq-generics";
|
||||||
|
description = "GHC.Generics-based Control.DeepSeq.rnf implementation";
|
||||||
|
license = self.stdenv.lib.licenses.bsd3;
|
||||||
|
platforms = self.ghc.meta.platforms;
|
||||||
|
};
|
||||||
|
})
|
@ -37,7 +37,7 @@ let lispPackages = rec {
|
|||||||
src = pkgs.fetchdarcs {
|
src = pkgs.fetchdarcs {
|
||||||
url = "http://common-lisp.net/project/iterate/darcs/iterate";
|
url = "http://common-lisp.net/project/iterate/darcs/iterate";
|
||||||
sha256 = "0m3q0s7h5s8varwx584m2akgdslj14df7kg4w1bj1fbgzsag5m1w";
|
sha256 = "0m3q0s7h5s8varwx584m2akgdslj14df7kg4w1bj1fbgzsag5m1w";
|
||||||
tag=version;
|
rev = version;
|
||||||
};
|
};
|
||||||
overrides = x: {
|
overrides = x: {
|
||||||
configurePhase="buildPhase(){ true; }";
|
configurePhase="buildPhase(){ true; }";
|
||||||
|
37
pkgs/development/tools/ocaml/cppo/default.nix
Normal file
37
pkgs/development/tools/ocaml/cppo/default.nix
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
{stdenv, fetchurl, ocaml, findlib}:
|
||||||
|
let
|
||||||
|
pname = "cppo";
|
||||||
|
version = "0.9.4";
|
||||||
|
webpage = "http://mjambon.com/${pname}.html";
|
||||||
|
in
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
|
||||||
|
name = "${pname}-${version}";
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
url = "http://mjambon.com/releases/${pname}/${name}.tar.gz";
|
||||||
|
sha256 = "1m7cbja7cf74l45plqnmjrjjz55v8x65rvx0ikk9mg1ak8lcmvxa";
|
||||||
|
};
|
||||||
|
|
||||||
|
buildInputs = [ ocaml findlib ];
|
||||||
|
|
||||||
|
createFindlibDestdir = true;
|
||||||
|
|
||||||
|
makeFlags = "PREFIX=$(out)";
|
||||||
|
|
||||||
|
preBuild = ''
|
||||||
|
mkdir $out/bin
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "The C preprocessor for OCaml";
|
||||||
|
longDescription = ''
|
||||||
|
Cppo is an equivalent of the C preprocessor targeted at the OCaml language and its variants.
|
||||||
|
'';
|
||||||
|
homepage = "${webpage}";
|
||||||
|
license = "bsd";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -15,7 +15,7 @@ let
|
|||||||
root = "code.google.com/p/go.crypto";
|
root = "code.google.com/p/go.crypto";
|
||||||
src = fetchhg {
|
src = fetchhg {
|
||||||
url = "http://code.google.com/p/go.crypto";
|
url = "http://code.google.com/p/go.crypto";
|
||||||
tag = "199";
|
rev = "199";
|
||||||
sha256 = "0ibrpc6kknzl6a2g2fkxn03mvrd635lcnvf4a9rk1dfrpjbpcixh";
|
sha256 = "0ibrpc6kknzl6a2g2fkxn03mvrd635lcnvf4a9rk1dfrpjbpcixh";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@ -23,7 +23,7 @@ let
|
|||||||
root = "code.google.com/p/goauth2";
|
root = "code.google.com/p/goauth2";
|
||||||
src = fetchhg {
|
src = fetchhg {
|
||||||
url = "http://code.google.com/p/goauth2";
|
url = "http://code.google.com/p/goauth2";
|
||||||
tag = "67";
|
rev = "67";
|
||||||
sha256 = "053vajj8hd9869by7z9qfgzn84h6avpcjvyxcyw5jml8dsln4bah";
|
sha256 = "053vajj8hd9869by7z9qfgzn84h6avpcjvyxcyw5jml8dsln4bah";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@ -31,7 +31,7 @@ let
|
|||||||
root = "code.google.com/p/google-api-go-client";
|
root = "code.google.com/p/google-api-go-client";
|
||||||
src = fetchhg {
|
src = fetchhg {
|
||||||
url = "http://code.google.com/p/google-api-go-client";
|
url = "http://code.google.com/p/google-api-go-client";
|
||||||
tag = "111";
|
rev = "111";
|
||||||
sha256 = "1ib8i1c2mb86lkrr5w7bgwb70gkqmp860wa3h1j8080gxdx3yy16";
|
sha256 = "1ib8i1c2mb86lkrr5w7bgwb70gkqmp860wa3h1j8080gxdx3yy16";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@ -39,7 +39,7 @@ let
|
|||||||
root = "code.google.com/p/gosshold";
|
root = "code.google.com/p/gosshold";
|
||||||
src = fetchhg {
|
src = fetchhg {
|
||||||
url = "http://code.google.com/p/gosshold";
|
url = "http://code.google.com/p/gosshold";
|
||||||
tag = "2";
|
rev = "2";
|
||||||
sha256 = "1ljl8pcxxfz5rv89b2ajd31gxxzifl57kzpksvdhyjdxh98gkvg8";
|
sha256 = "1ljl8pcxxfz5rv89b2ajd31gxxzifl57kzpksvdhyjdxh98gkvg8";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@ -65,7 +65,7 @@ let
|
|||||||
root = "launchpad.net/tomb";
|
root = "launchpad.net/tomb";
|
||||||
src = fetchbzr {
|
src = fetchbzr {
|
||||||
url = "https://launchpad.net/tomb";
|
url = "https://launchpad.net/tomb";
|
||||||
revision = "17";
|
rev = "17";
|
||||||
sha256 = "1cjw0sr9hald1darq6n8akfpkzcgrk3mcq59hga3ibf2lrg35ha0";
|
sha256 = "1cjw0sr9hald1darq6n8akfpkzcgrk3mcq59hga3ibf2lrg35ha0";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@ -82,7 +82,7 @@ let
|
|||||||
root = "code.google.com/p/goprotobuf";
|
root = "code.google.com/p/goprotobuf";
|
||||||
src = fetchhg {
|
src = fetchhg {
|
||||||
url = "http://code.google.com/p/goprotobuf";
|
url = "http://code.google.com/p/goprotobuf";
|
||||||
tag = "246";
|
rev = "246";
|
||||||
sha256 = "0k4wcv1dnkwcp0gdrajj6kr25f1lg4lgpbi0h5v9l9n7sdwzplf4";
|
sha256 = "0k4wcv1dnkwcp0gdrajj6kr25f1lg4lgpbi0h5v9l9n7sdwzplf4";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@ -135,7 +135,7 @@ let
|
|||||||
root = "launchpad.net/gocheck";
|
root = "launchpad.net/gocheck";
|
||||||
src = fetchbzr {
|
src = fetchbzr {
|
||||||
url = "https://launchpad.net/gocheck";
|
url = "https://launchpad.net/gocheck";
|
||||||
revision = "87";
|
rev = "87";
|
||||||
sha256 = "1y9fa2mv61if51gpik9isls48idsdz87zkm1p3my7swjdix7fcl0";
|
sha256 = "1y9fa2mv61if51gpik9isls48idsdz87zkm1p3my7swjdix7fcl0";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@ -278,7 +278,7 @@ let
|
|||||||
root = "launchpad.net/mgo";
|
root = "launchpad.net/mgo";
|
||||||
src = fetchbzr {
|
src = fetchbzr {
|
||||||
url = "https://launchpad.net/mgo";
|
url = "https://launchpad.net/mgo";
|
||||||
revision = "2";
|
rev = "2";
|
||||||
sha256 = "0h1dxzyx5c4r4gfnmjxv92hlhjxrgx9p4g53p4fhmz6x2fdglb0x";
|
sha256 = "0h1dxzyx5c4r4gfnmjxv92hlhjxrgx9p4g53p4fhmz6x2fdglb0x";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -6,7 +6,7 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
src = fetchhg {
|
src = fetchhg {
|
||||||
url = "https://code.google.com/r/splintermind-attributes/";
|
url = "https://code.google.com/r/splintermind-attributes/";
|
||||||
tag = rev;
|
inherit rev;
|
||||||
sha256 = "0a9m967q6p2q3plrl6qysg1xrdmg65jzil6awjh2wr3g10x2x15z";
|
sha256 = "0a9m967q6p2q3plrl6qysg1xrdmg65jzil6awjh2wr3g10x2x15z";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
36
pkgs/games/openspades/default.nix
Normal file
36
pkgs/games/openspades/default.nix
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
{ stdenv, fetchurl, cmake, curl, glew, makeWrapper, mesa, SDL2,
|
||||||
|
SDL2_image, unzip, wget, zlib, withOpenal ? true, openal ? null }:
|
||||||
|
|
||||||
|
assert withOpenal -> openal != null;
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
name = "openspades-${version}";
|
||||||
|
version = "0.0.12";
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
url = "https://github.com/yvt/openspades/archive/v${version}.tar.gz";
|
||||||
|
sha256 = "1aa848cck8qrp67ha9vrkzm3k24r2aiv1v4dxla6pi22rw98yxzm";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs =
|
||||||
|
with stdenv.lib;
|
||||||
|
[ cmake curl glew makeWrapper mesa SDL2 SDL2_image unzip wget zlib ]
|
||||||
|
++ optional withOpenal openal;
|
||||||
|
|
||||||
|
cmakeFlags = [ "-DCMAKE_BUILD_TYPE=Release" "-DOPENSPADES_INSTALL_BINARY=bin" ];
|
||||||
|
|
||||||
|
# OpenAL is loaded dynamicly
|
||||||
|
postInstall =
|
||||||
|
if withOpenal then ''
|
||||||
|
wrapProgram "$out/bin/openspades" \
|
||||||
|
--prefix LD_LIBRARY_PATH : "${openal}/lib"
|
||||||
|
''
|
||||||
|
else null;
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
description = "OpenSpades is a compatible client of Ace of Spades 0.75";
|
||||||
|
homepage = "https://github.com/yvt/openspades/";
|
||||||
|
license = licenses.gpl3;
|
||||||
|
platforms = platforms.linux;
|
||||||
|
};
|
||||||
|
}
|
@ -6,7 +6,7 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
src = fetchhg {
|
src = fetchhg {
|
||||||
url = "https://opentyrian.googlecode.com/hg/";
|
url = "https://opentyrian.googlecode.com/hg/";
|
||||||
tag = "13ef8ce47362";
|
rev = "13ef8ce47362";
|
||||||
md5 = "95c8f9e7ff3d4207f1c692c7cec6c9b0";
|
md5 = "95c8f9e7ff3d4207f1c692c7cec6c9b0";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
61
pkgs/servers/http/nix-binary-cache/default.nix
Normal file
61
pkgs/servers/http/nix-binary-cache/default.nix
Normal file
@ -0,0 +1,61 @@
|
|||||||
|
{stdenv, fetchurl
|
||||||
|
, coreutils, findutils, nix, xz, bzip2, gnused, gnugrep, openssl
|
||||||
|
, lighttpd, iproute }:
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
version = "2014-06-29-1";
|
||||||
|
name = "nix-binary-cache-${version}";
|
||||||
|
|
||||||
|
phases = ["installPhase"];
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
mkdir -p "$out/bin"
|
||||||
|
substitute "${./nix-binary-cache.cgi.in}" "$out"/bin/nix-binary-cache.cgi \
|
||||||
|
--replace @out@ "$out/bin" \
|
||||||
|
--replace @shell@ "${stdenv.shell}" \
|
||||||
|
--replace @coreutils@ "${coreutils}/bin" \
|
||||||
|
--replace @findutils@ "${findutils}/bin" \
|
||||||
|
--replace @nix@ "${nix}/bin" \
|
||||||
|
--replace @xz@ "${xz}/bin" \
|
||||||
|
--replace @bzip2@ "${bzip2}/bin" \
|
||||||
|
--replace @gnused@ "${gnused}/bin" \
|
||||||
|
--replace @gnugrep@ "${gnugrep}/bin" \
|
||||||
|
--replace @openssl@ "${openssl}/bin" \
|
||||||
|
--replace @lighttpd@ "${lighttpd}/sbin" \
|
||||||
|
--replace @iproute@ "${iproute}/sbin" \
|
||||||
|
--replace "xXxXx" "xXxXx"
|
||||||
|
|
||||||
|
chmod a+x "$out/bin/nix-binary-cache.cgi"
|
||||||
|
|
||||||
|
substitute "${./nix-binary-cache-start.in}" "$out"/bin/nix-binary-cache-start \
|
||||||
|
--replace @out@ "$out/bin" \
|
||||||
|
--replace @shell@ "${stdenv.shell}" \
|
||||||
|
--replace @coreutils@ "${coreutils}/bin" \
|
||||||
|
--replace @findutils@ "${findutils}/bin" \
|
||||||
|
--replace @nix@ "${nix}/bin" \
|
||||||
|
--replace @xz@ "${xz}/bin" \
|
||||||
|
--replace @bzip2@ "${bzip2}/bin" \
|
||||||
|
--replace @gnused@ "${gnused}/bin" \
|
||||||
|
--replace @gnugrep@ "${gnugrep}/bin" \
|
||||||
|
--replace @openssl@ "${openssl}/bin" \
|
||||||
|
--replace @lighttpd@ "${lighttpd}/sbin" \
|
||||||
|
--replace @iproute@ "${iproute}/sbin" \
|
||||||
|
--replace "xXxXx" "xXxXx"
|
||||||
|
|
||||||
|
chmod a+x "$out/bin/nix-binary-cache-start"
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = ''A set of scripts to serve the Nix store as a binary cache'';
|
||||||
|
longDescription = ''
|
||||||
|
This package installs a CGI script that serves Nix store path in the
|
||||||
|
binary cache format. It also installs a launcher called
|
||||||
|
nix-binary-cache-start that can be run without any setup to launch
|
||||||
|
a binary cache and get the example arguments for its usage.
|
||||||
|
'';
|
||||||
|
maintainers = [stdenv.lib.maintainers.raskin];
|
||||||
|
license = stdenv.lib.licenses.gpl2Plus;
|
||||||
|
inherit version;
|
||||||
|
platforms = stdenv.lib.platforms.all;
|
||||||
|
hydraPlatforms = [];
|
||||||
|
};
|
||||||
|
}
|
105
pkgs/servers/http/nix-binary-cache/nix-binary-cache-start.in
Normal file
105
pkgs/servers/http/nix-binary-cache/nix-binary-cache-start.in
Normal file
@ -0,0 +1,105 @@
|
|||||||
|
#! @shell@
|
||||||
|
|
||||||
|
parse_opts () {
|
||||||
|
while @coreutils@/test -n "$1" && @coreutils@/test "x$1" != x-- ; do
|
||||||
|
case "$1" in
|
||||||
|
--store-dir)
|
||||||
|
shift;
|
||||||
|
echo "STORE_DIR='$1'"
|
||||||
|
shift;
|
||||||
|
;;
|
||||||
|
--priority)
|
||||||
|
shift;
|
||||||
|
echo "PRIORITY=$1";
|
||||||
|
shift;
|
||||||
|
;;
|
||||||
|
--compression)
|
||||||
|
shift;
|
||||||
|
echo "COMPRESSION=$1";
|
||||||
|
shift;
|
||||||
|
;;
|
||||||
|
--key)
|
||||||
|
shift;
|
||||||
|
echo "KEY=${1#*:}"
|
||||||
|
echo "KEYNAME=${1%%:*}"
|
||||||
|
shift;
|
||||||
|
;;
|
||||||
|
--nix-remote)
|
||||||
|
shift;
|
||||||
|
echo "NIX_REMOTE=$1"
|
||||||
|
shift;
|
||||||
|
;;
|
||||||
|
--mass-query)
|
||||||
|
shift;
|
||||||
|
echo "MASS_QUERY=$1"
|
||||||
|
shift;
|
||||||
|
;;
|
||||||
|
--port)
|
||||||
|
shift;
|
||||||
|
echo "PORT=$1"
|
||||||
|
shift;
|
||||||
|
;;
|
||||||
|
--help)
|
||||||
|
cat <<EOF >&2
|
||||||
|
"$0": start the Nix binary cache serving the Nix store dynamically.
|
||||||
|
|
||||||
|
Recognized options:
|
||||||
|
|
||||||
|
--port server port
|
||||||
|
--store-dir served Nix store
|
||||||
|
|
||||||
|
--priority binary cache priority
|
||||||
|
--mass-query 0 or 1 - whether binary cache expects queries for nix-env -qas
|
||||||
|
|
||||||
|
--compression compression to use: bzip2 or xz
|
||||||
|
--key name:/path/to/key - key to use for narinfo signing
|
||||||
|
|
||||||
|
--nix-remote 'daemon' or empty string '' - whether to use daemon for store
|
||||||
|
operations
|
||||||
|
|
||||||
|
--help show help and exit
|
||||||
|
EOF
|
||||||
|
exit 1;
|
||||||
|
;;
|
||||||
|
*) shift ;;
|
||||||
|
esac;
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
|
workingdir="$(@coreutils@/mktemp -d)"
|
||||||
|
cd "$workingdir"
|
||||||
|
|
||||||
|
PORT=8080
|
||||||
|
(echo "STORE_DIR=${NIX_STORE_DIR:-/nix/store}"; parse_opts "$@"
|
||||||
|
) > nix-binary-cache.conf || exit
|
||||||
|
. "$workingdir/nix-binary-cache.conf"
|
||||||
|
|
||||||
|
echo "
|
||||||
|
server.port = $PORT
|
||||||
|
server.modules = ( \"mod_cgi\", \"mod_setenv\", )
|
||||||
|
server.document-root = \"$workingdir\"
|
||||||
|
cgi.assign = ( \".cgi\" => \"@shell@\" )
|
||||||
|
setenv.add-request-header = ( \"NIX_BINARY_CACHE_CONFIG\" => \"$workingdir/nix-binary-cache.conf\" )
|
||||||
|
" > lighttpd.conf
|
||||||
|
|
||||||
|
cp @out@/nix-binary-cache.cgi .
|
||||||
|
cp @out@/nix-binary-cache.cgi ./nix-bc.cgi
|
||||||
|
|
||||||
|
ip="$(@iproute@/ip a | @gnugrep@/grep 'inet .* scope global' | @coreutils@/head -n 1)"
|
||||||
|
ip="${ip%%/*}"
|
||||||
|
ip="${ip##* }"
|
||||||
|
|
||||||
|
url="http://$ip:$PORT/nix-bc.cgi?"
|
||||||
|
|
||||||
|
echo "Working directory: $workingdir"
|
||||||
|
echo
|
||||||
|
echo "Address of the binary cache: $url"
|
||||||
|
echo
|
||||||
|
echo "Usage example: NIX_REMOTE= nix-store --option binary-caches '$url'"
|
||||||
|
echo
|
||||||
|
echo
|
||||||
|
|
||||||
|
@lighttpd@/lighttpd -D -f "$workingdir/lighttpd.conf"
|
||||||
|
|
||||||
|
cd /
|
||||||
|
@coreutils@/rm -rf "$workingdir"
|
97
pkgs/servers/http/nix-binary-cache/nix-binary-cache.cgi.in
Normal file
97
pkgs/servers/http/nix-binary-cache/nix-binary-cache.cgi.in
Normal file
@ -0,0 +1,97 @@
|
|||||||
|
#! @shell@
|
||||||
|
|
||||||
|
STORE_DIR="${NIX_STORE_DIR:-/nix/store}"
|
||||||
|
MASS_QUERY=0
|
||||||
|
PRIORITY=75
|
||||||
|
COMPRESSION=bzip2
|
||||||
|
KEY=
|
||||||
|
KEYNAME=na
|
||||||
|
|
||||||
|
export NIX_REMOTE=daemon
|
||||||
|
|
||||||
|
config="${NIX_BINARY_CACHE_CONFIG:-${HTTP_NIX_BINARY_CACHE_CONFIG:-/etc/nix/nix-binary-cache.cgi.conf}}"
|
||||||
|
config="$(cd "$(@coreutils@/dirname "$config")";
|
||||||
|
@coreutils@/pwd)/$(@coreutils@/basename "$config")"
|
||||||
|
@coreutils@/test -e "$config" && . "$config"
|
||||||
|
|
||||||
|
header(){
|
||||||
|
echo "Content-Type: text/plain; charset=utf-8"
|
||||||
|
echo
|
||||||
|
}
|
||||||
|
|
||||||
|
clean_path() {
|
||||||
|
@gnused@/sed -re "s@^$STORE_DIR/?@@" | @findutils@/xargs
|
||||||
|
}
|
||||||
|
|
||||||
|
storeq(){
|
||||||
|
@nix@/nix-store -q "$@"
|
||||||
|
}
|
||||||
|
|
||||||
|
sign(){
|
||||||
|
test -n "$1" &&
|
||||||
|
@coreutils@/sha256sum | @gnused@/sed -e 's/ .*//' |
|
||||||
|
@openssl@/openssl rsautl -sign -inkey "$@" | @coreutils@/base64 -w 0
|
||||||
|
}
|
||||||
|
|
||||||
|
case "$QUERY_STRING" in
|
||||||
|
"")
|
||||||
|
header
|
||||||
|
echo "Hello, this is a dynamically-generated Nix binary cache"
|
||||||
|
;;
|
||||||
|
/debug)
|
||||||
|
header
|
||||||
|
set
|
||||||
|
;;
|
||||||
|
/nix-cache-info)
|
||||||
|
header
|
||||||
|
echo "StoreDir: $STORE_DIR"
|
||||||
|
echo "WantMassQuery: $MASS_QUERY"
|
||||||
|
echo "Priority: $PRIORITY"
|
||||||
|
;;
|
||||||
|
*.narinfo)
|
||||||
|
hash=${QUERY_STRING%.narinfo}
|
||||||
|
hash=${hash#/}
|
||||||
|
path="$(echo "$STORE_DIR/$hash-"* )"
|
||||||
|
if [ -n "$path" ] && [ -e "$path" ]; then
|
||||||
|
header
|
||||||
|
info="$(
|
||||||
|
echo "StorePath: $path"
|
||||||
|
echo "URL: $(@coreutils@/basename "$path"
|
||||||
|
).nar.$COMPRESSION"
|
||||||
|
echo "Compression: $COMPRESSION"
|
||||||
|
echo "NarHash: $(storeq --hash "$path")"
|
||||||
|
echo "NarSize: $(storeq --size "$path")"
|
||||||
|
echo "References: $(storeq --references "$path" |
|
||||||
|
@coreutils@/tac | clean_path )"
|
||||||
|
echo "Deriver: $(storeq --deriver "$path" |
|
||||||
|
clean_path )"
|
||||||
|
)"
|
||||||
|
signature="$(echo "$info" | sign "$KEY")"
|
||||||
|
|
||||||
|
echo "$info"
|
||||||
|
echo "Signature: 1;$KEYNAME;$signature"
|
||||||
|
|
||||||
|
else
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
*.nar.xz)
|
||||||
|
path="$STORE_DIR${QUERY_STRING%.nar.xz}"
|
||||||
|
if [ -n "$path" ] && [ -e "$path" ]; then
|
||||||
|
header
|
||||||
|
@nix@/nix-store --dump "$path" | @xz@/xz
|
||||||
|
else
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
*.nar.bzip2)
|
||||||
|
path="$STORE_DIR${QUERY_STRING%.nar.bzip2}"
|
||||||
|
echo "$path" >&2;
|
||||||
|
if [ -n "$path" ] && [ -e "$path" ]; then
|
||||||
|
header
|
||||||
|
@nix@/nix-store --dump "$path" | @bzip2@/bzip2
|
||||||
|
else
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
@ -6,7 +6,7 @@ let
|
|||||||
root = "code.google.com/p/snappy-go";
|
root = "code.google.com/p/snappy-go";
|
||||||
src = fetchhg {
|
src = fetchhg {
|
||||||
url = "http://code.google.com/p/snappy-go";
|
url = "http://code.google.com/p/snappy-go";
|
||||||
tag = "14";
|
rev = "14";
|
||||||
sha256 = "0ywa52kcii8g2a9lbqcx8ghdf6y56lqq96sl5nl9p6h74rdvmjr7";
|
sha256 = "0ywa52kcii8g2a9lbqcx8ghdf6y56lqq96sl5nl9p6h74rdvmjr7";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -6,7 +6,7 @@ let
|
|||||||
root = "code.google.com/p/go.net";
|
root = "code.google.com/p/go.net";
|
||||||
src = fetchhg {
|
src = fetchhg {
|
||||||
url = "http://code.google.com/p/go.net";
|
url = "http://code.google.com/p/go.net";
|
||||||
tag = "134";
|
rev = "134";
|
||||||
sha256 = "1jycpgrfwgkfac60zjbx6babcz7sgyn9xgy6cr3l811j6k8r2pbv";
|
sha256 = "1jycpgrfwgkfac60zjbx6babcz7sgyn9xgy6cr3l811j6k8r2pbv";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@ -14,7 +14,7 @@ let
|
|||||||
root = "code.google.com/p/go.text";
|
root = "code.google.com/p/go.text";
|
||||||
src = fetchhg {
|
src = fetchhg {
|
||||||
url = "http://code.google.com/p/go.text";
|
url = "http://code.google.com/p/go.text";
|
||||||
tag = "85";
|
rev = "85";
|
||||||
sha256 = "1x8h6vq9g5gbi7iiwla6dkaaqqf7wmkdm4szj7wvzlsijf2x8dwr";
|
sha256 = "1x8h6vq9g5gbi7iiwla6dkaaqqf7wmkdm4szj7wvzlsijf2x8dwr";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@ -157,7 +157,7 @@ let
|
|||||||
root = "launchpad.net/gocheck";
|
root = "launchpad.net/gocheck";
|
||||||
src = fetchbzr {
|
src = fetchbzr {
|
||||||
url = "https://launchpad.net/gocheck";
|
url = "https://launchpad.net/gocheck";
|
||||||
revision = "87";
|
rev = "87";
|
||||||
sha256 = "1y9fa2mv61if51gpik9isls48idsdz87zkm1p3my7swjdix7fcl0";
|
sha256 = "1y9fa2mv61if51gpik9isls48idsdz87zkm1p3my7swjdix7fcl0";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@ -165,7 +165,7 @@ let
|
|||||||
root = "launchpad.net/mgo";
|
root = "launchpad.net/mgo";
|
||||||
src = fetchbzr {
|
src = fetchbzr {
|
||||||
url = "https://launchpad.net/mgo";
|
url = "https://launchpad.net/mgo";
|
||||||
revision = "2";
|
rev = "2";
|
||||||
sha256 = "0h1dxzyx5c4r4gfnmjxv92hlhjxrgx9p4g53p4fhmz6x2fdglb0x";
|
sha256 = "0h1dxzyx5c4r4gfnmjxv92hlhjxrgx9p4g53p4fhmz6x2fdglb0x";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
37
pkgs/tools/filesystems/ceph/default.nix
Normal file
37
pkgs/tools/filesystems/ceph/default.nix
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
{stdenv, fetchgit, atomicops ? null, autoconf, automake, boost, btrfsProgs, cryptopp, curl, expat,
|
||||||
|
fcgi, fuse, gperftools, keyutils, leveldb, libaio, libedit, libtool,
|
||||||
|
libuuid, linuxHeaders, openssl, pkgconfig, python, snappy, which, xfsprogs, xz}:
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
baseName="ceph";
|
||||||
|
version="0.79";
|
||||||
|
name="${baseName}-${version}";
|
||||||
|
buildInputs = [
|
||||||
|
fuse linuxHeaders pkgconfig atomicops autoconf automake boost btrfsProgs cryptopp expat
|
||||||
|
fcgi fuse gperftools keyutils leveldb libaio libedit libtool libuuid openssl pkgconfig
|
||||||
|
python snappy which xfsprogs.lib xz
|
||||||
|
];
|
||||||
|
|
||||||
|
preConfigure = ''
|
||||||
|
./autogen.sh
|
||||||
|
'';
|
||||||
|
|
||||||
|
installFlags = "DESTDIR=\${out}";
|
||||||
|
|
||||||
|
enableParallelBuilding = true;
|
||||||
|
src = fetchgit {
|
||||||
|
url = "https://github.com/ceph/ceph";
|
||||||
|
rev = "4c2d73a5095f527c3a2168deb5fa54b3c8991a6e";
|
||||||
|
sha256 = "0850m817wqqmw2qdnwm5jvbdgifzlc7kcd05jv526pdvmq1x92rf";
|
||||||
|
};
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
inherit version;
|
||||||
|
description = "Distributed storage system";
|
||||||
|
maintainers = [
|
||||||
|
stdenv.lib.maintainers.ak
|
||||||
|
];
|
||||||
|
platforms = with stdenv.lib.platforms;
|
||||||
|
linux;
|
||||||
|
};
|
||||||
|
}
|
@ -12,11 +12,26 @@ stdenv.mkDerivation rec {
|
|||||||
sed -i s,/bin/bash,`type -P bash`, install-sh
|
sed -i s,/bin/bash,`type -P bash`, install-sh
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
outputs = ["out" "lib"];
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
(cd include; make install-dev)
|
||||||
|
# The make install-dev target is broken when --disable-shared
|
||||||
|
mkdir -p $lib/lib $lib/include
|
||||||
|
cp ./libhandle/.libs/libhandle.a \
|
||||||
|
./libxcmd/.libs/libxcmd.a \
|
||||||
|
./libxlog/.libs/libxlog.a \
|
||||||
|
./libxfs/.libs/libxfs.a $lib/lib
|
||||||
|
mv $out/include/* $lib/include
|
||||||
|
'';
|
||||||
|
|
||||||
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
buildInputs = [ libtool gettext libuuid ];
|
buildInputs = [ libtool gettext libuuid ];
|
||||||
|
|
||||||
configureFlags = "MAKE=make MSGFMT=msgfmt MSGMERGE=msgmerge XGETTEXT=xgettext ZIP=gzip AWK=gawk --disable-shared";
|
configureFlags = "MAKE=make MSGFMT=msgfmt MSGMERGE=msgmerge XGETTEXT=xgettext ZIP=gzip AWK=gawk --disable-shared";
|
||||||
preConfigure = ''
|
preConfigure = ''
|
||||||
configureFlags="$configureFlags root_sbindir=$out/sbin root_libdir=$out/lib"
|
configureFlags="$configureFlags root_sbindir=$out/sbin root_libdir=$lib/lib"
|
||||||
'';
|
'';
|
||||||
disableStatic = false;
|
disableStatic = false;
|
||||||
|
|
||||||
|
@ -30,16 +30,16 @@ let
|
|||||||
url = "https://launchpad.net/goyaml";
|
url = "https://launchpad.net/goyaml";
|
||||||
sha256 = "03is37cgw62cha316xrs5h7q97im46ry5qldkfvbhimjq3ww0swj";
|
sha256 = "03is37cgw62cha316xrs5h7q97im46ry5qldkfvbhimjq3ww0swj";
|
||||||
# Branch: "branch:lp:goyaml"
|
# Branch: "branch:lp:goyaml"
|
||||||
revision = 47;
|
rev = 47;
|
||||||
};
|
};
|
||||||
log4go = fetchhg {
|
log4go = fetchhg {
|
||||||
url = "https://code.google.com/p/log4go/";
|
url = "https://code.google.com/p/log4go/";
|
||||||
tag = "c3294304d93f";
|
rev = "c3294304d93f";
|
||||||
sha256 = "0q906sxrmwir295virfibqvdzlaj340qh2r4ysx1ccjrjazc0q5p";
|
sha256 = "0q906sxrmwir295virfibqvdzlaj340qh2r4ysx1ccjrjazc0q5p";
|
||||||
};
|
};
|
||||||
osext = fetchhg {
|
osext = fetchhg {
|
||||||
url = "https://bitbucket.org/kardianos/osext";
|
url = "https://bitbucket.org/kardianos/osext";
|
||||||
tag = "364fb57";
|
rev = "364fb57";
|
||||||
sha256 = "1w9x2zj716agfd5x5497ajb9nz3ljar74768vjidsyly143vzjws";
|
sha256 = "1w9x2zj716agfd5x5497ajb9nz3ljar74768vjidsyly143vzjws";
|
||||||
};
|
};
|
||||||
in stdenv.mkDerivation rec {
|
in stdenv.mkDerivation rec {
|
||||||
|
@ -5,7 +5,7 @@ stdenv.mkDerivation {
|
|||||||
|
|
||||||
src = fetchhg {
|
src = fetchhg {
|
||||||
url = http://oss.stamfest.net/hg/meo;
|
url = http://oss.stamfest.net/hg/meo;
|
||||||
tag = "b48e5f16cff8";
|
rev = "b48e5f16cff8";
|
||||||
sha256 = "0ifg7y28s89i9gwda6fyj1jbrykbcvq8bf1m6rxmdcv5afi3arbq";
|
sha256 = "0ifg7y28s89i9gwda6fyj1jbrykbcvq8bf1m6rxmdcv5afi3arbq";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@ stdenv.mkDerivation rec {
|
|||||||
# This source has license BSD
|
# This source has license BSD
|
||||||
srcGoSqlite = fetchhg {
|
srcGoSqlite = fetchhg {
|
||||||
url = "https://code.google.com/p/gosqlite/";
|
url = "https://code.google.com/p/gosqlite/";
|
||||||
tag = "5baefb109e18";
|
rev = "5baefb109e18";
|
||||||
sha256 = "0mqfnx06jj15cs8pq9msny2z18x99hgk6mchnaxpg343nzdiz4zk";
|
sha256 = "0mqfnx06jj15cs8pq9msny2z18x99hgk6mchnaxpg343nzdiz4zk";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -737,6 +737,8 @@ let
|
|||||||
|
|
||||||
cdrkit = callPackage ../tools/cd-dvd/cdrkit { };
|
cdrkit = callPackage ../tools/cd-dvd/cdrkit { };
|
||||||
|
|
||||||
|
ceph = callPackage ../tools/filesystems/ceph { };
|
||||||
|
|
||||||
cfdg = builderDefsPackage ../tools/graphics/cfdg {
|
cfdg = builderDefsPackage ../tools/graphics/cfdg {
|
||||||
inherit libpng bison flex ffmpeg;
|
inherit libpng bison flex ffmpeg;
|
||||||
};
|
};
|
||||||
@ -3175,6 +3177,8 @@ let
|
|||||||
|
|
||||||
ocaml_cairo = callPackage ../development/ocaml-modules/ocaml-cairo { };
|
ocaml_cairo = callPackage ../development/ocaml-modules/ocaml-cairo { };
|
||||||
|
|
||||||
|
cppo = callPackage ../development/tools/ocaml/cppo { };
|
||||||
|
|
||||||
cryptokit = callPackage ../development/ocaml-modules/cryptokit { };
|
cryptokit = callPackage ../development/ocaml-modules/cryptokit { };
|
||||||
|
|
||||||
deriving = callPackage ../development/tools/ocaml/deriving { };
|
deriving = callPackage ../development/tools/ocaml/deriving { };
|
||||||
@ -5780,6 +5784,8 @@ let
|
|||||||
ffmpeg = ffmpeg_0_10;
|
ffmpeg = ffmpeg_0_10;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
openspades = callPackage ../games/openspades {};
|
||||||
|
|
||||||
openssl = callPackage ../development/libraries/openssl {
|
openssl = callPackage ../development/libraries/openssl {
|
||||||
fetchurl = fetchurlBoot;
|
fetchurl = fetchurlBoot;
|
||||||
cryptodevHeaders = linuxPackages.cryptodev.override {
|
cryptodevHeaders = linuxPackages.cryptodev.override {
|
||||||
@ -6746,6 +6752,8 @@ let
|
|||||||
|
|
||||||
ngircd = callPackage ../servers/irc/ngircd { };
|
ngircd = callPackage ../servers/irc/ngircd { };
|
||||||
|
|
||||||
|
nix-binary-cache = callPackage ../servers/http/nix-binary-cache {};
|
||||||
|
|
||||||
nsd = callPackage ../servers/dns/nsd { };
|
nsd = callPackage ../servers/dns/nsd { };
|
||||||
|
|
||||||
nsq = callPackage ../servers/nsq { };
|
nsq = callPackage ../servers/nsq { };
|
||||||
|
@ -587,6 +587,8 @@ self : let callPackage = x : y : modifyPrio (newScope self x y); in
|
|||||||
deepseq_1_3_0_2 = callPackage ../development/libraries/haskell/deepseq/1.3.0.2.nix {};
|
deepseq_1_3_0_2 = callPackage ../development/libraries/haskell/deepseq/1.3.0.2.nix {};
|
||||||
deepseq = null; # core package since ghc >= 7.4.x
|
deepseq = null; # core package since ghc >= 7.4.x
|
||||||
|
|
||||||
|
deepseqGenerics = callPackage ../development/libraries/haskell/deepseq-generics {};
|
||||||
|
|
||||||
deepseqTh = callPackage ../development/libraries/haskell/deepseq-th {};
|
deepseqTh = callPackage ../development/libraries/haskell/deepseq-th {};
|
||||||
|
|
||||||
derive = callPackage ../development/libraries/haskell/derive {};
|
derive = callPackage ../development/libraries/haskell/derive {};
|
||||||
@ -2090,6 +2092,8 @@ self : let callPackage = x : y : modifyPrio (newScope self x y); in
|
|||||||
|
|
||||||
SHA = callPackage ../development/libraries/haskell/SHA {};
|
SHA = callPackage ../development/libraries/haskell/SHA {};
|
||||||
|
|
||||||
|
SHA2 = callPackage ../development/libraries/haskell/SHA2 {};
|
||||||
|
|
||||||
shake = callPackage ../development/libraries/haskell/shake {};
|
shake = callPackage ../development/libraries/haskell/shake {};
|
||||||
|
|
||||||
shakespeare = callPackage ../development/libraries/haskell/shakespeare {};
|
shakespeare = callPackage ../development/libraries/haskell/shakespeare {};
|
||||||
@ -2799,9 +2803,10 @@ self : let callPackage = x : y : modifyPrio (newScope self x y); in
|
|||||||
cabalDelete = callPackage ../development/tools/haskell/cabal-delete {};
|
cabalDelete = callPackage ../development/tools/haskell/cabal-delete {};
|
||||||
|
|
||||||
cabalBounds = callPackage ../development/tools/haskell/cabal-bounds {
|
cabalBounds = callPackage ../development/tools/haskell/cabal-bounds {
|
||||||
Cabal = if pkgs.stdenv.lib.versionOlder "7.7" ghc.version
|
Cabal = self.Cabal_1_20_0_1;
|
||||||
then null
|
cabalLenses = self.cabalLenses.override {
|
||||||
else self.Cabal_1_18_1_3;
|
Cabal = self.Cabal_1_20_0_1;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
cabalMeta = callPackage ../development/tools/haskell/cabal-meta {};
|
cabalMeta = callPackage ../development/tools/haskell/cabal-meta {};
|
||||||
@ -2822,6 +2827,8 @@ self : let callPackage = x : y : modifyPrio (newScope self x y); in
|
|||||||
|
|
||||||
codex = callPackage ../development/tools/haskell/codex {};
|
codex = callPackage ../development/tools/haskell/codex {};
|
||||||
|
|
||||||
|
commandQq = callPackage ../development/libraries/haskell/command-qq {};
|
||||||
|
|
||||||
gitAnnex = callPackage ../applications/version-management/git-and-tools/git-annex {};
|
gitAnnex = callPackage ../applications/version-management/git-and-tools/git-annex {};
|
||||||
|
|
||||||
githubBackup = callPackage ../applications/version-management/git-and-tools/github-backup {};
|
githubBackup = callPackage ../applications/version-management/git-and-tools/github-backup {};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user