diff options
author | Vladimír Čunát <vcunat@gmail.com> | 2017-05-24 03:20:17 +0200 |
---|---|---|
committer | Vladimír Čunát <vcunat@gmail.com> | 2017-05-24 03:24:06 +0200 |
commit | 8004e794153b34507f81a26f88174bdfee975aa8 (patch) | |
tree | 874e59b6b33bc0fdce26a6dc4a116b8b36b43205 /pkgs/applications | |
parent | 1267b155c4a5afc6bda0a27b458c649a420dce2b (diff) | |
parent | 39e042fd64f41aa8610f35dcf4c4e9447ed59b3a (diff) | |
download | nixlib-8004e794153b34507f81a26f88174bdfee975aa8.tar nixlib-8004e794153b34507f81a26f88174bdfee975aa8.tar.gz nixlib-8004e794153b34507f81a26f88174bdfee975aa8.tar.bz2 nixlib-8004e794153b34507f81a26f88174bdfee975aa8.tar.lz nixlib-8004e794153b34507f81a26f88174bdfee975aa8.tar.xz nixlib-8004e794153b34507f81a26f88174bdfee975aa8.tar.zst nixlib-8004e794153b34507f81a26f88174bdfee975aa8.zip |
Merge branch 'master' into staging
Diffstat (limited to 'pkgs/applications')
20 files changed, 215 insertions, 704 deletions
diff --git a/pkgs/applications/audio/aeolus/default.nix b/pkgs/applications/audio/aeolus/default.nix index 9fe781f17697..7ac1025c5027 100644 --- a/pkgs/applications/audio/aeolus/default.nix +++ b/pkgs/applications/audio/aeolus/default.nix @@ -1,16 +1,20 @@ { stdenv, fetchurl, libclthreads, zita-alsa-pcmi, alsaLib, libjack2 -, libclxclient, libX11, libXft, readline}: +, libclxclient, libX11, libXft, readline +}: stdenv.mkDerivation rec { name = "aeolus-${version}"; - version = "0.9.0"; + version = "0.9.5"; + src = fetchurl { url = "http://kokkinizita.linuxaudio.org/linuxaudio/downloads/${name}.tar.bz2"; - sha256 = "0dkkibza25a6z9446njqlaynx8gfk5wb828pl9v1snmi5390iggp"; + sha256 = "0wfp8ihldyq2dhdyy7ld7z0zzfvnwam1dvbxnpd9d6xgc4k3j4nv"; }; - buildInputs = [ libclthreads zita-alsa-pcmi alsaLib libjack2 libclxclient - libX11 libXft readline ]; + buildInputs = [ + libclthreads zita-alsa-pcmi alsaLib libjack2 libclxclient + libX11 libXft readline + ]; patchPhase = ''sed "s@ldconfig.*@@" -i source/Makefile''; diff --git a/pkgs/applications/audio/aj-snapshot/default.nix b/pkgs/applications/audio/aj-snapshot/default.nix index c70a1b4aa9bc..06e143704224 100644 --- a/pkgs/applications/audio/aj-snapshot/default.nix +++ b/pkgs/applications/audio/aj-snapshot/default.nix @@ -3,11 +3,11 @@ stdenv.mkDerivation rec { name = packageName + "-" + version ; packageName = "aj-snapshot" ; - version = "0.9.6" ; + version = "0.9.7"; src = fetchurl { url = "mirror://sourceforge/${packageName}/${name}.tar.bz2"; - sha256 = "12n2h3609fbvsnnwrwma4m55iyv6lcv1v3q5pznz2w6f12wf0c9z"; + sha256 = "0yxccgp9qw2cyqv719wlbq8wfsr5ga8czvwa7bmb8dh5s11n3rn8"; }; doCheck = false; diff --git a/pkgs/applications/audio/spotify/default.nix b/pkgs/applications/audio/spotify/default.nix index 765f0e9e5a79..e5dbf0aab84d 100644 --- a/pkgs/applications/audio/spotify/default.nix +++ b/pkgs/applications/audio/spotify/default.nix @@ -8,7 +8,7 @@ let # Please update the stable branch! # Latest version number can be found at: # http://repository-origin.spotify.com/pool/non-free/s/spotify-client/ - version = "1.0.53.758.gde3fc4b2-33"; + version = "1.0.55.487.g256699aa-16"; deps = [ alsaLib @@ -53,7 +53,7 @@ stdenv.mkDerivation { src = fetchurl { url = "https://repository-origin.spotify.com/pool/non-free/s/spotify-client/spotify-client_${version}_amd64.deb"; - sha256 = "1sh6bv23yx0fcbmf60c2yyi6411ij85k4jalpjlck2w26nfj1b3g"; + sha256 = "09rhm0jp5prcvyf8zpw4pl422yiy8nkazcjc3lv61ngpznk3n1r0"; }; buildInputs = [ dpkg makeWrapper ]; diff --git a/pkgs/applications/misc/hugo/default.nix b/pkgs/applications/misc/hugo/default.nix index 11be3d733c41..ab844e8b5b83 100644 --- a/pkgs/applications/misc/hugo/default.nix +++ b/pkgs/applications/misc/hugo/default.nix @@ -2,7 +2,7 @@ buildGoPackage rec { name = "hugo-${version}"; - version = "0.20.6"; + version = "0.21"; goPackagePath = "github.com/spf13/hugo"; @@ -10,7 +10,7 @@ buildGoPackage rec { owner = "spf13"; repo = "hugo"; rev = "v${version}"; - sha256 = "1r8sjx7rbrjk2a3x3x6cd987xykm2j06jbnwxxsn4rs6yym0yjl8"; + sha256 = "1lv815dwj02gwp5jhs03yrcfilhg5afx476bv7hb9ipx4q3a8lqm"; }; goDeps = ./deps.nix; diff --git a/pkgs/applications/misc/hugo/deps.nix b/pkgs/applications/misc/hugo/deps.nix index e2e2d093dded..4b33a1ec0de0 100644 --- a/pkgs/applications/misc/hugo/deps.nix +++ b/pkgs/applications/misc/hugo/deps.nix @@ -4,8 +4,8 @@ fetch = { type = "git"; url = "https://github.com/BurntSushi/toml"; - rev = "99064174e013895bbd9b025c31100bd1d9b590ca"; - sha256 = "058qrar8rvw3wb0ci1mf1axnqq2729cvv9zmdr4ms2nn9s97yiz9"; + rev = "b26d9c308763d68093482582cea63d69be07a0f0"; + sha256 = "0k7v2i1d2d6si8gswn83qb84czhhia53v2wdy33yz9ppdidxk0ry"; }; } { @@ -13,8 +13,8 @@ fetch = { type = "git"; url = "https://github.com/PuerkitoBio/purell"; - rev = "0bcb03f4b4d0a9428594752bd2a3b9aa0a9d4bd4"; - sha256 = "0vsxyn1fbm7g873b8kf3hcsgqgncb5nmfq3zfsc35a9yhzarka91"; + rev = "b938d81255b5473c57635324295cb0fe398c7a58"; + sha256 = "0d44lrg04g9nibhdlagwq9n8g5ka1784pm0jzyl6cfpq8nc1ppj8"; }; } { @@ -22,8 +22,8 @@ fetch = { type = "git"; url = "https://github.com/PuerkitoBio/urlesc"; - rev = "5bd2802263f21d8788851d5305584c82a5c75d7e"; - sha256 = "15y5r3asvm7196m3nza5xvdvlc2k11p6lfs6hi917hl7r9vgi6mp"; + rev = "bbf7a2afc14f93e1e0a5c06df524fbd75e5031e5"; + sha256 = "13r896yy71i6jj1cwv2pjp53wjfxkg7bh884fggv6y79ly0qr63j"; }; } { @@ -76,8 +76,8 @@ fetch = { type = "git"; url = "https://github.com/eknkc/amber"; - rev = "9be5e8aae85904f63d505e0c00e5e0881d44ef4d"; - sha256 = "1hmsqxwajgpmg1svzjqxf4n81qy7qs6m39cjv69jkhz9lpwc305j"; + rev = "d15eb996544134263b00cce829b5bc4988fdb2df"; + sha256 = "1izrfw8vp5m2x8bmjaz1psmyn9pqcmcdsr3adiv1kkkqr01r37bb"; }; } { @@ -103,8 +103,8 @@ fetch = { type = "git"; url = "https://github.com/gorilla/websocket"; - rev = "adf16b31781325cbd41085c5be901d95b4d1f33d"; - sha256 = "0f93k3igbqqwsl734lxnkbfajc4lcyzg4szg15vb26qn939b5ccx"; + rev = "a91eba7f97777409bc2c443f5534d41dd20c5720"; + sha256 = "13cg6wwkk2ddqbm0nh9fpx4mq7f6qym12ch4lvs53n028ycdgw87"; }; } { @@ -112,8 +112,8 @@ fetch = { type = "git"; url = "https://github.com/hashicorp/hcl"; - rev = "80e628d796135357b3d2e33a985c666b9f35eee1"; - sha256 = "0l85a7ir60hycb3mqsxmrz18f1kax03k55afsahr8xf46pjp5pyb"; + rev = "630949a3c5fa3c613328e1b8256052cbc2327c9b"; + sha256 = "00lalg0gz7218gnw6zgn28gfizpcl8zw8jpkghn681vj7lfah5dh"; }; } { @@ -130,8 +130,8 @@ fetch = { type = "git"; url = "https://github.com/kardianos/osext"; - rev = "9b883c5eb462dd5cb1b0a7a104fe86bc6b9bd391"; - sha256 = "0cyhbgsxwdfnwy57pdfivvjfy951gxbg9qlsjbwm6vs3gfws07mr"; + rev = "9d302b58e975387d0b4d9be876622c86cefe64be"; + sha256 = "0r6f727s16g4f66k8c2z1xh8ga1p53hg9g2v95pmhd1i60fhy47a"; }; } { @@ -148,8 +148,8 @@ fetch = { type = "git"; url = "https://github.com/kyokomi/emoji"; - rev = "7e06b236c489543f53868841f188a294e3383eab"; - sha256 = "1q2j0k5a8qqka1syc9zwmf1cvm6k628kf2g1nmghp2kdr7q1xmyb"; + rev = "7ad0be7be9d4ee6ec2cf5df483dbec752626ac64"; + sha256 = "1ck33c8xhdqdpmi5zjdk0f2qv2fda3wz88i22bxr10f9rmwkj004"; }; } { @@ -157,8 +157,8 @@ fetch = { type = "git"; url = "https://github.com/magiconair/properties"; - rev = "9c47895dc1ce54302908ab8a43385d1f5df2c11c"; - sha256 = "0497bacr3gc7352gcwb07wyw7vb9m04xfd82mw0hpnzzw3kfnav3"; + rev = "51463bfca2576e06c62a8504b5c0f06d61312647"; + sha256 = "0d7hr78y8gg2mrm5z4jjgm2w3awkznz383b7wvyzk3l33jw6i288"; }; } { @@ -166,8 +166,8 @@ fetch = { type = "git"; url = "https://github.com/miekg/mmark"; - rev = "2d4f1dd6f87cad351b9323bbaa6f6c586f0c4bee"; - sha256 = "1ak54nvmryx73g16q6qaac9x0klhbxxmk1j6zlnfvvibnkj2pa90"; + rev = "8b498b013a3e10b12864c2023a59d490c9d4bf5b"; + sha256 = "1v1q365d94hmpdip13a5435y6pfw3mq5isjj33q19by21zvb433v"; }; } { @@ -175,8 +175,8 @@ fetch = { type = "git"; url = "https://github.com/mitchellh/mapstructure"; - rev = "bfdb1a85537d60bc7e954e600c250219ea497417"; - sha256 = "141kkh801jyp1r6hba14krydqg1iivp13j12is70j0g05z9fbji8"; + rev = "53818660ed4955e899c0bcafa97299a388bd7c8e"; + sha256 = "10gdkk8gcjv0lg15ajy68dwgvfkjhawk08ccs9x9ym1adp6l2ycs"; }; } { @@ -184,8 +184,8 @@ fetch = { type = "git"; url = "https://github.com/nicksnyder/go-i18n"; - rev = "4df9b06c0c1ffd8538a3cfa9d888f8f52985b302"; - sha256 = "1cbbvq9l822p7vrscvaah3zybsj5yxcsq9fgvgsg062njbb0x41f"; + rev = "f373441d6d54a32891b2d8b1dbf99bc518f3d60d"; + sha256 = "094kcybx0vmdvi3n2y4krrirg79527cq8713kppd6b19jwrqwqf4"; }; } { @@ -202,8 +202,8 @@ fetch = { type = "git"; url = "https://github.com/pelletier/go-toml"; - rev = "fee7787d3f811af92276f5ff10107092e95b7a1d"; - sha256 = "0srx5hr35f9qzn5dnqqa0msyjknwn7vcq0jmlkvfxgaq0ygd6s3r"; + rev = "fe206efb84b2bc8e8cfafe6b4c1826622be969e3"; + sha256 = "1dlabfpnlzvwf4i86idy8ilqpjsl8yqfgdv0nv5cccm8gkcans5w"; }; } { @@ -211,8 +211,8 @@ fetch = { type = "git"; url = "https://github.com/pkg/errors"; - rev = "248dadf4e9068a0b3e79f02ed0a610d935de5302"; - sha256 = "03l80r0i9bxl0vz363w62k4a8apzglgbrz6viwym3044sxkl1qks"; + rev = "ff09b135c25aae272398c51a07235b90a75aa4f0"; + sha256 = "0pwl6v3hmc22zp32gkyqykl4kg69xk1mlp0vmhgd1f44difd5fvz"; }; } { @@ -229,8 +229,8 @@ fetch = { type = "git"; url = "https://github.com/russross/blackfriday"; - rev = "5f33e7b7878355cd2b7e6b8eefc48a5472c69f70"; - sha256 = "0d7faqxrxvh8hwc1r8gbasgmr8x5blxvzciwspir2yafjfbqy87k"; + rev = "b253417e1cb644d645a0a3bb1fa5034c8030127c"; + sha256 = "1knj8vabymhmkg12cj3hnpqf3b74wwrvqib12yczcvpi52xaqi20"; }; } { @@ -256,8 +256,8 @@ fetch = { type = "git"; url = "https://github.com/spf13/cast"; - rev = "ce135a4ebeee6cfe9a26c93ee0d37825f26113c7"; - sha256 = "1a2ahiyynn1kdjznqvzjfm5g5bc098gfw857bw9qikhdljvsnjiy"; + rev = "acbeb36b902d72a7a4c18e8f3241075e7ab763e4"; + sha256 = "0w25s6gjbbwv47b9208hysyqqphd6pib3d2phg24mjy4wigkm050"; }; } { @@ -265,8 +265,8 @@ fetch = { type = "git"; url = "https://github.com/spf13/cobra"; - rev = "7be4beda01ec05d0b93d80b3facd2b6f44080d94"; - sha256 = "0jd2ya8kn763z16c3q5jl1x6raw2f3xq3vbaf4ppiy70zqzscmyg"; + rev = "3d7bff8a321b0a0f88b115558bb7e21bec9124ab"; + sha256 = "07lxw8lnbpdqjvjlx732v9i04z8kgyvlp68d0fqdv6a16smf3nyz"; }; } { @@ -301,8 +301,8 @@ fetch = { type = "git"; url = "https://github.com/spf13/pflag"; - rev = "9ff6c6923cfffbcd502984b8e0c80539a94968b7"; - sha256 = "0mfrxzyl8x7araa126lh8l3sihbbgfbzgkrg3v3cx7y4n3wrsqvn"; + rev = "f1d95a35e132e8a1868023a08932b14f0b8b8fcb"; + sha256 = "0fwvkyq36jvy2gid81031ll7qaj8jxr5g36fff7hhkp3hh4kz6zh"; }; } { @@ -310,8 +310,8 @@ fetch = { type = "git"; url = "https://github.com/spf13/viper"; - rev = "7538d73b4eb9511d85a9f1dfef202eeb8ac260f4"; - sha256 = "0i4q715bjp018zw1b52zgx79j4s7s8l26dyrw8cslshibkx0frnl"; + rev = "5d46e70da8c0b6f812e0b170b7a985753b5c63cb"; + sha256 = "1wvcb1n3y3b7ixlw9vcj4fss5r6vi35a89c42nfb1hqaaji3lypi"; }; } { @@ -337,8 +337,8 @@ fetch = { type = "git"; url = "https://go.googlesource.com/crypto"; - rev = "453249f01cfeb54c3d549ddb75ff152ca243f9d8"; - sha256 = "0akybbzgi3v507a39bgnkk79rfhj8gflr7538g5a0177z5i9ygwa"; + rev = "cbc3d0884eac986df6e78a039b8792e869bff863"; + sha256 = "1b82asfxajwjb9rindx85c39lll8ygsj9rxxjca9171yh6wi5xbb"; }; } { @@ -346,8 +346,8 @@ fetch = { type = "git"; url = "https://go.googlesource.com/net"; - rev = "906cda9512f77671ab44f8c8563b13a8e707b230"; - sha256 = "0aa33n5a2zzrm2pnjyc3xkdmf8hq2qpafgdp8v6fxfb0swqjl2n3"; + rev = "5602c733f70afc6dcec6766be0d5034d4c4f14de"; + sha256 = "0n7jv3sl2s5fzdvj9jv4dqsgsdgkw6m3azqhiwq8igi97rymchyd"; }; } { @@ -355,8 +355,8 @@ fetch = { type = "git"; url = "https://go.googlesource.com/sys"; - rev = "075e574b89e4c2d22f2286a7e2b919519c6f3547"; - sha256 = "1p38siwqcbd592lphaqpigl7scshkfy67k6jcwscbcsl6akw51km"; + rev = "dbc2be9168a660ef302e04b6ff6406de6f967473"; + sha256 = "1hz9d7wnxwlvhlgmqrxjdx9fihx30f9ww6ir2l74l8ping1g6w1j"; }; } { @@ -364,8 +364,8 @@ fetch = { type = "git"; url = "https://go.googlesource.com/text"; - rev = "0ad425fe45e885577bef05dc1c50f72e33188b16"; - sha256 = "1jz0i8iagfd703flx5z006kisjixpm8iy4hiwywgbh31wypsxxyl"; + rev = "f4b4367115ec2de254587813edaa901bc1c723a8"; + sha256 = "1a5m97y7sdxks02p4swg8ffp8bgr95aaf5fhfw511p7h3xg1dm0d"; }; } { @@ -373,8 +373,8 @@ fetch = { type = "git"; url = "https://gopkg.in/yaml.v2"; - rev = "a3f3340b5840cee44f372bddb5880fcbc419b46a"; - sha256 = "1djb53a8ikwgkfpf8namgf4d8pq1mq6q9q2c7q0z8x4dxf3whxj7"; + rev = "cd8b52f8269e0feb286dfeef29f8fe4d5b397e0b"; + sha256 = "1hj2ag9knxflpjibck0n90jrhsrqz7qvad4qnif7jddyapi9bqzl"; }; } ] diff --git a/pkgs/applications/networking/c14/default.nix b/pkgs/applications/networking/c14/default.nix index 188ccdd71d4e..e7aa7bb67280 100644 --- a/pkgs/applications/networking/c14/default.nix +++ b/pkgs/applications/networking/c14/default.nix @@ -1,15 +1,17 @@ { stdenv, buildGoPackage, fetchFromGitHub }: buildGoPackage rec { - name = "c14-cli-2016-09-09"; + name = "c14-cli-unstable-${version}"; + version = "2017-05-15"; + rev = "97f437ef5133f73edd551c883db3076c76cb1f6b"; + goPackagePath = "github.com/online-net/c14-cli"; - subPackages = [ "cmd/c14" ]; src = fetchFromGitHub { owner = "online-net"; repo = "c14-cli"; - rev = "e7c7c3cb214fd06df63530a4e861210e7a0a1b6c"; - sha256 = "1k53lii2c04j8cy1bnyfvckl9fglprxp75cmbg15lrp9iic2w22a"; + inherit rev; + sha256 = "1b44bh0zhh6rhw4d3nprnnxhjgaskl9kzp2cvwwyli5svhjxrfdj"; }; goDeps = ./deps.nix; diff --git a/pkgs/applications/networking/c14/deps.nix b/pkgs/applications/networking/c14/deps.nix index 60b6b7384387..fe51488c7066 100644 --- a/pkgs/applications/networking/c14/deps.nix +++ b/pkgs/applications/networking/c14/deps.nix @@ -1,65 +1 @@ -[ - { - goPackagePath = "github.com/davecgh/go-spew"; - fetch = { - type = "git"; - url = "https://github.com/davecgh/go-spew"; - rev = "6d212800a42e8ab5c146b8ace3490ee17e5225f9"; - sha256 = "01i0n1s4j7khb7n6mz2wymniz37q0vbzkgfv7rbi6p9hpg227q93"; - }; - } - { - goPackagePath = "github.com/fatih/color"; - fetch = { - type = "git"; - url = "https://github.com/fatih/color"; - rev = "87d4004f2ab62d0d255e0a38f1680aa534549fe3"; - sha256 = "0d51avdl4z38f7jd8qmzrzyh4gxkcjpxd0vvma9zfqhmqy15jqhb"; - }; - } - { - goPackagePath = "github.com/mattn/go-colorable"; - fetch = { - type = "git"; - url = "https://github.com/mattn/go-colorable"; - rev = "ed8eb9e318d7a84ce5915b495b7d35e0cfe7b5a8"; - sha256 = "034fhyqmiqmn0v9gdbdmm0ca5d0pki2q1ch1rd34p9kh9574mjyq"; - }; - } - { - goPackagePath = "github.com/mattn/go-isatty"; - fetch = { - type = "git"; - url = "https://github.com/mattn/go-isatty"; - rev = "66b8e73f3f5cda9f96b69efd03dd3d7fc4a5cdb8"; - sha256 = "17lf13ndnai9a6dlmykqkdyzf1z04q7kffs0l7kvd78wpv3l6rm5"; - }; - } - { - goPackagePath = "github.com/online-net/c14-cli"; - fetch = { - type = "git"; - url = "https://github.com/online-net/c14-cli"; - rev = "e7c7c3cb214fd06df63530a4e861210e7a0a1b6c"; - sha256 = "1k53lii2c04j8cy1bnyfvckl9fglprxp75cmbg15lrp9iic2w22a"; - }; - } - { - goPackagePath = "github.com/pmezard/go-difflib"; - fetch = { - type = "git"; - url = "https://github.com/pmezard/go-difflib"; - rev = "792786c7400a136282c1664665ae0a8db921c6c2"; - sha256 = "0c1cn55m4rypmscgf0rrb88pn58j3ysvc2d0432dp3c6fqg6cnzw"; - }; - } - { - goPackagePath = "github.com/stretchr/testify"; - fetch = { - type = "git"; - url = "https://github.com/stretchr/testify"; - rev = "d77da356e56a7428ad25149ca77381849a6a5232"; - sha256 = "11id286pkzyswxcx2xz6185fzh0nz6yzkk055dd6z02gvinl6pqa"; - }; - } -] +[] diff --git a/pkgs/applications/networking/cluster/kops/default.nix b/pkgs/applications/networking/cluster/kops/default.nix index ea25fa6ccb57..d15655b89db9 100644 --- a/pkgs/applications/networking/cluster/kops/default.nix +++ b/pkgs/applications/networking/cluster/kops/default.nix @@ -2,24 +2,37 @@ buildGoPackage rec { name = "kops-${version}"; - version = "1.4.0"; - rev = "v${version}"; + version = "1.6.0"; goPackagePath = "k8s.io/kops"; src = fetchFromGitHub { - inherit rev; + rev = version; owner = "kubernetes"; repo = "kops"; - sha256 = "1jwgn7l8c639j5annwymqjdw5mcajwn58y21042jy5lhgdh8pdf5"; + sha256 = "0varn38v2vybmahzpgbk73ma368bkdz09wmx2mmqikfppmzszkv3"; }; buildInputs = [go-bindata]; subPackages = ["cmd/kops"]; + buildFlagsArray = '' + -ldflags= + -X k8s.io/kops.Version=${version} + -X k8s.io/kops.GitVersion=${version} + ''; + preBuild = '' (cd go/src/k8s.io/kops - go-bindata -o upup/models/bindata.go -pkg models -prefix upup/models/ upup/models/...) + go-bindata -o upup/models/bindata.go -pkg models -prefix upup/models/ upup/models/... + go-bindata -o federation/model/bindata.go -pkg model -prefix federation/model federation/model/...) + ''; + + postInstall = '' + mkdir -p $bin/share/bash-completion/completions + mkdir -p $bin/share/zsh/site-functions + $bin/bin/kops completion bash > $bin/share/bash-completion/completions/kops + $bin/bin/kops completion zsh > $bin/share/zsh/site-functions/_kops ''; meta = with stdenv.lib; { diff --git a/pkgs/applications/networking/instant-messengers/jackline/default.nix b/pkgs/applications/networking/instant-messengers/jackline/default.nix index 25d71fa88597..a9cb3f09bcee 100644 --- a/pkgs/applications/networking/instant-messengers/jackline/default.nix +++ b/pkgs/applications/networking/instant-messengers/jackline/default.nix @@ -3,18 +3,16 @@ assert stdenv.lib.versionAtLeast ocamlPackages.ocaml.version "4.02.2"; stdenv.mkDerivation rec { - version = "2016-11-18"; + version = "2017-05-21"; name = "jackline-${version}"; src = fetchFromGitHub { owner = "hannesm"; repo = "jackline"; - rev = "cab34acab004023911997ec9aee8b00a976af7e4"; - sha256 = "0h7wdsic4v6ys130w61zvxm5s2vc7y574hn7zby12rq88lhhrjh7"; + rev = "0a1e4ea23245633fe23edf09b2309659a1bc3649"; + sha256 = "1wnmwsp3a5nh3qs4h9grrdsvv0i3p419cfmhrrql3lj2x3ngdw82"; }; - patches = [ ./uchar.patch ]; - buildInputs = with ocamlPackages; [ ocaml ocamlbuild findlib topkg ppx_sexp_conv erm_xmpp_0_3 tls nocrypto x509 ocaml_lwt otr astring diff --git a/pkgs/applications/networking/instant-messengers/jackline/uchar.patch b/pkgs/applications/networking/instant-messengers/jackline/uchar.patch deleted file mode 100644 index f861135090e5..000000000000 --- a/pkgs/applications/networking/instant-messengers/jackline/uchar.patch +++ /dev/null @@ -1,302 +0,0 @@ -diff --git a/_tags b/_tags -index 88318d9..b433ee8 100644 ---- a/_tags -+++ b/_tags -@@ -7,9 +7,11 @@ true : package(sexplib astring) - - <src/xconfig.ml>: package(otr ppx_sexp_conv) - <src/utils.ml>: package(uutf) -+<src/muc.ml>: package(uchar) -+<src/contact.mli>: package(uchar) - <src/persistency.ml>: package(lwt nocrypto) - <src/xjid.{ml,mli}>: package(ppx_sexp_conv erm_xmpp) --<src/user.{ml,mli}>: package(ppx_sexp_conv otr hex ptime ptime.clock.os) -+<src/user.{ml,mli}>: package(uchar ppx_sexp_conv otr hex ptime ptime.clock.os) - <src/xmpp_callbacks.ml>: package(erm_xmpp lwt tls tls.lwt ptime) - <src/xmpp_connection.ml>: package(erm_xmpp lwt tls tls.lwt) - -@@ -18,6 +20,6 @@ true : package(sexplib astring) - <cli/cli_input.ml>: package(notty lwt erm_xmpp otr) - <cli/cli_commands.ml>: package(lwt otr erm_xmpp) - <cli/cli_config.ml>: package(lwt nocrypto otr notty tls.lwt x509) --<cli/cli_state.ml>: package(hex lwt nocrypto erm_xmpp tls.lwt x509) -+<cli/cli_state.ml>: package(uchar hex lwt nocrypto erm_xmpp tls.lwt x509) - - <bin/jackline.{ml,byte,native}>: package(erm_xmpp hex lwt notty notty.lwt nocrypto otr sexplib tls tls.lwt ptime ptime.clock.os) -diff --git a/cli/cli_config.ml b/cli/cli_config.ml -index 618d655..dac6e68 100644 ---- a/cli/cli_config.ml -+++ b/cli/cli_config.ml -@@ -34,7 +34,7 @@ let rewrap term above below (prefix, inp, inp2) (width, _) = - let height = if col mod width = 0 then succ h else h in - (succ (col mod width), height) - in -- Notty_lwt.Term.cursor term (Some (col, row)) -+ Notty_lwt.Term.cursor term (Some (col - 1, row - 1)) - - let read_line ?(above = []) ?(prefix = "") ?default ?(below = []) term = - let rec go (pre, post) = -@@ -56,8 +56,8 @@ let read_line ?(above = []) ?(prefix = "") ?default ?(below = []) term = - | `Unhandled k -> - match k with - | `Key (`Enter, []) -> Lwt.return (char_list_to_str (pre @ post)) -- | `Key (`Uchar 0x43, [`Ctrl]) -> Lwt.fail (Invalid_argument "Ctrl-c") -- | `Key (`Uchar 0x44, [`Ctrl]) -> Lwt.fail (Invalid_argument "Ctrl-d") -+ | `Key (`Uchar u, [`Ctrl]) when Uchar.to_int u = 0x43 -> Lwt.fail (Invalid_argument "Ctrl-c") -+ | `Key (`Uchar u, [`Ctrl]) when Uchar.to_int u = 0x44 -> Lwt.fail (Invalid_argument "Ctrl-d") - | _ -> go (pre, post) - in - let pre = Utils.option [] str_to_char_list default in -@@ -180,7 +180,7 @@ let configure term () = - let pw = "Password: " in - let chars = match password with - | None -> I.string A.empty "will be asked at startup" -- | Some _ -> I.uchar A.empty 0x2605 5 1 -+ | Some _ -> I.uchar A.empty (Uchar.of_int 0x2605) 5 1 - in - above @ [I.(string A.empty pw <|> chars)] - in -diff --git a/cli/cli_input.ml b/cli/cli_input.ml -index 34b4288..07488f2 100644 ---- a/cli/cli_input.ml -+++ b/cli/cli_input.ml -@@ -314,19 +314,19 @@ let read_terminal term mvar input_mvar () = - | `Key (`Arrow `Up, []) -> p (fun s -> ok (history s Up)) >>= fun () -> loop () - | `Key (`Arrow `Down, []) -> p (fun s -> ok (history s Down)) >>= fun () -> loop () - -- | `Key (`Uchar 0x44, [`Ctrl]) (* C-d *) -> p (fun s -> Lwt.return (`Quit s)) -+ | `Key (`Uchar u, [`Ctrl]) when Uchar.to_int u = 0x44 (* C-d *) -> p (fun s -> Lwt.return (`Quit s)) - - (* UI navigation and toggles *) - | `Key (`Page `Up, []) -> p (fun s -> ok (navigate_buddy_list s Up)) >>= fun () -> loop () - | `Key (`Page `Down, []) -> p (fun s -> ok (navigate_buddy_list s Down)) >>= fun () -> loop () - - | `Key (`Page `Up, [`Ctrl]) -> p (fun s -> ok (navigate_message_buffer s Up)) >>= fun () -> loop () -- | `Key (`Uchar 0x50, [`Ctrl]) (* C-p *) -> p (fun s -> ok (navigate_message_buffer s Up)) >>= fun () -> loop () -+ | `Key (`Uchar u, [`Ctrl]) when Uchar.to_int u = 0x50 (* C-p *) -> p (fun s -> ok (navigate_message_buffer s Up)) >>= fun () -> loop () - | `Key (`Page `Down, [`Ctrl]) -> p (fun s -> ok (navigate_message_buffer s Down)) >>= fun () -> loop () -- | `Key (`Uchar 0x4E, [`Ctrl]) (* C-n *) -> p (fun s -> ok (navigate_message_buffer s Down)) >>= fun () -> loop () -+ | `Key (`Uchar u, [`Ctrl]) when Uchar.to_int u = 0x4E (* C-n *) -> p (fun s -> ok (navigate_message_buffer s Down)) >>= fun () -> loop () - -- | `Key (`Uchar 0x58, [`Ctrl]) (* C-x *) -> p (fun s -> ok (activate_contact s s.last_active_contact)) >>= fun () -> loop () -- | `Key (`Uchar 0x51, [`Ctrl]) (* C-q *) -> -+ | `Key (`Uchar u, [`Ctrl]) when Uchar.to_int u = 0x58 (* C-x *) -> p (fun s -> ok (activate_contact s s.last_active_contact)) >>= fun () -> loop () -+ | `Key (`Uchar u, [`Ctrl]) when Uchar.to_int u = 0x51 (* C-q *) -> - let handle s = - let s = match List.rev s.notifications with - | x::_ -> activate_contact s x -diff --git a/cli/cli_state.ml b/cli/cli_state.ml -index 5603cfe..ee320ce 100644 ---- a/cli/cli_state.ml -+++ b/cli/cli_state.ml -@@ -24,7 +24,7 @@ type connect_v = - | Reconnect - | Presence of (User.presence * string option * int option) - --type input = int list * int list -+type input = Uchar.t list * Uchar.t list - - type state = { - (* set only initially *) -diff --git a/cli/cli_support.ml b/cli/cli_support.ml -index 1c54df6..8275c38 100644 ---- a/cli/cli_support.ml -+++ b/cli/cli_support.ml -@@ -4,17 +4,17 @@ open Notty - module Char = struct - let hdash a w = - if !Utils.unicode then -- I.uchar a 0x2500 w 1 -+ I.uchar a (Uchar.of_int 0x2500) w 1 - else - I.char a '-' w 1 - and vdash a h = - if !Utils.unicode then -- I.uchar a 0x2502 1 h -+ I.uchar a (Uchar.of_int 0x2502) 1 h - else - I.char a '|' 1 h - and star a w = - if !Utils.unicode then -- I.uchar a 0x2605 w 1 -+ I.uchar a (Uchar.of_int 0x2605) w 1 - else - I.char a '*' w 1 - end -@@ -186,8 +186,8 @@ let v_center left right width = - and rw = I.width right - in - match rw, lw >= width with -- | 0, true -> (I.hcrop (lw - width + 1) 0 left, width) -- | 0, false -> (left, succ lw) -+ | 0, true -> (I.hcrop (lw - width + 1) 0 left, width - 1) -+ | 0, false -> (left, lw) - | _, _ -> - if lw + rw >= width then - let leftw = min (max (width - rw) (width / 2)) lw in -@@ -195,11 +195,11 @@ let v_center left right width = - let l = I.hcrop (lw - leftw) 0 left - and r = I.hcrop 0 (rw - rightw) right - in -- (I.(l <|> r), succ leftw) -+ (I.(l <|> r), leftw) - else -- (I.(left <|> right), succ lw) -+ (I.(left <|> right), lw) - --let str_to_char_list str : int list = -+let str_to_char_list str : Uchar.t list = - let open Uutf in - List.rev (String.fold_utf_8 (fun acc _ -> function `Uchar i -> i :: acc | `Malformed _ -> acc) [] str) - -@@ -236,22 +236,26 @@ let readline_input = function - | k -> `Unhandled k - - let emacs_bindings = function -- | `Key (`Uchar 0x41, [`Ctrl]) (* C-a *) -> `Ok (fun (pre, post) -> ([], pre @ post)) -- | `Key (`Uchar 0x45, [`Ctrl]) (* C-e *) -> `Ok (fun (pre, post) -> (pre @ post, [])) -+ | `Key (`Uchar u, [`Ctrl]) as k -> -+ begin match Uchar.to_int u with -+ | 0x41 (* C-a *) -> `Ok (fun (pre, post) -> ([], pre @ post)) -+ | 0x45 (* C-e *) -> `Ok (fun (pre, post) -> (pre @ post, [])) - -- | `Key (`Uchar 0x4b, [`Ctrl]) (* C-k *) -> `Ok (fun (pre, _) -> (pre, [])) -- | `Key (`Uchar 0x55, [`Ctrl]) (* C-u *) -> `Ok (fun (_, post) -> ([], post)) -+ | 0x4b (* C-k *) -> `Ok (fun (pre, _) -> (pre, [])) -+ | 0x55 (* C-u *) -> `Ok (fun (_, post) -> ([], post)) - -- | `Key (`Uchar 0x46, [`Ctrl]) (* C-f *) -> -+ | 0x46 (* C-f *) -> - `Ok (fun (pre, post) -> - match post with - | [] -> (pre, post) - | hd::tl -> (pre @ [hd], tl)) -- | `Key (`Uchar 0x42, [`Ctrl]) (* C-b *) -> -+ | 0x42 (* C-b *) -> - `Ok (fun (pre, post) -> - match List.rev pre with - | [] -> ([], post) - | hd::tl -> (List.rev tl, hd :: post)) -+ | _ -> `Unhandled k -+ end - - | `Key (`Arrow `Left, [`Ctrl]) -> - `Ok (fun (pre, post) -> -diff --git a/src/contact.mli b/src/contact.mli -index 6926296..d6c795b 100644 ---- a/src/contact.mli -+++ b/src/contact.mli -@@ -8,7 +8,7 @@ val bare : contact -> Xjid.bare_jid - val preserve_messages : contact -> bool - val expanded : contact -> bool - val messages : contact -> User.message list --val input_buffer : contact -> (int list * int list) -+val input_buffer : contact -> (Uchar.t list * Uchar.t list) - - val readline_history : contact -> string list - val add_readline_history : contact -> string -> contact -@@ -18,7 +18,7 @@ val set_history_position : contact -> int -> contact - val received : contact -> string -> contact - - val expand : contact -> contact --val set_input_buffer : contact -> (int list * int list) -> contact -+val set_input_buffer : contact -> (Uchar.t list * Uchar.t list) -> contact - val set_preserve_messages : contact -> bool -> contact - - val reset : contact -> contact -diff --git a/src/muc.ml b/src/muc.ml -index 1c98037..3293541 100644 ---- a/src/muc.ml -+++ b/src/muc.ml -@@ -132,7 +132,7 @@ type groupchat = { - expand : bool ; - preserve_messages : bool ; - message_history : User.message list ; (* persistent if preserve_messages *) -- input_buffer : (int list * int list) ; -+ input_buffer : (Uchar.t list * Uchar.t list) ; - readline_history : string list ; - history_position : int ; - autojoin : bool ; -diff --git a/src/user.ml b/src/user.ml -index d039278..42a8c47 100644 ---- a/src/user.ml -+++ b/src/user.ml -@@ -229,7 +229,7 @@ type user = { - properties : property list ; - preserve_messages : bool ; - message_history : message list ; (* persistent if preserve_messages is true *) -- input_buffer: (int list * int list) ; (* not persistent *) -+ input_buffer: (Uchar.t list * Uchar.t list) ; (* not persistent *) - readline_history : string list ; (* not persistent *) - history_position : int ; (* not persistent *) - otr_fingerprints : fingerprint list ; -diff --git a/src/user.mli b/src/user.mli -index 52b503d..5ce41be 100644 ---- a/src/user.mli -+++ b/src/user.mli -@@ -118,7 +118,7 @@ type user = { - properties : property list ; - preserve_messages : bool ; - message_history : message list ; (* persistent if preserve_messages is true *) -- input_buffer: (int list * int list) ; (* not persistent *) -+ input_buffer: (Uchar.t list * Uchar.t list) ; (* not persistent *) - readline_history : string list ; (* not persistent *) - history_position : int ; - otr_fingerprints : fingerprint list ; -diff --git a/src/utils.ml b/src/utils.ml -index 0b4a3a7..cd9cb10 100644 ---- a/src/utils.ml -+++ b/src/utils.ml -@@ -30,31 +30,33 @@ let validate_utf8 txt = - let rec loop d buf = match Uutf.decode d with - | `Await -> Buffer.contents buf - | `End -> Buffer.contents buf -- | `Malformed _ -> if !unicode then Uutf.Buffer.add_utf_8 buf 0xFFFD; loop d buf -- | `Uchar 0x000A -> (* newline *) Uutf.Buffer.add_utf_8 buf 0x000A ; loop d buf -- | `Uchar 0x0009 -> (* tab -> 4 spaces *) Uutf.Buffer.add_utf_8 buf 0x0020 ; Uutf.Buffer.add_utf_8 buf 0x0020 ; Uutf.Buffer.add_utf_8 buf 0x0020 ; Uutf.Buffer.add_utf_8 buf 0x0020 ; loop d buf -- | `Uchar 0x007F (* DEL *) -+ | `Malformed _ -> if !unicode then Uutf.Buffer.add_utf_8 buf (Uchar.of_int 0xFFFD); loop d buf -+ | `Uchar u -> -+ match Uchar.to_int u with -+ | 0x000A -> (* newline *) Uutf.Buffer.add_utf_8 buf (Uchar.of_int 0x000A) ; loop d buf -+ | 0x0009 -> (* tab -> 4 spaces *) Uutf.Buffer.add_utf_8 buf (Uchar.of_int 0x0020) ; Uutf.Buffer.add_utf_8 buf (Uchar.of_int 0x0020) ; Uutf.Buffer.add_utf_8 buf (Uchar.of_int 0x0020) ; Uutf.Buffer.add_utf_8 buf (Uchar.of_int 0x0020) ; loop d buf -+ | 0x007F (* DEL *) - (* See https://en.wikipedia.org/wiki/Unicode_control_characters / https://en.wikipedia.org/wiki/Bi-directional_text *) -- | `Uchar 0x200E | `Uchar 0x200F (* left-to-right / right-to-left *) -- | `Uchar 0x202A | `Uchar 0x202D (* left-to-right embedding / override *) -- | `Uchar 0x202B | `Uchar 0x202E (* right-to-left embedding / override *) -- | `Uchar 0x202C (* pop directional format *) -- | `Uchar 0x2066 | `Uchar 0x2067 (* l-t-r isolate r-t-l isolate *) -- | `Uchar 0x2068 | `Uchar 0x2069 (* first strong isolate / pop directional isolate *) -- | `Uchar 0x2028 | `Uchar 0x2029 (* line separator / page separator *) -> -- if !unicode then Uutf.Buffer.add_utf_8 buf 0xFFFD ; loop d buf -- | `Uchar x when x < 0x20 -> -+ | 0x200E | 0x200F (* left-to-right / right-to-left *) -+ | 0x202A | 0x202D (* left-to-right embedding / override *) -+ | 0x202B | 0x202E (* right-to-left embedding / override *) -+ | 0x202C (* pop directional format *) -+ | 0x2066 | 0x2067 (* l-t-r isolate r-t-l isolate *) -+ | 0x2068 | 0x2069 (* first strong isolate / pop directional isolate *) -+ | 0x2028 | 0x2029 (* line separator / page separator *) -> -+ if !unicode then Uutf.Buffer.add_utf_8 buf (Uchar.of_int 0xFFFD) ; loop d buf -+ | x when x < 0x20 -> - (* other control characters *) -- if !unicode then Uutf.Buffer.add_utf_8 buf 0xFFFD ; loop d buf -- | `Uchar x when x >= 0x0080 && x <= 0x009F -> -+ if !unicode then Uutf.Buffer.add_utf_8 buf (Uchar.of_int 0xFFFD) ; loop d buf -+ | x when x >= 0x0080 && x <= 0x009F -> - (* ctrl chars used in conjunction with ISO 8859 character sets (C0/C1) *) -- if !unicode then Uutf.Buffer.add_utf_8 buf 0xFFFD ; loop d buf -+ if !unicode then Uutf.Buffer.add_utf_8 buf (Uchar.of_int 0xFFFD) ; loop d buf - -- | `Uchar x -> -+ | x -> - let c = if !unicode then x else if x > 0xff then 0x3f else x in -- Uutf.Buffer.add_utf_8 buf c ; loop d buf -+ Uutf.Buffer.add_utf_8 buf (Uchar.of_int c) ; loop d buf - in -- let nln = `Readline 0x000A in -+ let nln = `Readline (Uchar.of_int 0x000A) in - loop (Uutf.decoder ~nln ~encoding:`UTF_8 (`String txt)) (Buffer.create (String.length txt)) - - let version = "%%VERSION_NUM%%" diff --git a/pkgs/applications/networking/mailreaders/astroid/default.nix b/pkgs/applications/networking/mailreaders/astroid/default.nix index 668044f5efb8..2f2ce79bcb18 100644 --- a/pkgs/applications/networking/mailreaders/astroid/default.nix +++ b/pkgs/applications/networking/mailreaders/astroid/default.nix @@ -3,13 +3,13 @@ stdenv.mkDerivation rec { name = "astroid-${version}"; - version = "0.8"; + version = "0.9.1"; src = fetchFromGitHub { owner = "astroidmail"; repo = "astroid"; rev = "v${version}"; - sha256 = "1gjrdls1mz8y8bca7s8l965l0m7s2sb6g7a90gy848admjsyav7h"; + sha256 = "0ha2jd3fvc54amh0x8f58s9ac4r8xgyhvkwd4jvs0h4mfh6cg496"; }; nativeBuildInputs = [ scons pkgconfig wrapGAppsHook ]; diff --git a/pkgs/applications/networking/sniffers/wireshark/default.nix b/pkgs/applications/networking/sniffers/wireshark/default.nix index c8880e630a6d..4e5d9893c2c9 100644 --- a/pkgs/applications/networking/sniffers/wireshark/default.nix +++ b/pkgs/applications/networking/sniffers/wireshark/default.nix @@ -12,7 +12,7 @@ assert withQt -> !withGtk && qt5 != null; with stdenv.lib; let - version = "2.2.5"; + version = "2.2.6"; variant = if withGtk then "gtk" else if withQt then "qt" else "cli"; in stdenv.mkDerivation { @@ -20,7 +20,7 @@ in stdenv.mkDerivation { src = fetchurl { url = "http://www.wireshark.org/download/src/all-versions/wireshark-${version}.tar.bz2"; - sha256 = "1j4sc3pmy8l6k41007spglcqiabjlzc7f85pn3jmjr9ksv9qipbm"; + sha256 = "0jd89i9si43lyv3hsl6p1lkjmz4zagvc37wcbigsxxc5v8gda9zn"; }; nativeBuildInputs = [ diff --git a/pkgs/applications/science/logic/cryptominisat/default.nix b/pkgs/applications/science/logic/cryptominisat/default.nix new file mode 100644 index 000000000000..26efbc5fe723 --- /dev/null +++ b/pkgs/applications/science/logic/cryptominisat/default.nix @@ -0,0 +1,31 @@ +{ stdenv, fetchFromGitHub, fetchpatch, cmake, python, vim }: + +stdenv.mkDerivation rec { + name = "cryptominisat-${version}"; + version = "5.0.1"; + + src = fetchFromGitHub { + owner = "msoos"; + repo = "cryptominisat"; + rev = version; + sha256 = "0cpw5d9vplxvv3aaplhnga55gz1hy29p7s4pkw1306knkbhlzvkb"; + }; + + # vim for xxd binary + buildInputs = [ python vim ]; + nativeBuildInputs = [ cmake ]; + + patches = [(fetchpatch rec { + name = "fix-exported-library-name.patch"; + url = "https://github.com/msoos/cryptominisat/commit/7a47795cbe5ad5a899731102d297f234bcade077.patch"; + sha256 = "11hf3cfqs4cykn7rlgjglq29lzqfxvlm0f20qasi0kdrz01cr30f"; + })]; + + meta = with stdenv.lib; { + description = "An advanced SAT Solver"; + maintainers = with maintainers; [ mic92 ]; + platforms = platforms.unix; + license = licenses.mit; + homepage = https://github.com/msoos/cryptominisat; + }; +} diff --git a/pkgs/applications/science/logic/minisat/unstable.nix b/pkgs/applications/science/logic/minisat/unstable.nix new file mode 100644 index 000000000000..9d63f32c5449 --- /dev/null +++ b/pkgs/applications/science/logic/minisat/unstable.nix @@ -0,0 +1,23 @@ +{ stdenv, fetchFromGitHub, zlib, cmake }: + +stdenv.mkDerivation rec { + name = "minisat-unstable-2013-09-25"; + + src = fetchFromGitHub { + owner = "niklasso"; + repo = "minisat"; + rev = "37dc6c67e2af26379d88ce349eb9c4c6160e8543"; + sha256 = "091hf3qkm197s5r7xcr3m07xsdwyz2rqk1hc9kj0hn13imz09irq"; + }; + + buildInputs = [ zlib ]; + nativeBuildInputs = [ cmake ]; + + meta = with stdenv.lib; { + description = "Compact and readable SAT solver"; + maintainers = with maintainers; [ mic92 ]; + platforms = platforms.unix; + license = licenses.mit; + homepage = "http://minisat.se/"; + }; +} diff --git a/pkgs/applications/science/logic/stp/default.nix b/pkgs/applications/science/logic/stp/default.nix index 444bb06c4a00..8c0b82cc549c 100644 --- a/pkgs/applications/science/logic/stp/default.nix +++ b/pkgs/applications/science/logic/stp/default.nix @@ -1,23 +1,32 @@ -{stdenv, cmake, boost, bison, flex, fetchgit, perl, zlib}: +{ stdenv, cmake, boost, bison, flex, fetchFromGitHub, perl, python3, python3Packages, zlib, minisatUnstable, cryptominisat }: + stdenv.mkDerivation rec { - version = "2014.01.07"; + version = "2.2.0"; name = "stp-${version}"; - src = fetchgit { - url = "git://github.com/stp/stp"; - rev = "3aa11620a823d617fc033d26aedae91853d18635"; - sha256 = "832520787f57f63cf47364d080f30ad10d6d6e00f166790c19b125be3d6dd45c"; + + src = fetchFromGitHub { + owner = "stp"; + repo = "stp"; + rev = "stp-${version}"; + sha256 = "1jh23wjm62nnqfx447g2y53bbangq04hjrvqc35v9xxpcjgj3i49"; }; - buildInputs = [ cmake boost bison flex perl zlib ]; - cmakeFlags = [ "-DBUILD_SHARED_LIBS=ON" ]; - patchPhase = '' - sed -e 's,^export(PACKAGE.*,,' -i CMakeLists.txt - patch -p1 < ${./fixbuild.diff} - patch -p1 < ${./fixrefs.diff} + + buildInputs = [ boost zlib minisatUnstable cryptominisat python3 ]; + nativeBuildInputs = [ cmake bison flex perl ]; + preConfigure = '' + python_install_dir=$out/${python3Packages.python.sitePackages} + mkdir -p $python_install_dir + cmakeFlagsArray=( + $cmakeFlagsArray + "-DBUILD_SHARED_LIBS=ON" + "-DPYTHON_LIB_INSTALL_DIR=$python_install_dir" + ) ''; - meta = { - description = ''Simple Theorem Prover''; - maintainers = with stdenv.lib.maintainers; [mornfall]; - platforms = with stdenv.lib.platforms; linux; - license = stdenv.lib.licenses.mit; + + meta = with stdenv.lib; { + description = "Simple Theorem Prover"; + maintainers = with maintainers; [ mornfall ]; + platforms = platforms.linux; + license = licenses.mit; }; } diff --git a/pkgs/applications/science/logic/stp/fixbuild.diff b/pkgs/applications/science/logic/stp/fixbuild.diff deleted file mode 100644 index 01782cb4f40b..000000000000 --- a/pkgs/applications/science/logic/stp/fixbuild.diff +++ /dev/null @@ -1,45 +0,0 @@ -diff --git a/src/libstp/CMakeLists.txt b/src/libstp/CMakeLists.txt -index 83bd03a..9c0304b 100644 ---- a/src/libstp/CMakeLists.txt -+++ b/src/libstp/CMakeLists.txt -@@ -23,6 +23,15 @@ set(stp_lib_targets - printer - ) - -+include_directories(${CMAKE_SOURCE_DIR}/src/AST/) -+include_directories(${CMAKE_BINARY_DIR}/src/AST/) -+ -+add_library(globalstp OBJECT -+ ../main/Globals.cpp -+ ${CMAKE_CURRENT_BINARY_DIR}/../main/GitSHA1.cpp -+) -+add_dependencies(globalstp ASTKind_header) -+ - # Create list of objects and gather list of - # associated public headers. - set(stp_lib_objects "") -@@ -31,6 +40,7 @@ foreach(target ${stp_lib_targets}) - list(APPEND stp_lib_objects $<TARGET_OBJECTS:${target}>) - - get_target_property(TARGETS_PUBLIC_HEADERS ${target} PUBLIC_HEADER) -+ set_target_properties(${target} PROPERTIES POSITION_INDEPENDENT_CODE ON) - if (EXISTS "${TARGETS_PUBLIC_HEADERS}") - list(APPEND stp_public_headers "${TARGETS_PUBLIC_HEADERS}") - message("Adding public header(s) ${TARGETS_PUBLIC_HEADERS} to target libstp") -diff --git a/src/main/CMakeLists.txt b/src/main/CMakeLists.txt -index 0735137..73039f5 100644 ---- a/src/main/CMakeLists.txt -+++ b/src/main/CMakeLists.txt -@@ -3,12 +3,6 @@ include_directories(${CMAKE_BINARY_DIR}/src/AST/) - - configure_file("${CMAKE_CURRENT_SOURCE_DIR}/GitSHA1.cpp.in" "${CMAKE_CURRENT_BINARY_DIR}/GitSHA1.cpp" @ONLY) - --add_library(globalstp OBJECT -- Globals.cpp -- ${CMAKE_CURRENT_BINARY_DIR}/GitSHA1.cpp --) --add_dependencies(globalstp ASTKind_header) -- - # ----------------------------------------------------------------------------- - # Create binary - # ----------------------------------------------------------------------------- diff --git a/pkgs/applications/science/logic/stp/fixrefs.diff b/pkgs/applications/science/logic/stp/fixrefs.diff deleted file mode 100644 index 60ad4949f076..000000000000 --- a/pkgs/applications/science/logic/stp/fixrefs.diff +++ /dev/null @@ -1,192 +0,0 @@ -commit 53b6043e25b2eba264faab845077fbf6736cf22f -Author: Petr Rockai <me@mornfall.net> -Date: Tue Jan 7 13:30:07 2014 +0100 - - aig: Comment out unused functions with undefined references in them. - -diff --git a/src/extlib-abc/aig/aig/aigPart.c b/src/extlib-abc/aig/aig/aigPart.c -index a4cc116..5bd5f08 100644 ---- a/src/extlib-abc/aig/aig/aigPart.c -+++ b/src/extlib-abc/aig/aig/aigPart.c -@@ -869,6 +869,7 @@ Vec_Ptr_t * Aig_ManMiterPartitioned( Aig_Man_t * p1, Aig_Man_t * p2, int nPartSi - SeeAlso [] - - ***********************************************************************/ -+#if 0 - Aig_Man_t * Aig_ManChoicePartitioned( Vec_Ptr_t * vAigs, int nPartSize ) - { - extern int Cmd_CommandExecute( void * pAbc, char * sCommand ); -@@ -981,6 +982,7 @@ Aig_Man_t * Aig_ManChoicePartitioned( Vec_Ptr_t * vAigs, int nPartSize ) - Aig_ManMarkValidChoices( pAig ); - return pAig; - } -+#endif - - - //////////////////////////////////////////////////////////////////////// -diff --git a/src/extlib-abc/aig/aig/aigShow.c b/src/extlib-abc/aig/aig/aigShow.c -index ae8fa8b..f04eedc 100644 ---- a/src/extlib-abc/aig/aig/aigShow.c -+++ b/src/extlib-abc/aig/aig/aigShow.c -@@ -326,6 +326,7 @@ void Aig_WriteDotAig( Aig_Man_t * pMan, char * pFileName, int fHaig, Vec_Ptr_t * - SeeAlso [] - - ***********************************************************************/ -+#if 0 - void Aig_ManShow( Aig_Man_t * pMan, int fHaig, Vec_Ptr_t * vBold ) - { - extern void Abc_ShowFile( char * FileNameDot ); -@@ -347,7 +348,7 @@ void Aig_ManShow( Aig_Man_t * pMan, int fHaig, Vec_Ptr_t * vBold ) - // visualize the file - Abc_ShowFile( FileNameDot ); - } -- -+#endif - - //////////////////////////////////////////////////////////////////////// - /// END OF FILE /// -diff --git a/src/extlib-abc/aig/dar/darRefact.c b/src/extlib-abc/aig/dar/darRefact.c -index d744b4f..23fc3d5 100644 ---- a/src/extlib-abc/aig/dar/darRefact.c -+++ b/src/extlib-abc/aig/dar/darRefact.c -@@ -340,6 +340,7 @@ printf( "\n" ); - SeeAlso [] - - ***********************************************************************/ -+#if 0 - int Dar_ManRefactorTryCuts( Ref_Man_t * p, Aig_Obj_t * pObj, int nNodesSaved, int Required ) - { - Vec_Ptr_t * vCut; -@@ -428,6 +429,7 @@ int Dar_ManRefactorTryCuts( Ref_Man_t * p, Aig_Obj_t * pObj, int nNodesSaved, in - } - return p->GainBest; - } -+#endif - - /**Function************************************************************* - -@@ -461,6 +463,7 @@ int Dar_ObjCutLevelAchieved( Vec_Ptr_t * vCut, int nLevelMin ) - SeeAlso [] - - ***********************************************************************/ -+#if 0 - int Dar_ManRefactor( Aig_Man_t * pAig, Dar_RefPar_t * pPars ) - { - // Bar_Progress_t * pProgress; -@@ -583,6 +586,7 @@ p->timeOther = p->timeTotal - p->timeCuts - p->timeEval; - return 1; - - } -+#endif - - //////////////////////////////////////////////////////////////////////// - /// END OF FILE /// -diff --git a/src/extlib-abc/aig/dar/darScript.c b/src/extlib-abc/aig/dar/darScript.c -index e60df00..1b9c24f 100644 ---- a/src/extlib-abc/aig/dar/darScript.c -+++ b/src/extlib-abc/aig/dar/darScript.c -@@ -64,6 +64,7 @@ Aig_Man_t * Dar_ManRewriteDefault( Aig_Man_t * pAig ) - SeeAlso [] - - ***********************************************************************/ -+#if 0 - Aig_Man_t * Dar_ManRwsat( Aig_Man_t * pAig, int fBalance, int fVerbose ) - //alias rwsat "st; rw -l; b -l; rw -l; rf -l" - { -@@ -108,7 +109,7 @@ Aig_Man_t * Dar_ManRwsat( Aig_Man_t * pAig, int fBalance, int fVerbose ) - - return pAig; - } -- -+#endif - - /**Function************************************************************* - -@@ -121,6 +122,7 @@ Aig_Man_t * Dar_ManRwsat( Aig_Man_t * pAig, int fBalance, int fVerbose ) - SeeAlso [] - - ***********************************************************************/ -+#if 0 - Aig_Man_t * Dar_ManCompress( Aig_Man_t * pAig, int fBalance, int fUpdateLevel, int fVerbose ) - //alias compress2 "b -l; rw -l; rwz -l; b -l; rwz -l; b -l" - { -@@ -180,6 +182,7 @@ Aig_Man_t * Dar_ManCompress( Aig_Man_t * pAig, int fBalance, int fUpdateLevel, i - - return pAig; - } -+#endif - - /**Function************************************************************* - -@@ -192,6 +195,7 @@ Aig_Man_t * Dar_ManCompress( Aig_Man_t * pAig, int fBalance, int fUpdateLevel, i - SeeAlso [] - - ***********************************************************************/ -+#if 0 - Aig_Man_t * Dar_ManCompress2( Aig_Man_t * pAig, int fBalance, int fUpdateLevel, int fVerbose ) - //alias compress2 "b -l; rw -l; rf -l; b -l; rw -l; rwz -l; b -l; rfz -l; rwz -l; b -l" - { -@@ -285,6 +289,7 @@ Aig_Man_t * Dar_ManCompress2( Aig_Man_t * pAig, int fBalance, int fUpdateLevel, - } - return pAig; - } -+#endif - - /**Function************************************************************* - -@@ -297,6 +302,7 @@ Aig_Man_t * Dar_ManCompress2( Aig_Man_t * pAig, int fBalance, int fUpdateLevel, - SeeAlso [] - - ***********************************************************************/ -+#if 0 - Vec_Ptr_t * Dar_ManChoiceSynthesis( Aig_Man_t * pAig, int fBalance, int fUpdateLevel, int fVerbose ) - //alias resyn "b; rw; rwz; b; rwz; b" - //alias resyn2 "b; rw; rf; b; rw; rwz; b; rfz; rwz; b" -@@ -311,6 +317,7 @@ Vec_Ptr_t * Dar_ManChoiceSynthesis( Aig_Man_t * pAig, int fBalance, int fUpdateL - Vec_PtrPush( vAigs, pAig ); - return vAigs; - } -+#endif - - /**Function************************************************************* - -diff --git a/src/extlib-abc/aig/kit/kitAig.c b/src/extlib-abc/aig/kit/kitAig.c -index de301f2..7e5df0f 100644 ---- a/src/extlib-abc/aig/kit/kitAig.c -+++ b/src/extlib-abc/aig/kit/kitAig.c -@@ -95,6 +95,7 @@ Aig_Obj_t * Kit_GraphToAig( Aig_Man_t * pMan, Aig_Obj_t ** pFanins, Kit_Graph_t - SeeAlso [] - - ***********************************************************************/ -+#if 0 - Aig_Obj_t * Kit_TruthToAig( Aig_Man_t * pMan, Aig_Obj_t ** pFanins, unsigned * pTruth, int nVars, Vec_Int_t * vMemory ) - { - Aig_Obj_t * pObj; -@@ -113,6 +114,7 @@ Aig_Obj_t * Kit_TruthToAig( Aig_Man_t * pMan, Aig_Obj_t ** pFanins, unsigned * p - Kit_GraphFree( pGraph ); - return pObj; - } -+#endif - - //////////////////////////////////////////////////////////////////////// - /// END OF FILE /// -diff --git a/src/extlib-abc/aig/kit/kitGraph.c b/src/extlib-abc/aig/kit/kitGraph.c -index 39ef587..0485c66 100644 ---- a/src/extlib-abc/aig/kit/kitGraph.c -+++ b/src/extlib-abc/aig/kit/kitGraph.c -@@ -349,6 +349,7 @@ unsigned Kit_GraphToTruth( Kit_Graph_t * pGraph ) - SeeAlso [] - - ***********************************************************************/ -+#if 0 - Kit_Graph_t * Kit_TruthToGraph( unsigned * pTruth, int nVars, Vec_Int_t * vMemory ) - { - Kit_Graph_t * pGraph; -@@ -365,6 +366,7 @@ Kit_Graph_t * Kit_TruthToGraph( unsigned * pTruth, int nVars, Vec_Int_t * vMemor - pGraph = Kit_SopFactor( vMemory, RetValue, nVars, vMemory ); - return pGraph; - } -+#endif - - /**Function************************************************************* - diff --git a/pkgs/applications/video/kodi/plugins.nix b/pkgs/applications/video/kodi/plugins.nix index 41298269a184..8228c2c6cd92 100644 --- a/pkgs/applications/video/kodi/plugins.nix +++ b/pkgs/applications/video/kodi/plugins.nix @@ -1,5 +1,6 @@ { stdenv, fetchurl, fetchFromGitHub, fetchpatch, lib -, unzip, cmake, kodi, steam, libcec_platform, tinyxml }: +, unzip, cmake, kodi, steam, libcec_platform, tinyxml +, jsoncpp, libhdhomerun }: let @@ -265,4 +266,37 @@ in ln -s $out/lib/addons/pvr.hts/pvr.hts.so* $out/share/kodi/addons/pvr.hts ''; }; + + pvr-hdhomerun = (mkKodiPlugin rec { + plugin = "pvr-hdhomerun"; + namespace = "pvr.hdhomerun"; + version = "2.4.7"; + + src = fetchFromGitHub { + owner = "kodi-pvr"; + repo = "pvr.hdhomerun"; + rev = "60d89d16dd953d38947e8a6da2f8bb84a0f764ef"; + sha256 = "0dvdv0vk2q12nj0i5h51iaypy3i7jfsxjyxwwpxfy82y8260ragy"; + }; + + meta = with stdenv.lib; { + homepage = https://github.com/kodi-pvr/pvr.hdhomerun; + description = "Kodi's HDHomeRun PVR client addon"; + platforms = platforms.all; + maintainers = with maintainers; [ titanous ]; + }; + }).override { + buildInputs = [ cmake jsoncpp libhdhomerun kodi libcec_platform kodi-platform ]; + + # disables check ensuring install prefix is that of kodi + cmakeFlags = [ "-DOVERRIDE_PATHS=1" ]; + + # kodi checks for plugin .so libs existance in the addon folder (share/...) + # and the non-wrapped kodi lib/... folder before even trying to dlopen + # them. Symlinking .so, as setting LD_LIBRARY_PATH is of no use + installPhase = '' + make install + ln -s $out/lib/addons/pvr.hdhomerun/pvr.hdhomerun.so* $out/share/kodi/addons/pvr.hdhomerun + ''; + }; } diff --git a/pkgs/applications/video/obs-studio/default.nix b/pkgs/applications/video/obs-studio/default.nix index fb3434e74587..f7037ee668c7 100644 --- a/pkgs/applications/video/obs-studio/default.nix +++ b/pkgs/applications/video/obs-studio/default.nix @@ -26,13 +26,13 @@ let optional = stdenv.lib.optional; in stdenv.mkDerivation rec { name = "obs-studio-${version}"; - version = "18.0.2"; + version = "19.0.2"; src = fetchFromGitHub { owner = "jp9000"; repo = "obs-studio"; - rev = "2bf9d548"; - sha256 = "036l29m3dlqadvaazj0nmgi2lcji8zckdvx3gjrx1kp96yd5myqd"; + rev = "${version}"; + sha256 = "0sawpk2yr52frdm4pkvahc11i1s1jlm7i07crhkxa8342sdc70ab"; }; patches = [ ./find-xcb.patch ]; diff --git a/pkgs/applications/virtualization/virt-manager/qt.nix b/pkgs/applications/virtualization/virt-manager/qt.nix index 25a70ee9bce3..7e05324a046b 100644 --- a/pkgs/applications/virtualization/virt-manager/qt.nix +++ b/pkgs/applications/virtualization/virt-manager/qt.nix @@ -5,13 +5,13 @@ stdenv.mkDerivation rec { name = "virt-manager-qt-${version}"; - version = "0.43.70"; + version = "0.43.70.2"; src = fetchFromGitHub { owner = "F1ash"; repo = "qt-virt-manager"; rev = "${version}"; - sha256 = "0d8g0pg15cyi450qgkgi7fh83wkxcqfpphgsh5q10r6jjl87166x"; + sha256 = "06123bywzgs5y2yskqm8qypj9diym5xip2bdlghfhw30957pcxxg"; }; cmakeFlags = [ |