Merge remote-tracking branch 'upstream/master' into hardened-stdenv

This commit is contained in:
Robin Gloster
2016-07-19 10:37:02 +00:00
282 changed files with 4189 additions and 7149 deletions

View File

@@ -40,7 +40,7 @@ let
EOF
'' + lib.concatStrings cmds;
hsPkgs = haskell.packages.ghc7103.override {
hsPkgs = haskell.packages.ghc801.override {
overrides = self: super:
let hlib = haskell.lib;
elmRelease = import ./packages/release.nix { inherit (self) callPackage; };

View File

@@ -3,15 +3,15 @@
, fetchgit, filemanip, filepath, HUnit, indents
, language-ecmascript, language-glsl, mtl, parsec, pretty, process
, QuickCheck, stdenv, test-framework, test-framework-hunit
, test-framework-quickcheck2, text, union-find, wl-pprint
, test-framework-quickcheck2, text, union-find
}:
mkDerivation {
pname = "elm-compiler";
version = "0.17";
version = "0.17.1";
src = fetchgit {
url = "https://github.com/elm-lang/elm-compiler";
sha256 = "1vx4jp20nj4s41zsqnwyh80dvg7b7kd9fh6agl99v1xx9d3i6ws1";
rev = "c9c7e72c424a13255f8ee84c719f7ef48b689c1a";
sha256 = "17y0jlii81mnjywknblcv1nfja51slmwrhz9x8w144b0sblcj0if";
rev = "e44deafaf9cbf3749484070f267f03a368711adb";
};
isLibrary = true;
isExecutable = true;
@@ -19,7 +19,7 @@ mkDerivation {
aeson aeson-pretty ansi-terminal ansi-wl-pprint base binary
bytestring containers directory edit-distance filepath indents
language-ecmascript language-glsl mtl parsec pretty process text
union-find wl-pprint
union-find
];
executableHaskellDepends = [
aeson base binary directory filepath process text
@@ -29,10 +29,10 @@ mkDerivation {
bytestring containers directory edit-distance filemanip filepath
HUnit indents language-ecmascript language-glsl mtl parsec pretty
process QuickCheck test-framework test-framework-hunit
test-framework-quickcheck2 text union-find wl-pprint
test-framework-quickcheck2 text union-find
];
jailbreak = true;
homepage = "http://elm-lang.org";
description = "Values to help with elm-package, elm-make, and elm-lang.org";
description = "Values to help with elm-package, elm-make, and elm-lang.org.";
license = stdenv.lib.licenses.bsd3;
}

View File

@@ -2,17 +2,16 @@
, bytestring, containers, directory, edit-distance, fetchgit
, filemanip, filepath, HUnit, indents, mtl, optparse-applicative
, parsec, pretty, process, QuickCheck, quickcheck-io
, regex-applicative, split, stdenv, test-framework
, test-framework-hunit, test-framework-quickcheck2, text
, union-find, wl-pprint
, regex-applicative, split, stdenv, tasty, tasty-golden
, tasty-hunit, tasty-quickcheck, text, union-find, wl-pprint
}:
mkDerivation {
pname = "elm-format";
version = "0.3.1";
version = "0.4.0";
src = fetchgit {
url = "http://github.com/avh4/elm-format";
sha256 = "04kl50kzvjf4i140dlhs6f9fd2wmk6cnvyfamx2xh8vbwbnwrkj4";
rev = "0637f3772de2297d12ea35f5b66961e1d827552c";
sha256 = "199xh2w5cwcf79a8fv6j8dpk9h8a4cygrf8cfr9p7bvp2wvczibm";
rev = "d9cbe65c5f01d21b5a02c2f963aa4c9d3f0539d0";
};
isLibrary = false;
isExecutable = true;
@@ -23,14 +22,24 @@ mkDerivation {
text
];
testHaskellDepends = [
aeson ansi-terminal base binary bytestring containers directory
edit-distance filemanip filepath HUnit indents mtl parsec pretty
process QuickCheck quickcheck-io regex-applicative split
test-framework test-framework-hunit test-framework-quickcheck2 text
union-find wl-pprint
aeson ansi-terminal ansi-wl-pprint base binary bytestring
containers directory edit-distance filemanip filepath HUnit indents
mtl optparse-applicative parsec pretty process QuickCheck
quickcheck-io regex-applicative split tasty tasty-golden
tasty-hunit tasty-quickcheck text union-find wl-pprint
];
jailbreak = true;
homepage = "http://elm-lang.org";
description = "A source code formatter for Elm";
license = stdenv.lib.licenses.bsd3;
# XXX: I've manually disabled tests, only the following test is failing
# ...
# ElmFormat.Cli
# format a single file in place: OK
# usage instructions: FAIL
# ...
# 1 out of 266 tests failed (0.50s)
# Test suite elm-format-tests: FAIL
doCheck = false;
}

View File

@@ -1,22 +1,23 @@
{ mkDerivation, aeson, ansi-terminal, ansi-wl-pprint, base, binary
, blaze-html, blaze-markup, bytestring, containers, directory
, elm-compiler, elm-package, fetchgit, filepath, mtl
, optparse-applicative, stdenv, text, time, raw-strings-qq
, optparse-applicative, raw-strings-qq, stdenv, text, time
}:
mkDerivation {
pname = "elm-make";
version = "0.17";
version = "0.17.1";
src = fetchgit {
url = "https://github.com/elm-lang/elm-make";
sha256 = "0ywi6iq2a3rb8a68ryqpq9y22536aa9k71wy7fcmrd5nwkmpwd2r";
rev = "5f7b74567c43eff341048c7caceb247b51cdb8bb";
sha256 = "0k9w5gl48lhhr3n2iflf0vkb3w6al0xcbglgiw4fq1ssz3aa7ijw";
rev = "0a0a1f52ab04e2d68d60a5798722e1de30b47335";
};
isLibrary = false;
isExecutable = true;
executableHaskellDepends = [
aeson ansi-terminal ansi-wl-pprint base binary blaze-html
blaze-markup bytestring containers directory elm-compiler
elm-package filepath mtl optparse-applicative text time raw-strings-qq
elm-package filepath mtl optparse-applicative raw-strings-qq text
time
];
jailbreak = true;
homepage = "http://elm-lang.org";

View File

@@ -1,29 +1,32 @@
{ mkDerivation, aeson, aeson-pretty, ansi-wl-pprint, base, binary
, bytestring, containers, directory, elm-compiler, fetchgit
, filepath, HTTP, http-client, http-client-tls, http-types, mtl
, network, optparse-applicative, pretty, stdenv, text, time
, unordered-containers, vector, zip-archive
, bytestring, containers, directory, edit-distance, elm-compiler
, fetchgit, filepath, HTTP, http-client, http-client-tls
, http-types, mtl, network, optparse-applicative, parallel-io
, pretty, stdenv, text, time, unordered-containers, vector
, zip-archive
}:
mkDerivation {
pname = "elm-package";
version = "0.17";
version = "0.17.1";
src = fetchgit {
url = "https://github.com/elm-lang/elm-package";
sha256 = "0z86560a2f7w3ywqvzqghgz100z0yn8zsiixkw4lp5168krp4axg";
rev = "fc0924210fe5a7c0af543769b1353dbb2ddf2f0c";
sha256 = "0dnn871py0pvzxsjjggy5ww2zj9g71c2dcnp38rcr4nbj8yxik85";
rev = "9011ccdbced1d06aa60de0e3096e609ef44d26dd";
};
isLibrary = true;
isExecutable = true;
libraryHaskellDepends = [
aeson aeson-pretty base binary bytestring containers directory
elm-compiler filepath HTTP http-client http-client-tls http-types
mtl network text time unordered-containers vector zip-archive
aeson aeson-pretty ansi-wl-pprint base binary bytestring containers
directory edit-distance elm-compiler filepath HTTP http-client
http-client-tls http-types mtl network parallel-io text time
unordered-containers vector zip-archive
];
executableHaskellDepends = [
aeson aeson-pretty ansi-wl-pprint base binary bytestring containers
directory elm-compiler filepath HTTP http-client http-client-tls
http-types mtl network optparse-applicative pretty text time
unordered-containers vector zip-archive
directory edit-distance elm-compiler filepath HTTP http-client
http-client-tls http-types mtl network optparse-applicative
parallel-io pretty text time unordered-containers vector
zip-archive
];
jailbreak = true;
homepage = "http://github.com/elm-lang/elm-package";

View File

@@ -1,22 +1,22 @@
{
"elm-lang/virtual-dom" = {
version = "1.0.0";
sha256 = "0pa8k04g9yfixahsb30j0rbhfh6hwdh7xmm2fvk0hkidw7b4xg57";
version = "1.1.0";
sha256 = "16g66cvvh85ddciq0ymaqfyq2bcz11pxn0g0dc1wx7bmlqx7q1jz";
};
"evancz/elm-markdown" = {
version = "3.0.0";
sha256 = "0r3hcim4mpn46ahv1q6sjp6i2viyp7jik6i71xgwmvfb9drns2p6";
};
"elm-lang/html" = {
version = "1.0.0";
sha256 = "16cr01yxkpkmgbgclp2p80nd62a6fjw3qipzjsgksrhwv9vv4gm4";
version = "1.1.0";
sha256 = "1v7pwxxd81qrfywb4rr199p2i9z77vjkbwjwm5gy1nxdpi8mb50y";
};
"elm-lang/svg" = {
version = "1.0.0";
sha256 = "0c29y6c58x2sq1bl29z1hr5gi2rlza8clk7ssgzmsf4xbvcczbjx";
version = "1.1.1";
sha256 = "0xzc0fq2kg797km0nq2f52w6xdffrl9l0y5zbkpa72w163zpxkkn";
};
"elm-lang/core" = {
version = "4.0.0";
sha256 = "04qgzgv90qyhjk55yw4szy50h2dqdlm0a2padbgn02yf4bb1b4nw";
version = "4.0.2";
sha256 = "1qjhfr3gd1qmfvna7iddspmk26v2nmgmgw9m6yyz10ygy3i9mla6";
};
}

View File

@@ -1,22 +1,25 @@
{ mkDerivation, base, blaze-html, blaze-markup, bytestring, cmdargs
, directory, elm-compiler, fetchgit, filepath, fsnotify, mtl
, snap-core, snap-server, stdenv, text, time, transformers
, websockets, websockets-snap, elm-package, file-embed
{ mkDerivation, aeson, base, blaze-html, blaze-markup, bytestring
, cmdargs, containers, directory, elm-compiler, elm-package
, fetchgit, file-embed, filepath, fsnotify, mtl, process, snap-core
, snap-server, stdenv, template-haskell, text, time, transformers
, unordered-containers, utf8-string, websockets, websockets-snap
}:
mkDerivation {
pname = "elm-reactor";
version = "0.17";
version = "0.17.1";
src = fetchgit {
url = "https://github.com/elm-lang/elm-reactor";
sha256 = "03lb6fcc5d02gflarxc54l71hbwdb73v423ffjz5hvlha6ixglv7";
rev = "4781ad2fbb6cbcde0d659dec293bbed9c847ba71";
sha256 = "14kkqskvhkfznpl8cmjlvv3rp6ciqmdbxrmq6f20p3aznvkrdvf8";
rev = "7522d7ef379c5a4ffbba11b1be09ed04add08a63";
};
isLibrary = false;
isExecutable = true;
executableHaskellDepends = [
base blaze-html blaze-markup bytestring cmdargs directory
elm-compiler filepath fsnotify mtl snap-core snap-server text time
transformers websockets websockets-snap elm-package file-embed
aeson base blaze-html blaze-markup bytestring cmdargs containers
directory elm-compiler elm-package file-embed filepath fsnotify mtl
process snap-core snap-server template-haskell text time
transformers unordered-containers utf8-string websockets
websockets-snap
];
jailbreak = true;
homepage = "http://elm-lang.org";

View File

@@ -2,20 +2,21 @@
, containers, directory, elm-compiler, elm-package, fetchgit
, filepath, haskeline, HUnit, mtl, parsec, QuickCheck, stdenv
, test-framework, test-framework-hunit, test-framework-quickcheck2
, text
}:
mkDerivation {
pname = "elm-repl";
version = "0.17";
version = "0.17.1";
src = fetchgit {
url = "https://github.com/elm-lang/elm-repl";
sha256 = "0bpmkm7q3a0h4hwlbwcnzaqgf6n5p1qw65z8kw84f52s5bndc0wc";
rev = "95b4555cff6b6e2a55a4ea3dab00bfb39dfebf0d";
sha256 = "0nh2yfr0bi4rg1kak1gjaczpq56y1nii05b5y7hn6n4w651jkm28";
rev = "413ac0d4ee43c8542afd3041bbb7b8c903cd3d30";
};
isLibrary = false;
isExecutable = true;
executableHaskellDepends = [
base binary bytestring bytestring-trie cmdargs containers directory
elm-compiler elm-package filepath haskeline mtl parsec
elm-compiler elm-package filepath haskeline mtl parsec text
];
testHaskellDepends = [
base bytestring bytestring-trie cmdargs directory elm-compiler
@@ -24,6 +25,6 @@ mkDerivation {
];
jailbreak = true;
homepage = "https://github.com/elm-lang/elm-repl";
description = "A REPL for Elm";
description = "a REPL for Elm";
license = stdenv.lib.licenses.bsd3;
}

View File

@@ -2,7 +2,7 @@
# Please, do not modify it by hand!
{ callPackage }:
{
version = "0.17";
version = "0.17.1";
packages = {
elm-compiler = callPackage ./elm-compiler.nix { };
elm-package = callPackage ./elm-package.nix { };

View File

@@ -1,19 +1,19 @@
#!/usr/bin/env ruby
# Take those from https://github.com/elm-lang/elm-platform/blob/master/installers/BuildFromSource.hs
$elm_version = "0.17"
$elm_packages = { "elm-compiler" => "0.17",
"elm-package" => "0.17",
"elm-make" => "0.17",
"elm-reactor" => "0.17",
"elm-repl" => "0.17"
$elm_version = "0.17.1"
$elm_packages = { "elm-compiler" => "0.17.1",
"elm-package" => "0.17.1",
"elm-make" => "0.17.1",
"elm-reactor" => "0.17.1",
"elm-repl" => "0.17.1"
}
for pkg, ver in $elm_packages
system "cabal2nix https://github.com/elm-lang/#{pkg} --revision refs/tags/#{ver} --jailbreak > #{pkg}.nix"
system "cabal2nix https://github.com/elm-lang/#{pkg} --revision refs/tags/#{ver} --jailbreak > packages/#{pkg}.nix"
end
File.open("release.nix", 'w') do |file|
File.open("packages/release.nix", 'w') do |file|
file.puts "# This file is auto-generated by ./update-elm.rb."
file.puts "# Please, do not modify it by hand!"
file.puts "{ callPackage }:"

View File

@@ -1,4 +1,4 @@
{stdenv, lib, fetchurl, perl, libedit, ncurses, gmp}:
{stdenv, lib, fetchurl, perl, libedit, ncurses5, gmp}:
stdenv.mkDerivation rec {
version = "6.10.2";
@@ -40,7 +40,7 @@ stdenv.mkDerivation rec {
(if stdenv.isLinux then ''
find . -type f -perm -0100 \
-exec patchelf --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
--set-rpath "${libedit}/lib:${ncurses.out}/lib:${gmp.out}/lib" {} \;
--set-rpath "${libedit}/lib:${ncurses5.out}/lib:${gmp.out}/lib" {} \;
for prog in ld ar gcc strip ranlib; do
find . -name "setup-config" -exec sed -i "s@/usr/bin/$prog@$(type -p $prog)@g" {} \;
done

View File

@@ -1,4 +1,4 @@
{stdenv, fetchurl, perl, ncurses, gmp, libiconv}:
{stdenv, fetchurl, perl, ncurses5, gmp, libiconv}:
stdenv.mkDerivation rec {
version = "7.0.4";
@@ -62,7 +62,7 @@ stdenv.mkDerivation rec {
stdenv.lib.optionalString stdenv.isLinux ''
find . -type f -perm -0100 \
-exec patchelf --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
--set-rpath "${ncurses.out}/lib:${gmp.out}/lib" {} \;
--set-rpath "${ncurses5.out}/lib:${gmp.out}/lib" {} \;
sed -i "s|/usr/bin/perl|perl\x00 |" ghc-${version}/ghc/stage2/build/tmp/ghc-stage2
sed -i "s|/usr/bin/gcc|gcc\x00 |" ghc-${version}/ghc/stage2/build/tmp/ghc-stage2
for prog in ld ar gcc strip ranlib; do

View File

@@ -1,4 +1,4 @@
{stdenv, fetchurl, perl, ncurses, gmp, libiconv, makeWrapper}:
{stdenv, fetchurl, perl, ncurses5, gmp, libiconv, makeWrapper}:
stdenv.mkDerivation rec {
version = "7.4.2";
@@ -61,7 +61,7 @@ stdenv.mkDerivation rec {
# find editline/gmp.
stdenv.lib.optionalString stdenv.isLinux ''
mkdir -p "$out/lib"
ln -sv "${ncurses.out}/lib/libncurses.so" "$out/lib/libncurses${stdenv.lib.optionalString stdenv.is64bit "w"}.so.5"
ln -sv "${ncurses5.out}/lib/libncurses.so" "$out/lib/libncurses${stdenv.lib.optionalString stdenv.is64bit "w"}.so.5"
find . -type f -perm -0100 \
-exec patchelf --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
--set-rpath "$out/lib:${gmp.out}/lib" {} \;

View File

@@ -1,35 +0,0 @@
{stdenv, fetchgit, perl, flex, bison, gmp, mpfr, cmake}:
assert stdenv.system == "x86_64-linux";
stdenv.mkDerivation {
name = "path64-2010-07-02";
src = fetchgit {
url = git://github.com/path64/compiler.git;
rev = "e17f7f952831bbf1d996";
sha256 = "fa1320959e1131557d5f82e98f4621a222ec45e1d6e0e7f271d2c13de4fd0dd1";
};
patchPhase = ''
sed -i s,/usr/bin/ld,$(type -P ld), src/driver/phases.c
sed -i s,/lib64/ld-linux-x86-64.so.2,${stdenv.cc.libc.out}/lib/ld-linux-x86-64.so.2, src/include/main_defs.h.in
'';
cmakeFlags = ''
-DPATH64_ENABLE_HUGEPAGES=ON
-DPATH64_ENABLE_MATHLIBS=ON -DPATH64_ENABLE_OPENMP=ON
-DPATH64_ENABLE_PSCRUNTIME=OFF
-DPATH64_ENABLE_PROFILING=OFF -DPATH64_ENABLE_TARGETS=x8664
-DCMAKE_BUILD_TYPE=Debug -DPATH64_ENABLE_FORTRAN=OFF
-DPSC_CRT_PATH=${stdenv.cc.libc.out}/lib
'';
makeFlags = "-j4";
installPhase = ''
exit 1;
'';
buildInputs = [ perl flex bison gmp mpfr cmake ];
}

View File

@@ -9,11 +9,11 @@
stdenv.mkDerivation rec {
name = "sbcl-${version}";
version = "1.3.6";
version = "1.3.7";
src = fetchurl {
url = "mirror://sourceforge/project/sbcl/sbcl/${version}/${name}-source.tar.bz2";
sha256 = "1ndha72ji30qkq3rq76sp0yrka0679agg97x9imda2pyv0dsq5zh";
sha256 = "0fjdqnb2rsm2vi9794ywp27jr239ddvzc4xfr0dk49jd4v7p2kc5";
};
patchPhase = ''

View File

@@ -1601,6 +1601,42 @@
"sha256": "0dmc8iar9685ks1ba3vnycjsx8qxwyqv51jb7677dvwnzbqhgw6f"
}
},
{
"goPackagePath": "github.com/yosssi/ace",
"fetch": {
"type": "git",
"url": "https://github.com/yosssi/ace",
"rev": "71afeb714739f9d5f7e1849bcd4a0a5938e1a70d",
"sha256": "15k7ji8m3nqbwhnsvp82j4qa45sgvwv2giliw2xkdwi2g7mfrn8k"
}
},
{
"goPackagePath": "github.com/spf13/viper",
"fetch": {
"type": "git",
"url": "https://github.com/spf13/viper",
"rev": "c1ccc378a054ea8d4e38d8c67f6938d4760b53dd",
"sha256": "0lpdzalqhqp9pwsg63inkxwjji7m0pp42ryw1499bqbjp97hriq0"
}
},
{
"goPackagePath": "github.com/spf13/pflag",
"fetch": {
"type": "git",
"url": "https://github.com/spf13/pflag",
"rev": "367864438f1b1a3c7db4da06a2f55b144e6784e0",
"sha256": "03c6654hv4v1fj79i5sri3p9q2afqgicka4nicb6fr4kcfkkgbfp"
}
},
{
"goPackagePath": "github.com/spf13/jwalterweatherman",
"fetch": {
"type": "git",
"url": "https://github.com/spf13/jwalterweatherman",
"rev": "33c24e77fb80341fe7130ee7c594256ff08ccc46",
"sha256": "1knvzspqzc2bh58q16zggzc8gcabjp5gr7zk4k7nx5ij4092cg0z"
}
},
{
"goPackagePath": "github.com/fsnotify/fsnotify",
"fetch": {
@@ -1618,5 +1654,167 @@
"rev": "45c278ab3607870051a2ea9040bb85fcb8557481",
"sha256": "0620v75wppfd84d95n312wpngcb73cph4q3ivs1h0waljfnsrd5l"
}
},
{
"goPackagePath": "github.com/magiconair/properties",
"fetch": {
"type": "git",
"url": "https://github.com/magiconair/properties",
"rev": "c265cfa48dda6474e208715ca93e987829f572f8",
"sha256": "1ab9ywwsrdq5mvrcwl7m3276y1q4dfwinbv88vgpqwcqai9wkpp3"
}
},
{
"goPackagePath": "github.com/bep/inflect",
"fetch": {
"type": "git",
"url": "https://github.com/bep/inflect",
"rev": "b896c45f5af983b1f416bdf3bb89c4f1f0926f69",
"sha256": "0drv6in94n7lmap4ajvgqlvdcbpn8alinfdzywzpihvzbx21b3h3"
}
},
{
"goPackagePath": "github.com/eknkc/amber",
"fetch": {
"type": "git",
"url": "https://github.com/eknkc/amber",
"rev": "91774f050c1453128146169b626489e60108ec03",
"sha256": "1rb8bm35h8a77q4py6r3818cpwh7kpq1kh2ib2rb4i5s7z75ciis"
}
},
{
"goPackagePath": "github.com/spf13/afero",
"fetch": {
"type": "git",
"url": "https://github.com/spf13/afero",
"rev": "1a8ecf8b9da1fb5306e149e83128fc447957d2a8",
"sha256": "1nrg0gmqnl4h6zjmi4mdhrwnl3l34nzxpq2hsr3nizfvrx5gqbzw"
}
},
{
"goPackagePath": "github.com/spf13/cast",
"fetch": {
"type": "git",
"url": "https://github.com/spf13/cast",
"rev": "27b586b42e29bec072fe7379259cc719e1289da6",
"sha256": "1y73pfxdvm1bfpghwsfxj8gl4miv6fpzi9azxcknp6rcjn1gmq0x"
}
},
{
"goPackagePath": "github.com/spf13/cobra",
"fetch": {
"type": "git",
"url": "https://github.com/spf13/cobra",
"rev": "bc81c21bd0d8be5ba2d6630a505d79d4467566e7",
"sha256": "1sp8gl25cjx0yibh6q1i8d5rbxpwaal3z8vz372wfmbz002say8r"
}
},
{
"goPackagePath": "github.com/dchest/cssmin",
"fetch": {
"type": "git",
"url": "https://github.com/dchest/cssmin",
"rev": "fb8d9b44afdc258bfff6052d3667521babcb2239",
"sha256": "09sdijfx5d05z4cd5k6lhl7k3kbpdf2amzlngv15h5v0fff9qw4s"
}
},
{
"goPackagePath": "github.com/spf13/fsync",
"fetch": {
"type": "git",
"url": "https://github.com/spf13/fsync",
"rev": "eefee59ad7de621617d4ff085cf768aab4b919b1",
"sha256": "0d56xdczawikyczc12i661qc79dbv4q8ihlj4p20zsjkyxxym59p"
}
},
{
"goPackagePath": "github.com/cpuguy83/go-md2man",
"fetch": {
"type": "git",
"url": "https://github.com/cpuguy83/go-md2man",
"rev": "2724a9c9051aa62e9cca11304e7dd518e9e41599",
"sha256": "1j2bigs7ixy20cdqd246nxr417md2qcyvkfk3x94992cr88d0vyj"
}
},
{
"goPackagePath": "github.com/miekg/mmark",
"fetch": {
"type": "git",
"url": "https://github.com/miekg/mmark",
"rev": "adb5c3e2e9f3e7da9bd25291edda8e66c0045a2a",
"sha256": "0fycz17fj37fh95lfshdrfwrgkzi3hl1kgnily0cxc9zwfbap3qa"
}
},
{
"goPackagePath": "github.com/spf13/nitro",
"fetch": {
"type": "git",
"url": "https://github.com/spf13/nitro",
"rev": "24d7ef30a12da0bdc5e2eb370a79c659ddccf0e8",
"sha256": "143sbpx0jdgf8f8ayv51x6l4jg6cnv6nps6n60qxhx4vd90s6mib"
}
},
{
"goPackagePath": "github.com/PuerkitoBio/purell",
"fetch": {
"type": "git",
"url": "https://github.com/PuerkitoBio/purell",
"rev": "1d5d1cfad45d42ec5f81fa8ef23de09cebc6dcc3",
"sha256": "12k82576ka21c6572yy2v81kxpjrgf9mffjlz469g3vs0g3nkwlb"
}
},
{
"goPackagePath": "github.com/opennota/urlesc",
"fetch": {
"type": "git",
"url": "https://github.com/opennota/urlesc",
"rev": "5fa9ff0392746aeae1c4b37fcc42c65afa7a9587",
"sha256": "0dppkmfs0hb5vcqli191x9yss5vvlx29qxjcywhdfirc89rn0sni"
}
},
{
"goPackagePath": "github.com/pkg/sftp",
"fetch": {
"type": "git",
"url": "https://github.com/pkg/sftp",
"rev": "d4c18e7ffdc496a38de67dde6e29b2f364afc472",
"sha256": "0cnl83k317gxskayfj3xwr4bl0vcbjvlwi3q0vjwvircynb6xscj"
}
},
{
"goPackagePath": "github.com/kr/fs",
"fetch": {
"type": "git",
"url": "https://github.com/kr/fs",
"rev": "2788f0dbd16903de03cb8186e5c7d97b69ad387b",
"sha256": "1c0fipl4rsh0v5liq1ska1dl83v3llab4k6lm8mvrx9c4dyp71ly"
}
},
{
"goPackagePath": "github.com/kyokomi/emoji",
"fetch": {
"type": "git",
"url": "https://github.com/kyokomi/emoji",
"rev": "17c5e7085c9d59630aa578df67f4469481fbe7a9",
"sha256": "0qs4mi7z1lghiyiw7s2bz5y959wj9ifmhyqh39xwqk69d690jwlp"
}
},
{
"goPackagePath": "github.com/pkg/errors",
"fetch": {
"type": "git",
"url": "https://github.com/pkg/errors",
"rev": "494e70f7620561491c2ca11e185bbef4b70060da",
"sha256": "0a0961ixl67vryhnzyzhai357c9n9a7v3vpkpqrh32spn033gjd9"
}
},
{
"goPackagePath": "github.com/PuerkitoBio/urlesc",
"fetch": {
"type": "git",
"url": "https://github.com/PuerkitoBio/urlesc",
"rev": "5fa9ff0392746aeae1c4b37fcc42c65afa7a9587",
"sha256": "0dppkmfs0hb5vcqli191x9yss5vvlx29qxjcywhdfirc89rn0sni"
}
}
]

View File

@@ -20,7 +20,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ guile ];
buildInputs = [
SDL SDL_image SDL_ttf SDL_mixer
SDL.dev SDL_image SDL_ttf SDL_mixer
];
GUILE_AUTO_COMPILE = 0;

View File

@@ -242,6 +242,15 @@ self: super: {
'';
})) pkgs.libcxx;
inline-c-cpp = if !pkgs.stdenv.isDarwin
then super.inline-c-cpp
else addExtraLibrary (overrideCabal super.inline-c-cpp (drv:
{
postPatch = ''
substituteInPlace inline-c-cpp.cabal --replace stdc++ c++
'';
})) pkgs.libcxx;
# tests don't compile for some odd reason
jwt = dontCheck super.jwt;

View File

@@ -90,6 +90,14 @@ package-maintainers:
khumba:
- goatee
- goatee-gtk
- hoppy-docs
- hoppy-generator
- hoppy-runtime
- hoppy-std
- qtah-cpp-qt5
- qtah-examples
- qtah-generator
- qtah-qt5
psibi:
- path-pieces
- persistent

View File

@@ -9,8 +9,8 @@ let
allCabalFiles = pkgs.fetchFromGitHub {
owner = "commercialhaskell";
repo = "all-cabal-hashes";
rev = "461610ab6f0cf581e186643c037f1981755792d9";
sha256 = "0x2577lfd5cbbaivl72273kw93gcmxvbjybk7w4h2ic3zvs1fnvm";
rev = "72f1318540eff69544eb8c14a16f630d0c5448b8";
sha256 = "1czi1rajk2726mqrw3qp7a43h26acbjw54ll3ns063yzg9hg469m";
};
inherit (stdenv.lib) fix' extends;

View File

@@ -1,6 +1,6 @@
{ stdenv, fetchurl, gfortran, readline, ncurses, perl, flex, texinfo, qhull
, libsndfile, libX11, graphicsmagick, pcre, pkgconfig, mesa, fltk
, fftw, fftwSinglePrec, zlib, curl, qrupdate, openblas
, fftw, fftwSinglePrec, zlib, curl, qrupdate, openblas, arpack, libwebp
, qt ? null, qscintilla ? null, ghostscript ? null, llvm ? null, hdf5 ? null,glpk ? null
, suitesparse ? null, gnuplot ? null, jdk ? null, python ? null
}:
@@ -27,7 +27,7 @@ stdenv.mkDerivation rec {
buildInputs = [ gfortran readline ncurses perl flex texinfo qhull libX11
graphicsmagick pcre pkgconfig mesa fltk zlib curl openblas libsndfile
fftw fftwSinglePrec qrupdate ]
fftw fftwSinglePrec qrupdate arpack libwebp ]
++ (stdenv.lib.optional (qt != null) qt)
++ (stdenv.lib.optional (qscintilla != null) qscintilla)
++ (stdenv.lib.optional (ghostscript != null) ghostscript)
@@ -38,9 +38,10 @@ stdenv.mkDerivation rec {
++ (stdenv.lib.optional (jdk != null) jdk)
++ (stdenv.lib.optional (gnuplot != null) gnuplot)
++ (stdenv.lib.optional (python != null) python)
++ (stdenv.lib.optionals (!stdenv.isDarwin) [mesa libX11])
;
doCheck = true;
doCheck = !stdenv.isDarwin;
enableParallelBuilding = true;
@@ -50,7 +51,9 @@ stdenv.mkDerivation rec {
"--with-blas=openblas"
"--with-lapack=openblas"
]
++ stdenv.lib.optional openblas.blas64 "--enable-64";
++ stdenv.lib.optional openblas.blas64 "--enable-64"
++ stdenv.lib.optionals stdenv.isDarwin ["--with-x=no"]
;
# Keep a copy of the octave tests detailed results in the output
# derivation, because someone may care
@@ -67,6 +70,6 @@ stdenv.mkDerivation rec {
homepage = http://octave.org/;
license = stdenv.lib.licenses.gpl3Plus;
maintainers = with stdenv.lib.maintainers; [viric raskin];
platforms = with stdenv.lib.platforms; linux;
platforms = with stdenv.lib.platforms; linux ++ darwin;
};
}

View File

@@ -1,4 +1,4 @@
{ stdenv, fetchurl, zlib ? null, zlibSupport ? true, bzip2, includeModules ? false
{ stdenv, fetchurl, zlib ? null, zlibSupport ? true, bzip2, less, includeModules ? false
, sqlite, tcl, tk, xlibsWrapper, openssl, readline, db, ncurses, gdbm, self, callPackage
, python26Packages }:
@@ -53,6 +53,8 @@ let
[ bzip2 openssl ]++ optionals includeModules [ db openssl ncurses gdbm readline xlibsWrapper tcl tk sqlite ]
++ optional zlibSupport zlib;
propagatedBuildInputs = [ less ];
mkPaths = paths: {
C_INCLUDE_PATH = makeSearchPathOutput "dev" "include" paths;
LIBRARY_PATH = makeLibraryPath paths;
@@ -64,8 +66,8 @@ let
name = "python${if includeModules then "" else "-minimal"}-${version}";
pythonVersion = majorVersion;
inherit majorVersion version src patches buildInputs preConfigure
configureFlags;
inherit majorVersion version src patches buildInputs propagatedBuildInputs
preConfigure configureFlags;
inherit (mkPaths buildInputs) C_INCLUDE_PATH LIBRARY_PATH;

View File

@@ -1,5 +1,6 @@
{ stdenv, fetchurl, self, callPackage, python27Packages
, bzip2, openssl, gettext
, less
, includeModules ? false
@@ -22,11 +23,11 @@ with stdenv.lib;
let
majorVersion = "2.7";
version = "${majorVersion}.11";
version = "${majorVersion}.12";
src = fetchurl {
url = "http://www.python.org/ftp/python/${version}/Python-${version}.tar.xz";
sha256 = "0iiz844riiznsyhhyy962710pz228gmhv8qi3yk4w4jhmx2lqawn";
sha256 = "0y7rl603vmwlxm6ilkhc51rx2mfj14ckcz40xxgs0ljnvlhp30yp";
};
patches =
@@ -108,7 +109,7 @@ let
++ optional zlibSupport zlib
++ optional stdenv.isDarwin CF;
propagatedBuildInputs = optional stdenv.isDarwin configd;
propagatedBuildInputs = [ less ] ++ optional stdenv.isDarwin configd;
mkPaths = paths: {
C_INCLUDE_PATH = makeSearchPathOutput "dev" "include" paths;

View File

@@ -1,7 +1,8 @@
diff -ru -x '*~' Python-2.7.11-orig/Lib/ctypes/util.py Python-2.7.11/Lib/ctypes/util.py
--- Python-2.7.11-orig/Lib/ctypes/util.py 2015-12-05 20:46:56.000000000 +0100
+++ Python-2.7.11/Lib/ctypes/util.py 2016-07-01 14:24:50.714223450 +0200
@@ -212,31 +212,7 @@
diff --git a/Lib/ctypes/util.py b/Lib/ctypes/util.py
index b2c514d..a6eca81 100644
--- a/Lib/ctypes/util.py
+++ b/Lib/ctypes/util.py
@@ -207,31 +207,7 @@ elif os.name == "posix":
else:
def _findSoname_ldconfig(name):
@@ -21,7 +22,7 @@ diff -ru -x '*~' Python-2.7.11-orig/Lib/ctypes/util.py Python-2.7.11/Lib/ctypes/
-
- # XXX assuming GLIBC's ldconfig (with option -p)
- expr = r'\s+(lib%s\.[^\s]+)\s+\(%s' % (re.escape(name), abi_type)
- f = os.popen('/sbin/ldconfig -p 2>/dev/null')
- f = os.popen('LC_ALL=C LANG=C /sbin/ldconfig -p 2>/dev/null')
- try:
- data = f.read()
- finally:
@@ -34,10 +35,11 @@ diff -ru -x '*~' Python-2.7.11-orig/Lib/ctypes/util.py Python-2.7.11/Lib/ctypes/
def find_library(name):
return _findSoname_ldconfig(name) or _get_soname(_findLib_gcc(name))
diff -ru -x '*~' Python-2.7.11-orig/Lib/uuid.py Python-2.7.11/Lib/uuid.py
--- Python-2.7.11-orig/Lib/uuid.py 2015-12-05 20:47:09.000000000 +0100
+++ Python-2.7.11/Lib/uuid.py 2016-07-01 14:33:14.360446897 +0200
@@ -437,57 +437,7 @@
diff --git a/Lib/uuid.py b/Lib/uuid.py
index 7432032..9829d18 100644
--- a/Lib/uuid.py
+++ b/Lib/uuid.py
@@ -437,57 +437,7 @@ def _netbios_getnode():
return ((bytes[0]<<40L) + (bytes[1]<<32L) + (bytes[2]<<24L) +
(bytes[3]<<16L) + (bytes[4]<<8L) + bytes[5])

View File

@@ -2,6 +2,7 @@
, bzip2
, db
, gdbm
, less
, libX11, xproto
, lzma
, ncurses
@@ -27,6 +28,11 @@ let
buildInputs = filter (p: p != null) [
zlib bzip2 lzma gdbm sqlite db readline ncurses openssl tcl tk libX11 xproto
];
propagatedBuildInputs = [
less
];
in
stdenv.mkDerivation {
name = "python3-${version}";
@@ -34,6 +40,7 @@ stdenv.mkDerivation {
inherit majorVersion version;
inherit buildInputs;
inherit propagatedBuildInputs;
src = fetchurl {
url = "http://www.python.org/ftp/python/${version}/Python-${version}.tar.xz";

View File

@@ -2,6 +2,7 @@
, bzip2
, db
, gdbm
, less
, libX11, xproto
, lzma
, ncurses
@@ -42,6 +43,11 @@ let
libX11
xproto
] ++ optionals stdenv.isDarwin [ CF configd ];
propagatedBuildInputs = [
less
];
in
stdenv.mkDerivation {
name = "python3-${fullVersion}";
@@ -49,6 +55,7 @@ stdenv.mkDerivation {
inherit majorVersion version;
inherit buildInputs;
inherit propagatedBuildInputs;
src = fetchurl {
url = "http://www.python.org/ftp/python/${version}/Python-${fullVersion}.tar.xz";

View File

@@ -2,6 +2,7 @@
, bzip2
, db
, gdbm
, less
, libX11, xproto
, lzma
, ncurses
@@ -42,6 +43,11 @@ let
libX11
xproto
] ++ optionals stdenv.isDarwin [ CF configd ];
propagatedBuildInputs = [
less
];
in
stdenv.mkDerivation {
name = "python3-${fullVersion}";
@@ -49,6 +55,7 @@ stdenv.mkDerivation {
inherit majorVersion version;
inherit buildInputs;
inherit propagatedBuildInputs;
src = fetchurl {
url = "http://www.python.org/ftp/python/${version}/Python-${fullVersion}.tar.xz";

View File

@@ -0,0 +1,145 @@
{ stdenv, fetchurl
, glibc
, bzip2
, db
, gdbm
, less
, libX11, xproto
, lzma
, ncurses
, openssl
, readline
, sqlite
, tcl, tk
, zlib
, callPackage
, self
, python36Packages
, CF, configd
}:
assert readline != null -> ncurses != null;
with stdenv.lib;
let
majorVersion = "3.6";
pythonVersion = majorVersion;
version = "${majorVersion}.0a3";
fullVersion = "${version}";
buildInputs = filter (p: p != null) [
glibc
zlib
bzip2
lzma
gdbm
sqlite
db
readline
ncurses
openssl
tcl
tk
libX11
xproto
] ++ optionals stdenv.isDarwin [ CF configd ];
propagatedBuildInputs = [
less
];
in
stdenv.mkDerivation {
name = "python3-${fullVersion}";
pythonVersion = majorVersion;
inherit majorVersion version;
inherit buildInputs;
inherit propagatedBuildInputs;
src = fetchurl {
url = "https://www.python.org/ftp/python/${majorVersion}.0/Python-${fullVersion}.tar.xz";
sha256 = "08c3598bwihibwca9lwxq923sjq9shvgv3wxv4vkga2n6hf63l1c";
};
NIX_LDFLAGS = optionalString stdenv.isLinux "-lgcc_s";
prePatch = optionalString stdenv.isDarwin ''
substituteInPlace configure --replace '`/usr/bin/arch`' '"i386"'
'';
preConfigure = ''
for i in /usr /sw /opt /pkg; do # improve purity
substituteInPlace ./setup.py --replace $i /no-such-path
done
${optionalString stdenv.isDarwin ''
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -msse2"
export MACOSX_DEPLOYMENT_TARGET=10.6
''}
substituteInPlace ./Lib/plat-generic/regen --replace "/usr/include" ${glibc}/include
configureFlagsArray=( --enable-shared --with-threads
CPPFLAGS="${concatStringsSep " " (map (p: "-I${getDev p}/include") buildInputs)}"
LDFLAGS="${concatStringsSep " " (map (p: "-L${getLib p}/lib") buildInputs)}"
LIBS="${optionalString (!stdenv.isDarwin) "-lcrypt"} ${optionalString (ncurses != null) "-lncurses"}"
)
'';
setupHook = ./setup-hook.sh;
postInstall = ''
# needed for some packages, especially packages that backport functionality
# to 2.x from 3.x
for item in $out/lib/python${majorVersion}/test/*; do
if [[ "$item" != */test_support.py* ]]; then
rm -rf "$item"
else
echo $item
fi
done
touch $out/lib/python${majorVersion}/test/__init__.py
ln -s "$out/include/python${majorVersion}m" "$out/include/python${majorVersion}"
paxmark E $out/bin/python${majorVersion}
'';
passthru = rec {
zlibSupport = zlib != null;
sqliteSupport = sqlite != null;
dbSupport = db != null;
readlineSupport = readline != null;
opensslSupport = openssl != null;
tkSupport = (tk != null) && (tcl != null) && (libX11 != null) && (xproto != null);
libPrefix = "python${majorVersion}";
executable = "python${majorVersion}m";
buildEnv = callPackage ../wrapper.nix { python = self; };
withPackages = import ../with-packages.nix { inherit buildEnv; pythonPackages = python36Packages; };
isPy3 = true;
isPy35 = true;
is_py3k = true; # deprecated
sitePackages = "lib/${libPrefix}/site-packages";
interpreter = "${self}/bin/${executable}";
};
enableParallelBuilding = true;
meta = {
homepage = http://python.org;
description = "A high-level dynamically-typed programming language";
longDescription = ''
Python is a remarkably powerful dynamic programming language that
is used in a wide variety of application domains. Some of its key
distinguishing features include: clear, readable syntax; strong
introspection capabilities; intuitive object orientation; natural
expression of procedural code; full modularity, supporting
hierarchical packages; exception-based error handling; and very
high level dynamic data types.
'';
license = licenses.psfl;
platforms = with platforms; linux ++ darwin;
maintainers = with maintainers; [ chaoflow domenkozar cstrahan kragniz ];
};
}

View File

@@ -0,0 +1,15 @@
addPythonPath() {
addToSearchPathWithCustomDelimiter : PYTHONPATH $1/lib/python3.6/site-packages
}
toPythonPath() {
local paths="$1"
local result=
for i in $paths; do
p="$i/lib/python3.6/site-packages"
result="${result}${result:+:}$p"
done
echo $result
}
envHooks+=(addPythonPath)

View File

@@ -1,19 +1,23 @@
{ stdenv, fetchurl, pkgconfig, gettext, gtk3, intltool, glib
{ stdenv, fetchFromGitHub, pkgconfig, gettext, gtk3, intltool, glib
, gtk_doc, autoconf, automake, libtool, libarchive, libyaml
, gobjectIntrospection, sqlite, libsoup, gcab, attr, acl, docbook_xsl
, libuuid, json_glib
}:
stdenv.mkDerivation rec {
name = "appstream-glib-0.3.6";
name = "appstream-glib-0.5.11";
src = fetchurl {
url = "https://github.com/hughsie/appstream-glib/archive/appstream_glib_0_3_6.tar.gz";
sha256 = "1zdxg9dk9vxw2cs04cswd138di3dysz0hxk4918750hh19s3859c";
src = fetchFromGitHub {
owner = "hughsie";
repo = "appstream-glib";
rev = stdenv.lib.replaceStrings ["." "-"] ["_" "_"] name;
sha256 = "1rvfncm9z29h70pd718j73cd263g6yyxkxrg7zfzy0gj6wwzvhkh";
};
buildInputs = [ glib libtool pkgconfig gtk_doc gettext intltool sqlite libsoup
gcab attr acl docbook_xsl
libarchive libyaml gtk3 autoconf automake gobjectIntrospection ];
nativeBuildInputs = [ autoconf automake libtool pkgconfig intltool ];
buildInputs = [ glib gtk_doc gettext sqlite libsoup
gcab attr acl docbook_xsl libuuid json_glib
libarchive libyaml gtk3 gobjectIntrospection ];
configureScript = "./autogen.sh";
@@ -22,7 +26,6 @@ stdenv.mkDerivation rec {
homepage = https://github.com/hughsie/appstream-glib;
license = licenses.lgpl21Plus;
platforms = platforms.linux;
maintainers = with maintainers; [ lethalman ];
maintainers = with maintainers; [ lethalman matthewbauer ];
};
}

View File

@@ -1,6 +1,7 @@
{ stdenv, composableDerivation, fetchurl, pkgconfig, xlibsWrapper, inputproto, libXi
, freeglut, mesa, libjpeg, zlib, libXinerama, libXft, libpng
, cfg ? {}
, darwin, libtiff, freetype
}:
let inherit (composableDerivation) edf; in
@@ -21,7 +22,10 @@ composableDerivation.composableDerivation {} {
'';
nativeBuildInputs = [ pkgconfig ];
propagatedBuildInputs = [ xlibsWrapper inputproto libXi freeglut ];
propagatedBuildInputs = [ inputproto ]
++ (if stdenv.isDarwin
then (with darwin.apple_sdk.frameworks; [Cocoa AGL GLUT freetype libtiff])
else [ xlibsWrapper libXi freeglut ]);
enableParallelBuilding = true;
@@ -55,9 +59,8 @@ composableDerivation.composableDerivation {} {
meta = {
description = "A C++ cross-platform lightweight GUI library";
homepage = http://www.fltk.org;
platforms = stdenv.lib.platforms.linux;
platforms = stdenv.lib.platforms.linux ++ stdenv.lib.platforms.darwin;
license = stdenv.lib.licenses.gpl2;
};
}

View File

@@ -68,6 +68,7 @@ stdenv.mkDerivation rec {
cd "$out/etc/fonts"
rm conf.d/{50-user,51-local}.conf
"${libxslt.bin}/bin/xsltproc" --stringparam fontDirectories "${fontbhttf}" \
--stringparam fontconfig "$out" \
--stringparam fontconfigConfigVersion "${configVersion}" \
--path $out/share/xml/fontconfig \
${./make-fonts-conf.xsl} $out/etc/fonts/fonts.conf \

View File

@@ -28,6 +28,8 @@
<!-- /var/cache/fontconfig is useful for non-nixos systems -->
<cachedir>/var/cache/fontconfig</cachedir>
<!-- fontconfig distribution conf.d -->
<include><xsl:value-of select="$fontconfig" />/etc/fonts/conf.d</include>
<!-- versioned system-wide config -->
<include ignore_missing="yes">/etc/fonts/<xsl:value-of select="$fontconfigConfigVersion" />/conf.d</include>

View File

@@ -3,6 +3,7 @@
, documentationSupport ? false, doxygen ? null, graphviz ? null # Documentation
, eventGUISupport ? false, cairo ? null, glib ? null, gtk3 ? null # GUI event viewer support
, testsSupport ? false, check ? null, valgrind ? null
, autoconf, automake
}:
assert documentationSupport -> doxygen != null && graphviz != null;
@@ -32,13 +33,16 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ libevdev mtdev libwacom ]
buildInputs = [ libevdev mtdev libwacom autoconf automake ]
++ optionals eventGUISupport [ cairo glib gtk3 ]
++ optionals documentationSupport [ doxygen graphviz ]
++ optionals testsSupport [ check valgrind ];
propagatedBuildInputs = [ udev ];
patches = [ ./udev-absolute-path.patch ];
patchFlags = [ "-p0" ];
meta = {
description = "Handles input devices in Wayland compositors and provides a generic X.Org input driver";
homepage = http://www.freedesktop.org/wiki/Software/libinput;

View File

@@ -0,0 +1,12 @@
--- configure.ac 2016-05-27 14:00:25.248388226 +0200
+++ configure.ac 2016-05-27 14:01:28.228943416 +0200
@@ -214,7 +214,8 @@ AM_CONDITIONAL(BUILD_DOCS, [test "x$buil
# Used by the udev rules so we can use callouts during testing without
# installing everything first. Default is the empty string so the installed
# rule will use udev's default path. Override is in udev/Makefile.am
-AC_SUBST(UDEV_TEST_PATH, "")
+UDEV_TEST_PATH="${UDEV_DIR}/"
+AC_SUBST(UDEV_TEST_PATH)
AC_PATH_PROG(SED, [sed])
AC_CONFIG_FILES([Makefile

View File

@@ -0,0 +1,36 @@
{ stdenv, fetchurl, static ? true }:
with stdenv.lib;
stdenv.mkDerivation rec {
name = "libjpeg-drop-9b";
srcs = [
(fetchurl {
url = http://www.ijg.org/files/jpegsrc.v9b.tar.gz;
sha256 = "0lnhpahgdwlrkd41lx6cr90r199f8mc6ydlh7jznj5klvacd63r4";
})
(fetchurl {
url = http://jpegclub.org/droppatch.v9b.tar.gz;
sha256 = "022bnvpird7w5pwbfqpq7j7pwja5kp6x9k3sdypcy3g2nwwy2wwk";
})
];
postUnpack = ''
rm jpegtran
mv jpegtran.c jpeg-9b/jpegtran.c
mv transupp.c jpeg-9b/transupp.c
mv transupp.h jpeg-9b/transupp.h
'';
configureFlags = []
++ optional static [ "--enable-static" "--disable-shared" ];
outputs = [ "dev" "out" "man" "bin" ];
meta = {
homepage = http://jpegclub.org/jpegtran/;
description = "Experimental lossless crop 'n' drop (cut & paste) patches for libjpeg";
license = stdenv.lib.licenses.free;
};
}

View File

@@ -1,11 +1,11 @@
{ stdenv, fetchurl, autoreconfHook, pkgconfig, libzen, zlib }:
stdenv.mkDerivation rec {
version = "0.7.86";
version = "0.7.87";
name = "libmediainfo-${version}";
src = fetchurl {
url = "http://mediaarea.net/download/source/libmediainfo/${version}/libmediainfo_${version}.tar.xz";
sha256 = "14m7cgd93mglc9a4x28pb4yc6nfxhqk7vfryca83vpn80la1lxy0";
sha256 = "1gvjvc809mrhpcqr62cihhc6jnwml197xjbgydnzvsghih8dq8s9";
};
nativeBuildInputs = [ autoreconfHook pkgconfig ];

View File

@@ -1,12 +1,12 @@
{ callPackage, fetchFromGitHub, ... } @ args:
callPackage ./generic.nix (args // rec {
version = "1.1.0";
version = "2.0.0";
src = fetchFromGitHub {
owner = "msgpack";
repo = "msgpack-c";
rev = "cpp-${version}";
sha256 = "1hnpnin6gjiilbzfd75871kamfn9grrf53qpbs061sflvz56fddq";
sha256 = "189m44pwpcpf7g4yhzfla4djqyp2kl54wxmwfaj94gwgj5s370i7";
};
})

View File

@@ -4,7 +4,7 @@ stdenv.mkDerivation {
name = "libtomcrypt-1.17";
src = fetchurl {
url = "http://libtom.org/files/crypt-1.17.tar.bz2";
url = "https://github.com/libtom/libtomcrypt/releases/download/1.17/crypt-1.17.tar.bz2";
sha256 = "e33b47d77a495091c8703175a25c8228aff043140b2554c08a3c3cd71f79d116";
};

View File

@@ -1,11 +1,11 @@
{stdenv, fetchurl, libtool}:
stdenv.mkDerivation {
name = "libtommath-0.39";
name = "libtommath-1.0";
src = fetchurl {
url = http://math.libtomcrypt.com/files/ltm-0.39.tar.bz2;
sha256 = "1kjx8rrw62nanzc5qp8fj6r3ybhw8ca60ahkyb70f10aiij49zs2";
url = https://github.com/libtom/libtommath/releases/download/v1.0/ltm-1.0.tar.xz;
sha256 = "0v5mpd8zqjfs2hr900w1mxifz23xylyjdqyx1i1wl7q9xvwpsflr";
};
buildInputs = [libtool];

View File

@@ -0,0 +1,25 @@
{ stdenv, fetchgit, cmake, pkgconfig, gtk3 }:
stdenv.mkDerivation rec {
version = "3.1.a";
name = "libui-${version}";
src = fetchgit {
url = "https://github.com/andlabs/libui.git";
rev = "6ebdc96b93273c3cedf81159e7843025caa83058";
sha256 = "1lpbfa298c61aarlzgp7vghrmxg1274pzxh1j9isv8x758gk6mfn";
};
buildInputs = [ cmake pkgconfig gtk3 ];
installPhase = ''
mkdir -p $out
mv ./out/libui.so.0 $out/libui.so.0
'';
meta = with stdenv.lib; {
description = "Simple and portable (but not inflexible) GUI library in C that uses the native GUI technologies of each platform it supports.";
homepage = https://github.com/andlabs/libui;
platforms = platforms.linux;
license = licenses.mit;
};
}

View File

@@ -1,15 +1,14 @@
{ lib, stdenv, fetchurl, pkgconfig
, abiVersion
, mouseSupport ? false
, unicode ? true
, gpm
}:
let
inherit (stdenv) isDarwin;
abiVersion = if isDarwin then "5" else "6";
version = if isDarwin then "5.9" else "6.0";
sha256 = if isDarwin
version = if abiVersion == "5" then "5.9" else "6.0";
sha256 = if abiVersion == "5"
then "0fsn7xis81za62afan0vvm38bvgzg5wfmv1m86flqcj0nj7jjilh"
else "0q3jck7lna77z5r42f13c4xglc7azd19pxfrjrpgp2yf615w4lgm";
in
@@ -21,7 +20,7 @@ stdenv.mkDerivation rec {
inherit sha256;
};
patches = [ ./clang.patch ];
patches = [ ./clang.patch ] ++ lib.optional (abiVersion == "5" && stdenv.cc.isGNU) ./gcc-5.patch;
outputs = [ "dev" "out" "man" ];
setOutputFlags = false; # some aren't supported

View File

@@ -0,0 +1,46 @@
https://bugs.gentoo.org/545114
extracted from the upstream change (which had many unrelated commits in one)
From 97bb4678dc03e753290b39bbff30ba2825df9517 Mon Sep 17 00:00:00 2001
From: "Thomas E. Dickey" <dickey@invisible-island.net>
Date: Sun, 7 Dec 2014 03:10:09 +0000
Subject: [PATCH] ncurses 5.9 - patch 20141206
+ modify MKlib_gen.sh to work around change in development version of
gcc introduced here:
https://gcc.gnu.org/ml/gcc-patches/2014-06/msg02185.html
https://gcc.gnu.org/ml/gcc-patches/2014-07/msg00236.html
(reports by Marcus Shawcroft, Maohui Lei).
diff --git a/ncurses/base/MKlib_gen.sh b/ncurses/base/MKlib_gen.sh
index d8cc3c9..b91398c 100755
--- a/ncurses/base/MKlib_gen.sh
+++ b/ncurses/base/MKlib_gen.sh
@@ -474,11 +474,22 @@ sed -n -f $ED1 \
-e 's/gen_$//' \
-e 's/ / /g' >>$TMP
+cat >$ED1 <<EOF
+s/ / /g
+s/^ //
+s/ $//
+s/P_NCURSES_BOOL/NCURSES_BOOL/g
+EOF
+
+# A patch discussed here:
+# https://gcc.gnu.org/ml/gcc-patches/2014-06/msg02185.html
+# introduces spurious #line markers. Work around that by ignoring the system's
+# attempt to define "bool" and using our own symbol here.
+sed -e 's/bool/P_NCURSES_BOOL/g' $TMP > $ED2
+cat $ED2 >$TMP
+
$preprocessor $TMP 2>/dev/null \
-| sed \
- -e 's/ / /g' \
- -e 's/^ //' \
- -e 's/_Bool/NCURSES_BOOL/g' \
+| sed -f $ED1 \
| $AWK -f $AW2 \
| sed -f $ED3 \
| sed \

View File

@@ -28,7 +28,9 @@ stdenv.mkDerivation {
buildFlags = [ "lib" "solib" ];
installTargets = "install";
installTargets = if stdenv.isDarwin
then ["install-staticlib" "install-shlib"]
else "install";
buildInputs = [ gfortran openblas ];
}

View File

@@ -25,7 +25,7 @@ stdenv.mkDerivation {
setupHook = ./setup-hook.sh;
src = fetchurl {
url = ftp://ftp.trolltech.com/qt/source/qt-x11-free-3.3.8.tar.bz2;
url = http://download.qt.io/archive/qt/3/qt-x11-free-3.3.8.tar.bz2;
sha256 = "0jd4g3bwkgk2s4flbmgisyihm7cam964gzb3pawjlkhas01zghz8";
};
@@ -41,14 +41,14 @@ stdenv.mkDerivation {
-I${xextproto}/include
${if openglSupport then "-dlopen-opengl
-L${mesa}/lib -I${mesa}/include
-L${libXmu}/lib -I${libXmu}/include" else ""}
-L${libXmu.out}/lib -I${libXmu.dev}/include" else ""}
${if threadSupport then "-thread" else "-no-thread"}
${if xrenderSupport then "-xrender -L${libXrender}/lib -I${libXrender}/include" else "-no-xrender"}
${if xrenderSupport then "-xrender -L${libXrender.out}/lib -I${libXrender.dev}/include" else "-no-xrender"}
${if xrandrSupport then "-xrandr
-L${libXrandr}/lib -I${libXrandr}/include
-L${libXrandr.out}/lib -I${libXrandr.dev}/include
-I${randrproto}/include" else "-no-xrandr"}
${if xineramaSupport then "-xinerama -L${libXinerama}/lib -I${libXinerama}/include" else "-no-xinerama"}
${if cursorSupport then "-L${libXcursor}/lib -I${libXcursor}/include" else ""}
${if xineramaSupport then "-xinerama -L${libXinerama.out}/lib -I${libXinerama.dev}/include" else "-no-xinerama"}
${if cursorSupport then "-L${libXcursor.out}/lib -I${libXcursor.dev}/include" else ""}
${if mysqlSupport then "-qt-sql-mysql -L${mysql.lib}/lib/mysql -I${mysql.lib}/include/mysql" else ""}
${if xftSupport then "-xft
-L${libXft.out}/lib -I${libXft.dev}/include

View File

@@ -2,11 +2,11 @@ wrapQtProgram() {
local prog="$1"
shift
wrapProgram "$prog" \
--prefix QT_PLUGIN_PATH : "$QT_PLUGIN_PATH" \
--prefix QML_IMPORT_PATH : "$QML_IMPORT_PATH" \
--prefix QML2_IMPORT_PATH : "$QML2_IMPORT_PATH" \
--prefix XDG_CONFIG_DIRS : "$NIX_WRAP_XDG_CONFIG_DIRS" \
--prefix XDG_DATA_DIRS : "$NIX_WRAP_XDG_DATA_DIRS" \
--set QT_PLUGIN_PATH "$QT_PLUGIN_PATH" \
--set QML_IMPORT_PATH "$QML_IMPORT_PATH" \
--set QML2_IMPORT_PATH "$QML2_IMPORT_PATH" \
--prefix XDG_DATA_DIRS : "$RUNTIME_XDG_DATA_DIRS" \
--prefix XDG_CONFIG_DIRS : "$RUNTIME_XDG_CONFIG_DIRS" \
"$@"
}
@@ -16,11 +16,11 @@ makeQtWrapper() {
shift
shift
makeWrapper "$old" "$new" \
--prefix QT_PLUGIN_PATH : "$QT_PLUGIN_PATH" \
--prefix QML_IMPORT_PATH : "$QML_IMPORT_PATH" \
--prefix QML2_IMPORT_PATH : "$QML2_IMPORT_PATH" \
--prefix XDG_CONFIG_DIRS : "$NIX_WRAP_XDG_CONFIG_DIRS" \
--prefix XDG_DATA_DIRS : "$NIX_WRAP_XDG_DATA_DIRS" \
--set QT_PLUGIN_PATH "$QT_PLUGIN_PATH" \
--set QML_IMPORT_PATH "$QML_IMPORT_PATH" \
--set QML2_IMPORT_PATH "$QML2_IMPORT_PATH" \
--prefix XDG_DATA_DIRS : "$RUNTIME_XDG_DATA_DIRS" \
--prefix XDG_CONFIG_DIRS : "$RUNTIME_XDG_CONFIG_DIRS" \
"$@"
}
@@ -29,10 +29,8 @@ _makeQtWrapperSetup() {
export QT_PLUGIN_PATH="$QT_PLUGIN_PATH${QT_PLUGIN_PATH:+:}${!outputLib}/lib/qt5/plugins"
export QML_IMPORT_PATH="$QML_IMPORT_PATH${QML_IMPORT_PATH:+:}${!outputLib}/lib/qt5/imports"
export QML2_IMPORT_PATH="$QML2_IMPORT_PATH${QML2_IMPORT_PATH:+:}${!outputLib}/lib/qt5/qml"
export XDG_CONFIG_DIRS="$XDG_CONFIG_DIRS${XDG_CONFIG_DIRS:+:}${!outputLib}/etc/xdg"
export XDG_DATA_DIRS="$XDG_DATA_DIRS${XDG_DATA_DIRS:+:}${!outputLib}/share"
export NIX_WRAP_XDG_CONFIG_DIRS="$NIX_WRAP_XDG_CONFIG_DIRS${NIX_WRAP_XDG_CONFIG_DIRS:+:}${!outputLib}/etc/xdg"
export NIX_WRAP_XDG_DATA_DIRS="$NIX_WRAP_XDG_DATA_DIRS${NIX_WRAP_XDG_DATA_DIRS:+:}${!outputLib}/share"
export RUNTIME_XDG_DATA_DIRS="$XDG_DATA_DIRS${XDG_DATA_DIRS:+:}${!outputBin}/share"
export RUNTIME_XDG_CONFIG_DIRS="$XDG_CONFIG_DIRS${XDG_CONFIG_DIRS:+:}${!outputBin}/etc/xdg"
}
prePhases+=(_makeQtWrapperSetup)

View File

@@ -1,50 +1,16 @@
if [[ -z "$QMAKE" ]]; then
qmakeConfigurePhase() {
runHook preConfigure
_qtLinkDependencyDir() {
@lndir@/bin/lndir -silent "$1/$2" "$qtOut/$2"
if [ -n "$NIX_QT_SUBMODULE" ]; then
find "$1/$2" -printf "$2/%P\n" >> "$out/nix-support/qt-inputs"
fi
qmake PREFIX=$out $qmakeFlags
runHook postConfigure
}
_qtLinkModule() {
if [ -d "$1/mkspecs" ]; then
# $1 is a Qt module
_qtLinkDependencyDir "$1" mkspecs
if [ -z "$dontUseQmakeConfigure" -a -z "$configurePhase" ]; then
configurePhase=qmakeConfigurePhase
fi
for dir in bin include lib share; do
if [ -d "$1/$dir" ]; then
_qtLinkDependencyDir "$1" "$dir"
fi
done
fi
}
_qtRmModules() {
cat "$out/nix-support/qt-inputs" | while read file; do
if [ -h "$out/$file" ]; then
rm "$out/$file"
fi
done
cat "$out/nix-support/qt-inputs" | while read file; do
if [ -d "$out/$file" ]; then
rmdir --ignore-fail-on-non-empty -p "$out/$file"
fi
done
rm "$out/nix-support/qt-inputs"
}
_qtRmQmake() {
rm "$qtOut/bin/qmake" "$qtOut/bin/qt.conf"
}
_qtSetQmakePath() {
export PATH="$qtOut/bin${PATH:+:}$PATH"
}
_qtMultioutModuleDevs() {
_qtModuleMultioutDevsPre() {
# We cannot simply set these paths in configureFlags because libQtCore retains
# references to the paths it was built with.
moveToOutput "bin" "${!outputDev}"
@@ -53,12 +19,14 @@ _qtMultioutModuleDevs() {
# The destination directory must exist or moveToOutput will do nothing
mkdir -p "${!outputDev}/share"
moveToOutput "share/doc" "${!outputDev}"
}
_qtModuleMultioutDevsPost() {
# Move libtool archives and qmake project files to $dev/lib
if [ "z${!outputLib}" != "z${!outputDev}" ]; then
pushd "${!outputLib}"
if [ -d "lib" ]; then
find lib \( -name '*.a' -o -name '*.la' -o -name '*.prl' -print0 \) | \
find lib \( -name '*.a' -o -name '*.la' -o -name '*.prl' \) -print0 | \
while read -r -d $'\0' file; do
mkdir -p "${!outputDev}/$(dirname "$file")"
mv "${!outputLib}/$file" "${!outputDev}/$file"
@@ -68,53 +36,7 @@ _qtMultioutModuleDevs() {
fi
}
_qtRmQtOut() {
rm -fr "$qtOut"
}
qmakeConfigurePhase() {
runHook preConfigure
qmake PREFIX=$out $qmakeFlags
runHook postConfigure
}
qtOut=""
if [[ -z "$NIX_QT_SUBMODULE" ]]; then
qtOut=`mktemp -d`
else
qtOut=$out
fi
mkdir -p "$qtOut/bin" "$qtOut/mkspecs" "$qtOut/include" "$qtOut/nix-support" "$qtOut/lib" "$qtOut/share"
cp "@qt_dev@/bin/qmake" "$qtOut/bin"
cat >"$qtOut/bin/qt.conf" <<EOF
[Paths]
Prefix = $qtOut
Plugins = lib/qt5/plugins
Imports = lib/qt5/imports
Qml2Imports = lib/qt5/qml
Documentation = share/doc/qt5
EOF
export QMAKE="$qtOut/bin/qmake"
envHooks+=(_qtLinkModule)
# Set PATH to find qmake first in a preConfigure hook
# It must run after all the envHooks!
postHooks+=(_qtSetQmakePath)
if [ -z "$dontUseQmakeConfigure" -a -z "$configurePhase" ]; then
configurePhase=qmakeConfigurePhase
fi
if [ -n "$NIX_QT_SUBMODULE" ]; then
postInstallHooks+=(_qtRmQmake _qtRmModules)
preFixupHooks+=(_qtMultioutModuleDevs)
else
postInstallHooks+=(_qtRmQtOut)
fi
preFixupHooks+=(_qtModuleMultioutDevsPre)
postFixupHooks+=(_qtModuleMultioutDevsPost)
fi

View File

@@ -276,6 +276,7 @@ stdenv.mkDerivation {
fixQtModuleCMakeConfig "Xml"
'';
inherit lndir;
setupHook = ./setup-hook.sh;
enableParallelBuilding = true;

View File

@@ -24,11 +24,10 @@ propagateOnce() {
addToSearchPathOnceWithCustomDelimiter ' ' "$@"
}
_qtPropagateRuntimeDependencies() {
_qtPropagate() {
for dir in "lib/qt5/plugins" "lib/qt5/qml" "lib/qt5/imports"; do
if [ -d "$1/$dir" ]; then
propagateOnce propagatedBuildInputs "$1"
propagateOnce propagatedUserEnvPkgs "$1"
break
fi
done
@@ -37,7 +36,23 @@ _qtPropagateRuntimeDependencies() {
addToSearchPathOnce QML2_IMPORT_PATH "$1/lib/qt5/qml"
}
envHooks+=(_qtPropagateRuntimeDependencies)
crossEnvHooks+=(_qtPropagate)
_qtPropagateNative() {
for dir in "lib/qt5/plugins" "lib/qt5/qml" "lib/qt5/imports"; do
if [ -d "$1/$dir" ]; then
propagateOnce propagatedNativeBuildInputs "$1"
break
fi
done
if [ -z "$crossConfig" ]; then
addToSearchPathOnce QT_PLUGIN_PATH "$1/lib/qt5/plugins"
addToSearchPathOnce QML_IMPORT_PATH "$1/lib/qt5/imports"
addToSearchPathOnce QML2_IMPORT_PATH "$1/lib/qt5/qml"
fi
}
envHooks+=(_qtPropagateNative)
_qtMultioutDevs() {
# This is necessary whether the package is a Qt module or not
@@ -50,3 +65,107 @@ if [[ -z "$NIX_QT_PIC" ]]; then
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE${NIX_CFLAGS_COMPILE:+ }-fPIC"
export NIX_QT_PIC=1
fi
_qtSetCMakePrefix() {
export CMAKE_PREFIX_PATH="$NIX_QT5_TMP${CMAKE_PREFIX_PATH:+:}${CMAKE_PREFIX_PATH}"
}
_qtRmTmp() {
if [ -z "$NIX_QT_SUBMODULE" ]; then
rm -fr "$NIX_QT5_TMP"
else
cat "$NIX_QT5_TMP/nix-support/qt-inputs" | while read file; do
if [ ! -d "$NIX_QT5_TMP/$file" ]; then
rm -f "$NIX_QT5_TMP/$file"
fi
done
cat "$NIX_QT5_TMP/nix-support/qt-inputs" | while read dir; do
if [ -d "$NIX_QT5_TMP/$dir" ]; then
rmdir --ignore-fail-on-non-empty -p "$NIX_QT5_TMP/$dir"
fi
done
rm "$NIX_QT5_TMP/nix-support/qt-inputs"
fi
}
_qtSetQmakePath() {
export PATH="$NIX_QT5_TMP/bin${PATH:+:}$PATH"
}
if [ -z "$NIX_QT5_TMP" ]; then
if [ -z "$NIX_QT_SUBMODULE" ]; then
NIX_QT5_TMP=$(mktemp -d)
else
NIX_QT5_TMP=$out
fi
postInstallHooks+=(_qtRmTmp)
mkdir -p "$NIX_QT5_TMP/nix-support"
for subdir in bin include lib mkspecs share; do
mkdir "$NIX_QT5_TMP/$subdir"
echo "$subdir/" >> "$NIX_QT5_TMP/nix-support/qt-inputs"
done
postHooks+=(_qtSetCMakePrefix)
cp "@dev@/bin/qmake" "$NIX_QT5_TMP/bin"
echo "bin/qmake" >> "$NIX_QT5_TMP/nix-support/qt-inputs"
cat >"$NIX_QT5_TMP/bin/qt.conf" <<EOF
[Paths]
Prefix = $NIX_QT5_TMP
Plugins = lib/qt5/plugins
Imports = lib/qt5/imports
Qml2Imports = lib/qt5/qml
Documentation = share/doc/qt5
EOF
echo "bin/qt.conf" >> "$NIX_QT5_TMP/nix-support/qt-inputs"
export QMAKE="$NIX_QT5_TMP/bin/qmake"
# Set PATH to find qmake first in a preConfigure hook
# It must run after all the envHooks!
preConfigureHooks+=(_qtSetQmakePath)
fi
qt5LinkModuleDir() {
if [ -d "$1/$2" ]; then
@lndir@/bin/lndir -silent "$1/$2" "$NIX_QT5_TMP/$2"
find "$1/$2" -printf "$2/%P\n" >> "$NIX_QT5_TMP/nix-support/qt-inputs"
fi
}
NIX_QT5_MODULES="${NIX_QT5_MODULES}${NIX_QT5_MODULES:+:}@out@"
NIX_QT5_MODULES_DEV="${NIX_QT5_MODULES_DEV}${NIX_QT5_MODULES_DEV:+:}@dev@"
_qtLinkAllModules() {
IFS=: read -a modules <<< $NIX_QT5_MODULES
for module in ${modules[@]}; do
qt5LinkModuleDir "$module" "lib"
done
IFS=: read -a modules <<< $NIX_QT5_MODULES_DEV
for module in ${modules[@]}; do
qt5LinkModuleDir "$module" "bin"
qt5LinkModuleDir "$module" "include"
qt5LinkModuleDir "$module" "lib"
qt5LinkModuleDir "$module" "mkspecs"
qt5LinkModuleDir "$module" "share"
done
}
preConfigureHooks+=(_qtLinkAllModules)
_qtFixCMakePaths() {
find "${!outputLib}" -name "*.cmake" | while read file; do
substituteInPlace "$file" \
--subst-var-by NIX_OUT "${!outputLib}" \
--subst-var-by NIX_DEV "${!outputDev}"
done
}
if [ -n "$NIX_QT_SUBMODULE" ]; then
postInstallHooks+=(_qtFixCMakePaths)
fi

View File

@@ -4,7 +4,6 @@ qtSubmodule {
name = "qtlocation";
qtInputs = [ qtbase qtmultimedia ];
postFixup = ''
fixQtModuleCMakeConfig "Location"
fixQtModuleCMakeConfig "Positioning"
'';
}

View File

@@ -2,11 +2,11 @@ wrapQtProgram() {
local prog="$1"
shift
wrapProgram "$prog" \
--prefix QT_PLUGIN_PATH : "$QT_PLUGIN_PATH" \
--prefix QML_IMPORT_PATH : "$QML_IMPORT_PATH" \
--prefix QML2_IMPORT_PATH : "$QML2_IMPORT_PATH" \
--prefix XDG_CONFIG_DIRS : "$NIX_WRAP_XDG_CONFIG_DIRS" \
--prefix XDG_DATA_DIRS : "$NIX_WRAP_XDG_DATA_DIRS" \
--set QT_PLUGIN_PATH "$QT_PLUGIN_PATH" \
--set QML_IMPORT_PATH "$QML_IMPORT_PATH" \
--set QML2_IMPORT_PATH "$QML2_IMPORT_PATH" \
--prefix XDG_DATA_DIRS : "$RUNTIME_XDG_DATA_DIRS" \
--prefix XDG_CONFIG_DIRS : "$RUNTIME_XDG_CONFIG_DIRS" \
"$@"
}
@@ -16,11 +16,11 @@ makeQtWrapper() {
shift
shift
makeWrapper "$old" "$new" \
--prefix QT_PLUGIN_PATH : "$QT_PLUGIN_PATH" \
--prefix QML_IMPORT_PATH : "$QML_IMPORT_PATH" \
--prefix QML2_IMPORT_PATH : "$QML2_IMPORT_PATH" \
--prefix XDG_CONFIG_DIRS : "$NIX_WRAP_XDG_CONFIG_DIRS" \
--prefix XDG_DATA_DIRS : "$NIX_WRAP_XDG_DATA_DIRS" \
--set QT_PLUGIN_PATH "$QT_PLUGIN_PATH" \
--set QML_IMPORT_PATH "$QML_IMPORT_PATH" \
--set QML2_IMPORT_PATH "$QML2_IMPORT_PATH" \
--prefix XDG_DATA_DIRS : "$RUNTIME_XDG_DATA_DIRS" \
--prefix XDG_CONFIG_DIRS : "$RUNTIME_XDG_CONFIG_DIRS" \
"$@"
}
@@ -29,10 +29,8 @@ _makeQtWrapperSetup() {
export QT_PLUGIN_PATH="$QT_PLUGIN_PATH${QT_PLUGIN_PATH:+:}${!outputLib}/lib/qt5/plugins"
export QML_IMPORT_PATH="$QML_IMPORT_PATH${QML_IMPORT_PATH:+:}${!outputLib}/lib/qt5/imports"
export QML2_IMPORT_PATH="$QML2_IMPORT_PATH${QML2_IMPORT_PATH:+:}${!outputLib}/lib/qt5/qml"
export XDG_CONFIG_DIRS="$XDG_CONFIG_DIRS${XDG_CONFIG_DIRS:+:}${!outputLib}/etc/xdg"
export XDG_DATA_DIRS="$XDG_DATA_DIRS${XDG_DATA_DIRS:+:}${!outputLib}/share"
export NIX_WRAP_XDG_CONFIG_DIRS="$NIX_WRAP_XDG_CONFIG_DIRS${NIX_WRAP_XDG_CONFIG_DIRS:+:}${!outputLib}/etc/xdg"
export NIX_WRAP_XDG_DATA_DIRS="$NIX_WRAP_XDG_DATA_DIRS${NIX_WRAP_XDG_DATA_DIRS:+:}${!outputLib}/share"
export RUNTIME_XDG_DATA_DIRS="$XDG_DATA_DIRS${XDG_DATA_DIRS:+:}${!outputBin}/share"
export RUNTIME_XDG_CONFIG_DIRS="$XDG_CONFIG_DIRS${XDG_CONFIG_DIRS:+:}${!outputBin}/etc/xdg"
}
prePhases+=(_makeQtWrapperSetup)

View File

@@ -28,7 +28,6 @@ _qtPropagate() {
for dir in "lib/qt5/plugins" "lib/qt5/qml" "lib/qt5/imports"; do
if [ -d "$1/$dir" ]; then
propagateOnce propagatedBuildInputs "$1"
propagateOnce propagatedUserEnvPkgs "$1"
break
fi
done
@@ -43,9 +42,6 @@ _qtPropagateNative() {
for dir in "lib/qt5/plugins" "lib/qt5/qml" "lib/qt5/imports"; do
if [ -d "$1/$dir" ]; then
propagateOnce propagatedNativeBuildInputs "$1"
if [ -z "$crossConfig" ]; then
propagateOnce propagatedUserEnvPkgs "$1"
fi
break
fi
done

View File

@@ -17,9 +17,11 @@ stdenv.mkDerivation {
"--with-tcl=${tcl}/lib"
];
buildInputs = [ pkgconfig tcl libXft ]
buildInputs = [ pkgconfig ]
++ stdenv.lib.optional stdenv.isDarwin fontconfig;
propagatedBuildInputs = [ tcl libXft ];
NIX_CFLAGS_LINK = if stdenv.isDarwin then "-lfontconfig" else null;
inherit tcl;

View File

@@ -0,0 +1,26 @@
{stdenv, fetchFromGitHub, cmake}:
with stdenv.lib;
stdenv.mkDerivation rec {
name = "unittest-cpp-${version}";
version = "1.6.1";
src = fetchFromGitHub {
owner = "unittest-cpp";
repo = "unittest-cpp";
rev = "v${version}";
sha256 = "1sva2bm90z4vmwwvp0af82f7p4sdq5j2jjqzhs2ppihdkggn62d1";
};
buildInputs = [cmake];
doCheck = false;
meta = {
homepage = "https://github.com/unittest-cpp/unittest-cpp";
description = "Lightweight unit testing framework for C++";
license = licenses.mit;
maintainers = [maintainers.tohl];
};
}

View File

@@ -15,7 +15,7 @@ assert stdenv.isDarwin -> !enableCredentialStorage;
with stdenv.lib;
stdenv.mkDerivation rec {
name = "webkitgtk-${version}";
version = "2.4.9";
version = "2.4.11";
meta = with stdenv.lib; {
description = "Web content rendering engine, GTK+ port";
@@ -27,7 +27,7 @@ stdenv.mkDerivation rec {
src = fetchurl {
url = "http://webkitgtk.org/releases/${name}.tar.xz";
sha256 = "0r651ar3p0f8zwl7764kyimxk5hy88cwy116pv8cl5l8hbkjkpxg";
sha256 = "1xsvnvyvlywwyf6m9ainpsg87jkxjmd37q6zgz9cxb7v3c2ym2jq";
};
CC = "cc";
@@ -46,6 +46,7 @@ stdenv.mkDerivation rec {
configureFlags = with stdenv.lib; [
"--disable-geolocation"
"--disable-jit"
(optionalString enableIntrospection "--enable-introspection")
] ++ optional withGtk2 [
"--with-gtk=2.0"

View File

@@ -1137,18 +1137,7 @@ let
"choroplethr" # depends on broken package acs
"acs" # broken build
"spray" # depends on broken package partitions
"simmr" # depends on broken package rjags
"morse" # depends on broken package rjags
"gemtc" # depends on broken package rjags
"EasyMARK" # depends on broken package rjags
"PVAClone" # depends on broken package rjags
"sharx" # depends on broken package rjags
"dcmle" # depends on broken package rjags
"dclone" # depends on broken package rjags
"CNVrd2" # depends on broken package rjags
"bayescount" # depends on broken package rjags
"BANOVA" # depends on broken package rjags
"rjags" # broken build
"CNVrd2" # broken build
"proteoQC" # depends on broken package rTANDEM
"PGA" # depends on broken package rTANDEM
"MBESS" # depends on broken package OpenMx
@@ -1211,13 +1200,11 @@ let
"ARTool" # depends on broken package nlopt
"AssetPricing" # broken build
"AtelieR" # broken build
"auRoc" # depends on broken package rjags
"auRoc" # depends on broken package MBESS
"AutoModel" # depends on broken package car
"bamdit" # broken build
"BANOVA" # broken build
"bapred" # depends on broken package lme4
"bartMachine" # depends on broken package nlopt
"bayescount" # broken build
"bayesDem" # depends on broken package nlopt
"bayesLife" # depends on broken package nlopt
"BayesMed" # broken build
@@ -1283,7 +1270,6 @@ let
"covmat" # depends on broken package VIM
"cplexAPI" # build is broken
"cquad" # depends on broken package car
"crmPack" # depends on broken package rjags
"CrypticIBDcheck" # depends on broken package nlopt
"ctsem" # depends on broken package OpenMx
"cudaBayesreg" # build is broken
@@ -1293,7 +1279,7 @@ let
"datafsm" # depends on broken package caret
"dbConnect" # broken build
"DBKGrad" # depends on broken package rpanel
"dcmle" # broken build
#"dcmle" # broken build
"ddst" # broken build
"Deducer" # depends on broken package nlopt
"DeducerExtras" # depends on broken package nlopt
@@ -1318,7 +1304,6 @@ let
"drsmooth" # depends on broken package nlopt
"dynlm" # depends on broken package nlopt
"easyanova" # depends on broken package nlopt
"EasyMARK" # broken build
"ecd" # depends on broken package polynom
"edge" # depends on broken package nlopt
"eeptools" # depends on broken package nlopt
@@ -1370,7 +1355,6 @@ let
"gcmr" # depends on broken package nlopt
"GDAtools" # depends on broken package nlopt
"gdtools" # broken build
"gemtc" # broken build
"GENE_E" # depends on broken package rhdf5
"GENESIS" # broken build
"genridge" # depends on broken package nlopt
@@ -1499,7 +1483,6 @@ let
"mlVAR" # depends on broken package nlopt
"MM" # broken build
"mongolite" # build is broken
"morse" # broken build
"mosaic" # depends on broken package nlopt
"mpoly" # broken build
"mRMRe" # broken build
@@ -1577,7 +1560,6 @@ let
"PSAboot" # depends on broken package nlopt
"ptw" # depends on broken nloptr
"PurBayes" # broken build
"PVAClone" # broken build
"pvca" # depends on broken package nlopt
"PythonInR" # broken build
"QFRM" # broken build
@@ -1664,7 +1646,6 @@ let
"Rgnuplot" # broken build
"rhdf5" # build is broken
"rjade" # depends on broken package V8
"rjags" # broken build
"rJPSGCS" # build is broken
"rLindo" # build is broken
"RLRsim" # depends on broken package lme4
@@ -1724,10 +1705,8 @@ let
"seqHMM" # depends on broken package nloptr
"seqTools" # build is broken
"SharpeR" # broken build
"sharx" # broken build
"shinyTANDEM" # depends on broken package rTANDEM
"SIBER" # broken build
"simmr" # broken build
"simPop" # depends on broken package VIM
"simr" # depends on broken package lme4
"SJava" # broken build

View File

@@ -1,15 +1,13 @@
{ stdenv, fetchurl, libxslt, docbook_xsl, docbook_xml_dtd_45 }:
let
pname = "cppcheck";
in
stdenv.mkDerivation rec {
pname = "cppcheck";
version = "1.74";
name = "${pname}-${version}";
version = "1.73";
src = fetchurl {
url = "mirror://sourceforge/${pname}/${name}.tar.bz2";
sha256 = "0l7yslf311h3kidi91q4zhqj3f3vsjp1gb2z50y20423fda87xin";
sha256 = "0m62byiprabm1m3mc4r2w54p7qyhgi8msipnpm66ychr8rz2yny0";
};
nativeBuildInputs = [ libxslt docbook_xsl docbook_xml_dtd_45 ];
@@ -27,8 +25,8 @@ stdenv.mkDerivation rec {
meta = with stdenv.lib; {
description = "A static analysis tool for C/C++ code";
longDescription = ''
Check C/C++ code for memory leaks, mismatching
allocation-deallocation, buffer overruns and more.
Check C/C++ code for memory leaks, mismatching allocation-deallocation,
buffer overruns and more.
'';
homepage = http://cppcheck.sourceforge.net/;
license = licenses.gpl3Plus;

View File

@@ -2,16 +2,16 @@
stdenv.mkDerivation rec {
name = "jenkins-${version}";
version = "2.3";
version = "2.13";
src = fetchurl {
url = "http://mirrors.jenkins-ci.org/war/${version}/jenkins.war";
sha256 = "0x59dbvh6y25ki5jy51djbfbhf8g2j3yd9f3n66f7bkdfw8p78g1";
sha256 = "0rb3spml2c7cd34zjjc5mwsdcnwmcbcdc784nl8cczayiwz8nq3p";
};
buildCommand = ''
mkdir -p "$out/lib"
cp "$src" "$out/lib/jenkins.war"
mkdir -p "$out/webapps"
cp "$src" "$out/webapps/jenkins.war"
'';
meta = with stdenv.lib; {
@@ -19,6 +19,6 @@ stdenv.mkDerivation rec {
homepage = http://jenkins-ci.org;
license = licenses.mit;
platforms = platforms.all;
maintainers = [ maintainers.coconnor ];
maintainers = with maintainers; [ coconnor fpletz ];
};
}

View File

@@ -0,0 +1,23 @@
{ stdenv, buildGoPackage, fetchFromGitHub }:
buildGoPackage rec {
name = "doctl-${version}";
version = "1.3.1";
rev = "a57555c195d06bc7aa5037af77fde0665ad1231f";
goPackagePath = "github.com/digitalocean/doctl";
src = fetchFromGitHub {
owner = "digitalocean";
repo = "doctl";
rev = "${rev}";
sha256 = "03z652fw0a628gv666w8vpi05a4sdilvs1j5scjhcbi82zsbkvma";
};
meta = {
description = "A command line tool for DigitalOcean services";
homepage = "https://github.com/digitalocean/doctl";
license = stdenv.lib.licenses.asl20;
platforms = stdenv.lib.platforms.all;
maintainers = [ stdenv.lib.maintainers.siddharthist ];
};
}

View File

@@ -2,14 +2,14 @@
python35Packages.buildPythonApplication rec {
name = "mypy-lang-${version}";
version = "0.4.2";
version = "0.4.3";
# Tests not included in pip package.
doCheck = false;
src = fetchurl {
url = "mirror://pypi/m/mypy-lang/${name}.tar.gz";
sha256 = "12vwgzbpv0n403dvzas5ckw0f62slqk5j3024y65hi9n95r34rws";
sha256 = "11d8195xg8hksyh2qapbv66jvjgfpjwkc61nwljcfq9si144f2nb";
};
propagatedBuildInputs = with python35Packages; [ lxml ];

View File

@@ -1,13 +1,13 @@
{ stdenv, fetchurl, unzip, jre }:
stdenv.mkDerivation rec {
version = "0.2.5";
version = "0.2.11";
baseName = "scalafmt";
name = "${baseName}-${version}";
src = fetchurl {
url = "https://github.com/olafurpg/scalafmt/releases/download/v${version}/${baseName}.tar.gz";
sha256 = "07l95xdwgdbdfa91pg1sds82aw3c60gxzdcvdhhhk6a7zwrl73cp";
sha256 = "044n00mhrdxij1kc8wplvni7pf8lnninxrsm9v41gicbk73cm2q8";
};
unpackPhase = "tar xvzf $src";

View File

@@ -4,7 +4,7 @@
assert stdenv.system == "x86_64-linux" || stdenv.system == "i686-linux";
let
version = "1.8.1";
version = "1.8.4";
rake = buildRubyGem {
inherit ruby;
gemName = "rake";
@@ -20,12 +20,12 @@ stdenv.mkDerivation rec {
if stdenv.system == "x86_64-linux" then
fetchurl {
url = "https://releases.hashicorp.com/vagrant/${version}/vagrant_${version}_x86_64.deb";
sha256 = "0gb999ql4kfxd9473cx3xn6a11094dm4iyrx1dzd9v2sygh1l3pd";
sha256 = "fd38d8e00e494a617201facb42fc2cac627e5021db15e91c2a041eac6a2d8208";
}
else
fetchurl {
url = "https://releases.hashicorp.com/vagrant/${version}/vagrant_${version}_i686.deb";
sha256 = "1nzg6i9i270xgaih381q096lb23rwxkif4ba9j62y3zjmj6az4xf";
sha256 = "555351717cacaa8660821df8988cc40a39923b06b698fca6bb90621008aab06f";
};
meta = with stdenv.lib; {
@@ -97,12 +97,12 @@ stdenv.mkDerivation rec {
preFixup = ''
# 'hide' the template file from shebang-patching
chmod -x $out/opt/vagrant/embedded/gems/gems/bundler-1.10.6/lib/bundler/templates/Executable
chmod -x $out/opt/vagrant/embedded/gems/gems/bundler-1.12.5/lib/bundler/templates/Executable
chmod -x $out/opt/vagrant/embedded/gems/gems/vagrant-${version}/plugins/provisioners/salt/bootstrap-salt.sh
'';
postFixup = ''
chmod +x $out/opt/vagrant/embedded/gems/gems/bundler-1.10.6/lib/bundler/templates/Executable
chmod +x $out/opt/vagrant/embedded/gems/gems/bundler-1.12.5/lib/bundler/templates/Executable
chmod +x $out/opt/vagrant/embedded/gems/gems/vagrant-${version}/plugins/provisioners/salt/bootstrap-salt.sh
'';
}

View File

@@ -52,7 +52,7 @@ in stdenv.mkDerivation {
description = "Event-driven I/O framework for the V8 JavaScript engine";
homepage = http://nodejs.org;
license = licenses.mit;
maintainers = [ maintainers.goibhniu maintainers.havvy maintainers.gilligan ];
maintainers = [ maintainers.goibhniu maintainers.havvy maintainers.gilligan maintainers.cko ];
platforms = platforms.linux ++ platforms.darwin;
};
}

View File

@@ -4,9 +4,9 @@
}@args:
import ./nodejs.nix (args // rec {
version = "5.11.1";
version = "5.12.0";
src = fetchurl {
url = "http://nodejs.org/dist/v${version}/node-v${version}.tar.xz";
sha256 = "07v60mhswj77m7516zakj3p1py7ixa5jbgj0m7zlr9vygrrc66zi";
sha256 = "4f926373f11f2a25156eee1804ec012eb912c42e5d34fc2909889da22efdadfe";
};
})