Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
160 commits
Select commit Hold shift + click to select a range
5ff872a
substituteStream(): print warning if nothing done
volth Feb 23, 2018
bde9909
Revert "Revert "patch-shebangs: respect cross compilation""
matthewbauer Oct 31, 2018
eb7c50a
patch-shebangs: use --build for auto patch shebangs
matthewbauer Oct 31, 2018
2f2e635
darwin/stdenv: bash is a build input
matthewbauer Oct 31, 2018
e1baed0
Merge staging-next into staging
FRidh Nov 3, 2018
c55fa1e
Merge branch 'master' into staging
thoughtpolice Nov 4, 2018
b95b7e4
Merge staging-next into staging
FRidh Nov 4, 2018
be39781
Merge branch 'master' into staging
thoughtpolice Nov 4, 2018
48caae5
Merge remote-tracking branch 'upstream/master' into HEAD
Ericson2314 Nov 5, 2018
320c9c1
make-derivation: use pname-version as default name if both are present
Synthetica9 Jun 6, 2018
b0e9fc1
treewide: Fix packages using name where they should use pname
Synthetica9 Nov 4, 2018
9ec40cc
treewide: Fix overrides having wrong versions
Synthetica9 Nov 4, 2018
f54f5fd
treewide: various version number fixes
Synthetica9 Nov 4, 2018
0e381e0
arm-trusted-firmware: correctly handle version overrides
Synthetica9 Nov 4, 2018
914392c
modem-manager: don't define inconsistent pname
Synthetica9 Nov 4, 2018
1c69e58
treewide: use unstable-date instead of hash as version
Synthetica9 Nov 4, 2018
a3042c9
salut-a-toi: don't define name and pname as incompatible things
Synthetica9 Nov 4, 2018
0d7c994
fetchegg: add version to derivation
Synthetica9 Nov 4, 2018
2449bd2
hex: correct version handling
Synthetica9 Nov 4, 2018
e2ea057
enhanced-ctorrent: follow versioning guidelines
Synthetica9 Nov 4, 2018
2224d42
metaphone: don't use capital for pname
Synthetica9 Nov 4, 2018
d2e6608
sphinx: don't use capital for pname
Synthetica9 Nov 4, 2018
1e99582
treewide: for substituteAll: s/version/version_/
Synthetica9 Nov 4, 2018
cef08f1
remmina: use pname instead of name
zimbatm Nov 5, 2018
c63d353
vcv-rack, opkowa: pname-version fixes
Synthetica9 Nov 5, 2018
4319244
oneko: switch around version and vname
Synthetica9 Nov 4, 2018
b6f86df
bookworm: fix rev
Synthetica9 Nov 5, 2018
ace631b
gnupg22: 2.2.10 -> 2.2.11
lsix Nov 6, 2018
424c38b
Merge pull request #49769 from Synthetica9/implement-rfc0035-II
Mic92 Nov 6, 2018
f485b2e
ncurses: upgrade from 6.1 -> 6.1-20181027
andrew-d Nov 7, 2018
3137c60
libtiff: 4.0.9 -> 2018-11-04
andrew-d Nov 7, 2018
c8aff96
Merge pull request #49608 from matthewbauer/cross-patch-shebangs-2
matthewbauer Nov 7, 2018
4b0d441
rustc: build with system llvm and jemalloc
symphorien Oct 30, 2018
973eca7
rustc: fix build with unbundled jemalloc and llvm on darwin
symphorien Nov 8, 2018
d836c6a
libopus: 1.2.1 -> 1.3
r-ryantm Oct 27, 2018
5d37d63
postgresql_9_3: 9.3.24 -> 9.3.25
lsix Nov 8, 2018
882c3b5
postgresql_9_4: 9.4.19 -> 9.4.20
lsix Nov 8, 2018
f703ea6
postgresql_9_5: 9.5.14 -> 9.5.15
lsix Nov 8, 2018
1670fd1
postgresql_9_6: 9.6.10 -> 9.6.11
lsix Nov 8, 2018
575151e
postgresql_10: 10.5 -> 10.6
lsix Nov 8, 2018
3cbc20e
postgresql_11: 11.0 -> 11.1
lsix Nov 8, 2018
a4f94bd
pythonPackages.prettytable: 0.7.1 -> 0.7.2
asymmetric Nov 3, 2018
31e7c15
nasm: 2.13.03 -> 2.14
r-ryantm Nov 9, 2018
934e489
rust: 1.30.0 -> 1.30.1
alyssais Nov 9, 2018
1699401
libuv: 1.23.1 -> 1.23.2
r-ryantm Nov 9, 2018
d4cf840
Merge pull request #50044 from r-ryantm/auto-update/libuv
infinisil Nov 9, 2018
a94dfe9
libmicrohttpd: 0.9.59 -> 0.9.60
r-ryantm Nov 9, 2018
ea6d48d
help2man: 1.47.7 -> 1.47.8
r-ryantm Nov 10, 2018
cc1bcd7
gnu-efi: 3.0.8 -> 3.0.9 (#50097)
r-ryantm Nov 10, 2018
e6985db
gdbm: 1.18 -> 1.18.1
r-ryantm Nov 10, 2018
058e787
fluidsynth: 1.1.11 -> 2.0.1
r-ryantm Nov 10, 2018
f2d2a8f
Merge pull request #49860 from andrew-d/andrew/upgrade-libtiff
Mic92 Nov 10, 2018
904ae0b
dnsmasq: 2.79 -> 2.80
r-ryantm Nov 10, 2018
7792a38
Merge pull request #50160 from r-ryantm/auto-update/dnsmasq
Mic92 Nov 10, 2018
acf75db
ethtool: 4.18 -> 4.19 (#50117)
r-ryantm Nov 10, 2018
56f0c3c
Merge pull request #50129 from r-ryantm/auto-update/fluidsynth
Mic92 Nov 10, 2018
8e24ea9
apacheHttpd: 2.4.35 -> 2.4.37
r-ryantm Nov 10, 2018
37cc6d9
Merge pull request #50124 from r-ryantm/auto-update/gdbm
Mic92 Nov 10, 2018
4d17eb4
Merge pull request #50193 from r-ryantm/auto-update/apache-httpd
peti Nov 10, 2018
734bd4c
go_1_11: 1.11 -> 1.11.2f
offlinehacker Nov 10, 2018
fb8067b
Merge pull request #50066 from r-ryantm/auto-update/libmicrohttpd
infinisil Nov 11, 2018
5955c51
Merge pull request #49675 from asymmetric/pt
infinisil Nov 11, 2018
1d3bff2
Merge staging-next into staging
FRidh Nov 11, 2018
9531a32
make-wrapper should use runtimeShell, not bash, for cross-compilation
tathougies Nov 11, 2018
3fd80c6
Merge pull request #49557 from symphorien/rust-system-libs
Mic92 Nov 12, 2018
3b05240
Merge staging-next into staging
FRidh Nov 12, 2018
f19bb83
Merge pull request #35304 from volth/patch-97
matthewbauer Nov 12, 2018
08d98b2
linux: enable CGROUP_HUGETLB, CGROUP_PERF, CGROUP_RDMA (#50225)
orivej Nov 13, 2018
76c956b
treewide: disable pie in more places
matthewbauer Nov 10, 2018
340dd80
meson: 0.46.1 → 0.48.2
jtojnar Sep 2, 2018
8a923c9
glib-networking: add python3 for install script
jtojnar Sep 3, 2018
08db7cf
gnome3.gnome-settings-daemon: add python3 for install script
jtojnar Sep 3, 2018
5c5736e
gnome3.gnome-bluetooth: add python3 for install script
jtojnar Sep 3, 2018
63ab92c
gnome3.gnome-session: add python3 for install script
jtojnar Sep 3, 2018
68606d5
gst_all_1.gst-plugins-base: add python3 for install script
jtojnar Sep 3, 2018
0217c29
gst_all_1.gst-plugins-bad: add python3 for install script
jtojnar Sep 3, 2018
a5af84e
libinput: add python3 for install script
jtojnar Sep 3, 2018
927a82d
libratbag: fix meson/python compatibility
jtojnar Sep 25, 2018
79faee1
Merge pull request #50295 from matthewbauer/pie
matthewbauer Nov 13, 2018
b26151d
Merge pull request #50094 from r-ryantm/auto-update/help2man
pSub Nov 13, 2018
ced37f7
Merge pull request #50020 from r-ryantm/auto-update/nasm
pSub Nov 13, 2018
40f8dce
SDL2: enable parallel building
gnidorah Nov 13, 2018
f9a6963
Merge pull request #50244 from tathougies/travis/wrap-correctly
matthewbauer Nov 13, 2018
c74bca5
Merge pull request #50318 from gnidorah/sdl2
cpages Nov 13, 2018
8582a82
Merge pull request #49906 from lsix/update_postgresql
c0bw3b Nov 14, 2018
9e39329
Merge pull request #50006 from alyssais/rust-1.30.1
Mic92 Nov 14, 2018
64c4cc3
Merge pull request #49859 from andrew-d/andrew/upgrade-ncurses
c0bw3b Nov 14, 2018
25fafd2
Revert "darwin/stdenv: bash is a build input"
LnL7 Nov 14, 2018
c9223a1
Revert "patch-shebangs: use --build for auto patch shebangs"
LnL7 Nov 14, 2018
bdec3ed
Revert "Revert "Revert "patch-shebangs: respect cross compilation"""
LnL7 Nov 14, 2018
e5deb04
libpng: 1.6.34 -> 1.6.35
andir Nov 14, 2018
376f4b9
nss: 3.39 -> 3.40
andir Nov 14, 2018
002c411
libva: 2.1.0 -> 2.3.0
dtzWill Oct 30, 2018
8b2c757
libva-utils: bump hash to match new version (inherit's from libva)
dtzWill Oct 30, 2018
ae2f950
vaapiIntel: bump to 2.2.0, don't force using matching version w/libva
dtzWill Oct 30, 2018
bd54a28
intel-gpu-tools: add 'peg' dep for overlay
dtzWill Oct 30, 2018
12bd5dc
libinput: 1.12.2 -> 1.23.3
dtzWill Nov 7, 2018
cb2a3bc
Merge pull request #49493 from dtzWill/update/libva-and-friends-2.3.0…
zimbatm Nov 15, 2018
95fa7b6
libarchive: 3.3.2 -> 3.3.3
periklis Nov 1, 2018
8684ef1
hdf5: 1.10.3 -> 1.10.4 (#50100)
r-ryantm Nov 15, 2018
b76d11e
bison: 3.1 -> 3.2.1 (#49454)
dtzWill Nov 15, 2018
064f35f
x265: 2.7 -> 2.9
Oct 31, 2018
361d04b
Merge pull request #49831 from lsix/update_gnupg22
dywedir Nov 15, 2018
b82a493
Merge pull request #50362 from c0bw3b/pkg/x265
c0bw3b Nov 15, 2018
d690cce
utillinux: 2.32.1 -> 2.33
dtzWill Nov 6, 2018
471f1be
gdb: 8.1.1 -> 8.2 (#50444)
orivej Nov 16, 2018
d53c0a7
pythonPackages.cython: don't test codestyle (#50432)
timokau Nov 16, 2018
0c7b157
sqlite: 3.24.0 -> 3.25.0
dtzWill Sep 18, 2018
daf738f
sqlite: 3.25.0 -> 3.25.1
dtzWill Sep 19, 2018
2e27401
sqlite: 3.25.1 -> 3.25.2
dtzWill Sep 26, 2018
6f0c65e
sqlite: 3.25.2 -> 3.25.3
dtzWill Nov 6, 2018
b8229dd
pythonPackages.sqlalchemy: 1.2.12 -> 1.2.13
dtzWill Nov 6, 2018
aceb110
retdec: bump yaramod dep to fix 2/bison 3.2+
dtzWill Nov 16, 2018
6b490ee
mesa: 18.2.4 -> 18.2.5
dtzWill Nov 15, 2018
1adaa6a
Merge pull request #50458 from dtzWill/fix/retdec-yaramod-bison-3.2
Mic92 Nov 16, 2018
e15bac8
Merge pull request #50374 from andir/ffx-staging
andir Nov 16, 2018
551aecf
tmpdir audit: only fail with files referenced below (#35068)
zimbatm Nov 16, 2018
0a085d5
sudo: 1.8.25p1 -> 1.8.26 (#50422)
dtzWill Nov 16, 2018
0d0d7dc
Merge staging-next into staging
FRidh Nov 18, 2018
c79d621
remmina: 1.2.32 -> 1.2.32.1
r-ryantm Nov 18, 2018
60ba7d2
pythonPackages.requests: disable multiple outputs
oxij Sep 6, 2018
607c6e7
kodiPlugins.simpleplugin: init at 2.3.2
oxij Sep 6, 2018
e220331
kodiPlugins.yatp: init at 3.3.2
oxij Sep 6, 2018
f78835e
kodiPlugins.exodus: remove
oxij Sep 8, 2018
e354db0
Merge branch 'staging' into auto-update/remmina
Mic92 Nov 18, 2018
ec754cd
Merge pull request #50571 from r-ryantm/auto-update/remmina
ryantm Nov 18, 2018
85bd2a7
Merge pull request #46020 from jtojnar/meson-0.47
jtojnar Nov 18, 2018
e6f4f0e
libgcrypt: pass --with-libgpg-error-prefix
matthewbauer Nov 19, 2018
2c1d3a9
Merge remote-tracking branch 'upstream/master' into staging
matthewbauer Nov 19, 2018
dfa36ed
50629.cross compile libksba (#50649)
exarkun Nov 19, 2018
9c83354
nasm: 2.13.03 -> 2.14
r-ryantm Nov 19, 2018
095c00b
eigen: replace with eigen3_3: 3.2.10 -> 3.3.5
orivej Nov 18, 2018
4b3b908
libmicrohttpd: 0.9.59 -> 0.9.60
r-ryantm Nov 19, 2018
7a48c7c
meson: remove obsolete and blocking patch
hedning Nov 19, 2018
dabc125
Merge pull request #50710 from hedning/remove-obsolete-meson-patch
jtojnar Nov 19, 2018
0c0a243
Merge pull request #50702 from orivej/eigen
7c6f434c Nov 19, 2018
82e2e90
help2man: 1.47.7 -> 1.47.8
r-ryantm Nov 19, 2018
44d9141
hunspell: 1.6.2 -> 1.7.0
r-ryantm Nov 19, 2018
99c1efa
Merge pull request #46852 from dtzWill/update/sqlite-3.25
andir Nov 19, 2018
42b9c0d
Merge pull request #50708 from r-ryantm/auto-update/libmicrohttpd
infinisil Nov 19, 2018
75a2698
Merge pull request #50736 from r-ryantm/auto-update/hunspell
Fuuzetsu Nov 20, 2018
101862b
Merge pull request #50678 from r-ryantm/auto-update/nasm
pSub Nov 20, 2018
ab9a7f9
Merge pull request #50729 from r-ryantm/auto-update/help2man
pSub Nov 20, 2018
aabf1a9
Merge staging-next into staging
FRidh Nov 20, 2018
3357b3e
Merge staging into staging-next
FRidh Nov 20, 2018
7013756
Merge master into staging-next
FRidh Nov 21, 2018
0470591
python.pkgs.metaphone: fix pname
FRidh Nov 21, 2018
9dd56a9
python.pkgs.sphinx: fix pname
FRidh Nov 21, 2018
16267b4
enchant: 1.6.0 -> 1.6.1
hedning Nov 21, 2018
c31cb57
Merge master into staging-next
FRidh Nov 22, 2018
90720d0
curl: cherry-pick upstream patch for ipv6 url parsing
delroth Nov 22, 2018
e41154d
Merge master into staging-next
FRidh Nov 24, 2018
a5de78b
Merge branch 'master' into staging-next
vcunat Nov 26, 2018
a067e88
valgrind: Apply upstream patch for Makefile race in coregrind
srhb Nov 27, 2018
ac3b358
libtiff: 2018-11-04 -> 4.0.10
andrew-d Nov 27, 2018
9caab8f
Merge pull request #51107 from srhb/valgrind-coregrind-makefile-race
srhb Nov 28, 2018
9db2421
Merge master into staging-next
FRidh Nov 29, 2018
70f5d64
brave: version is just 0.56.15
c0bw3b Nov 29, 2018
1828a5c
Merge master into staging-next
FRidh Nov 30, 2018
28e2277
make-derivation: remove selfConsistent check
matthewbauer Nov 28, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions lib/strings.nix
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,26 @@ rec {
in lenContent >= lenSuffix &&
substring (lenContent - lenSuffix) lenContent content == suffix;

/* Determine whether a string contains the given infix

Type: hasInfix :: string -> string -> bool

Example:
hasInfix "bc" "abcd"
=> true
hasInfix "ab" "abcd"
=> true
hasInfix "cd" "abcd"
=> true
hasInfix "foo" "abcd"
=> false
*/
hasInfix = infix: content:
let
drop = x: substring 1 (stringLength x) x;
in hasPrefix infix content
|| content != "" && hasInfix infix (drop content);

/* Convert a string to a list of characters (i.e. singleton strings).
This allows you to, e.g., map a function over each character. However,
note that this will likely be horribly inefficient; Nix is not a
Expand Down
4 changes: 2 additions & 2 deletions pkgs/applications/altcoins/mist.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

let
version = "0.11.1";
name = "mist";
pname = "mist";

throwSystem = throw "Unsupported system: ${stdenv.hostPlatform.system}";

Expand All @@ -26,7 +26,7 @@ let
};

mist = stdenv.lib.appendToName "unwrapped" (stdenv.mkDerivation {
inherit name version meta;
inherit pname version meta;

src = {
i686-linux = fetchurl {
Expand Down
2 changes: 1 addition & 1 deletion pkgs/applications/audio/cadence/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

stdenv.mkDerivation rec {
version = "0.9.0";
name = "cadence";
pname = "cadence";

src = fetchzip {
url = "https://github.com/falkTX/Cadence/archive/v${version}.tar.gz";
Expand Down
4 changes: 2 additions & 2 deletions pkgs/applications/audio/fluidsynth/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@

stdenv.mkDerivation rec {
name = "fluidsynth-${version}";
version = "1.1.11";
version = "2.0.1";

src = fetchFromGitHub {
owner = "FluidSynth";
repo = "fluidsynth";
rev = "v${version}";
sha256 = "0n75jq3xgq46hfmjkaaxz3gic77shs4fzajq40c8gk043i84xbdh";
sha256 = "1mqyym5qkh8xd1rqj3yhfxbw5dxjcrljb6nkfqzvcarlv4h6rjn7";
};

nativeBuildInputs = [ pkgconfig cmake ];
Expand Down
5 changes: 3 additions & 2 deletions pkgs/applications/audio/vcv-rack/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
, libzip, rtaudio, rtmidi, speex }:

let
glfw-git = glfw.overrideAttrs (oldAttrs: {
name = "glfw-git-20180529";
glfw-git = glfw.overrideAttrs (oldAttrs: rec {
name = "glfw-git-${version}";
version = "unstable-2018-05-29";
src = fetchFromGitHub {
owner = "glfw";
repo = "glfw";
Expand Down
2 changes: 1 addition & 1 deletion pkgs/applications/graphics/vimiv/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
}:

python3Packages.buildPythonApplication rec {
name = "vimiv";
pname = "vimiv";
version = "0.7.3";

src = fetchFromGitHub {
Expand Down
1 change: 1 addition & 0 deletions pkgs/applications/misc/k2pdfopt/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ stdenv.mkDerivation rec {
let
mupdf_modded = mupdf.overrideAttrs (attrs: {
name = "mupdf-1.10a";
version = "1.10a";
src = fetchurl {
url = "https://mupdf.com/downloads/archive/mupdf-1.10a-source.tar.gz";
sha256 = "0dm8wcs8i29aibzkqkrn8kcnk4q0kd1v66pg48h5c3qqp4v1zk5a";
Expand Down
2 changes: 1 addition & 1 deletion pkgs/applications/misc/omegat.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

stdenv.mkDerivation rec {
version = "4.1.5.2";
name = "omegat";
pname = "omegat";

src = fetchurl { # their zip has repeated files or something, so no fetchzip
url = mirror://sourceforge/project/omegat/OmegaT%20-%20Latest/OmegaT%204.1.5%20update%202/OmegaT_4.1.5_02_Beta_Without_JRE.zip;
Expand Down
8 changes: 4 additions & 4 deletions pkgs/applications/misc/oneko/default.nix
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{ stdenv, fetchurl, imake, gccmakedep, xlibsWrapper }:

stdenv.mkDerivation rec {
version = "1.2.sakura.5";
vname = "1.2.5";
name = "oneko-${vname}";
version_name = "1.2.sakura.5";
version = "1.2.5";
name = "oneko-${version}";
src = fetchurl {
url = "http://www.daidouji.com/oneko/distfiles/oneko-${version}.tar.gz";
url = "http://www.daidouji.com/oneko/distfiles/oneko-${version_name}.tar.gz";
sha256 = "2c2e05f1241e9b76f54475b5577cd4fb6670de058218d04a741a04ebd4a2b22f";
};
nativeBuildInputs = [ imake gccmakedep ];
Expand Down
2 changes: 1 addition & 1 deletion pkgs/applications/networking/browsers/brave/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ let rpath = lib.makeLibraryPath [


in stdenv.mkDerivation rec {
name = "brave-${version}";
pname = "brave";
version = "0.56.15";

src = fetchurl {
Expand Down
4 changes: 2 additions & 2 deletions pkgs/applications/networking/enhanced-ctorrent/default.nix
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{ stdenv, fetchurl, fetchpatch }:

stdenv.mkDerivation rec {
version = "dnh3.3.2";
name = "enhanced-ctorrent";
version = "3.3.2";
pname = "enhanced-ctorrent-dhn";

src = fetchurl {
url = "http://www.rahul.net/dholmes/ctorrent/ctorrent-dnh3.3.2.tar.gz";
Expand Down
4 changes: 2 additions & 2 deletions pkgs/applications/networking/flent/http-getter.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
, curl, pkgconfig }:

stdenv.mkDerivation rec {
name = "http-getter";
version = "20180606";
pname = "http-getter";
version = "unstable-2018-06-06";

src = fetchFromGitHub {
owner = "tohojo";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,11 @@ let

in
stdenv.mkDerivation rec {
name = "salut-a-toi-${version}";
pname = "salut-a-toi";
version = "0.6.1";
pname = "sat-${version}";

src = fetchurl {
url = "ftp://ftp.goffi.org/sat/${pname}.tar.bz2";
url = "ftp://ftp.goffi.org/sat/sat-${version}.tar.bz2";
sha256 = "0kn9403n8fpzl0hsb9kkzicsmzq2fjl627l31yykbqzc4nsr780d";
};

Expand Down
6 changes: 3 additions & 3 deletions pkgs/applications/networking/remote/remmina/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@
with stdenv.lib;

stdenv.mkDerivation rec {
name = "remmina-${version}";
version = "1.2.32";
pname = "remmina";
version = "1.2.32.1";

src = fetchFromGitLab {
owner = "Remmina";
repo = "Remmina";
rev = "v${version}";
sha256 = "15szv1xs6drxq6qyksmxcfdz516ja4zm52r4yf6hwij3fgl8qdpw";
sha256 = "1b77gs68j5j4nlv69vl81d0kp2623ysvshq7495y6hq5wgi5l3gc";
};

nativeBuildInputs = [ cmake ninja pkgconfig wrapGAppsHook ];
Expand Down
2 changes: 0 additions & 2 deletions pkgs/applications/office/bookworm/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ stdenv.mkDerivation rec {
pname = "bookworm";
version = "unstable-2018-11-19";

name = "${pname}-${version}";

src = fetchFromGitHub {
owner = "babluboy";
repo = pname;
Expand Down
1 change: 1 addition & 0 deletions pkgs/applications/science/misc/sasview/xhtml2pdf.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
let
#xhtml2pdf specifically requires version "1.0b10" of html5lib
html5 = html5lib.overrideAttrs( oldAttrs: rec{
name = "${oldAttrs.pname}-${version}";
version = "1.0b10";
src = oldAttrs.src.override {
inherit version;
Expand Down
69 changes: 48 additions & 21 deletions pkgs/applications/video/kodi/plugins.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{ stdenv, callPackage, fetchurl, fetchFromGitHub, unzip
, cmake, kodiPlain, libcec_platform, tinyxml
, steam, libusb, pcre-cpp, jsoncpp, libhdhomerun, zlib }:
, steam, libusb, pcre-cpp, jsoncpp, libhdhomerun, zlib
, python2Packages }:

with stdenv.lib;

Expand Down Expand Up @@ -180,26 +181,6 @@ let self = rec {
// (mkController "ps")
// (mkController "snes");

exodus = mkKodiPlugin rec {

plugin = "exodus";
namespace = "plugin.video.exodus";
version = "3.1.13";

src = fetchurl {
url = "https://offshoregit.com/${plugin}/${namespace}/${namespace}-${version}.zip";
sha256 = "1zyay7cinljxmpzngzlrr4pnk2a7z9wwfdcsk6a4p416iglyggdj";
};

buildInputs = [ unzip ];

meta = {
description = "A streaming plugin for Kodi";
platforms = platforms.all;
maintainers = with maintainers; [ edwtjo ];
};
};

hyper-launcher = let
pname = "hyper-launcher";
version = "1.5.2";
Expand Down Expand Up @@ -251,6 +232,25 @@ let self = rec {

};

simpleplugin = mkKodiPlugin rec {
plugin = "simpleplugin";
namespace = "script.module.simpleplugin";
version = "2.3.2";

src = fetchFromGitHub {
owner = "romanvm";
repo = namespace;
rev = "v.${version}";
sha256 = "0myar8dqjigb75pcc8zx3i5z79p1ifgphgb82s5syqywk0zaxm3j";
};

meta = {
homepage = src.meta.homepage;
description = "Simpleplugin API";
license = licenses.gpl3;
};
};

svtplay = mkKodiPlugin rec {

plugin = "svtplay";
Expand Down Expand Up @@ -443,4 +443,31 @@ let self = rec {
};
};

yatp = python2Packages.toPythonModule (mkKodiPlugin rec {
plugin = "yatp";
namespace = "plugin.video.yatp";
version = "3.3.2";

src = fetchFromGitHub {
owner = "romanvm";
repo = "kodi.yatp";
rev = "v.${version}";
sha256 = "12g1f57sx7dy6wy7ljl7siz2qs1kxcmijcg7xx2xpvmq61x9qa2d";
};

patches = [ ./yatp/dont-monkey.patch ];

propagatedBuildInputs = [
simpleplugin
python2Packages.requests
python2Packages.libtorrentRasterbar
];

meta = {
homepage = src.meta.homepage;
description = "Yet Another Torrent Player: libtorrent-based torrent streaming for Kodi";
license = licenses.gpl3;
};
});

}; in self
29 changes: 29 additions & 0 deletions pkgs/applications/video/kodi/yatp/dont-monkey.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
diff --git a/plugin.video.yatp/server.py b/plugin.video.yatp/server.py
index 1adcbb5..488b72c 100644
--- a/plugin.video.yatp/server.py
+++ b/plugin.video.yatp/server.py
@@ -20,24 +20,8 @@ addon = Addon()
_ = addon.initialize_gettext()
addon.log_notice('Starting Torrent Server...')

-# A monkey-patch to set the necessary librorrent version
-librorrent_addon = Addon('script.module.libtorrent')
-orig_custom_version = librorrent_addon.get_setting('custom_version', False)
-orig_set_version = librorrent_addon.get_setting('set_version', False)
-librorrent_addon.set_setting('custom_version', 'true')
-if addon.libtorrent_version == '1.0.9':
- librorrent_addon.set_setting('set_version', '4')
-elif addon.libtorrent_version == '1.1.0':
- librorrent_addon.set_setting('set_version', '5')
-elif addon.libtorrent_version == '1.1.1':
- librorrent_addon.set_setting('set_version', '6')
-else:
- librorrent_addon.set_setting('set_version', '0')
-
from libs.server import wsgi_app

-librorrent_addon.set_setting('custom_version', orig_custom_version)
-librorrent_addon.set_setting('set_version', orig_set_version)
# ======

if addon.enable_limits:
9 changes: 6 additions & 3 deletions pkgs/applications/virtualization/docker/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ rec {
} :
let
docker-runc = runc.overrideAttrs (oldAttrs: rec {
name = "docker-runc";
name = "docker-runc-${version}";
inherit version;
src = fetchFromGitHub {
owner = "docker";
repo = "runc";
Expand All @@ -28,7 +29,8 @@ rec {
});

docker-containerd = (containerd.override { inherit go; }).overrideAttrs (oldAttrs: rec {
name = "docker-containerd";
name = "docker-containerd-${version}";
inherit version;
src = fetchFromGitHub {
owner = "docker";
repo = "containerd";
Expand All @@ -42,7 +44,8 @@ rec {
});

docker-tini = tini.overrideAttrs (oldAttrs: rec {
name = "docker-init";
name = "docker-init-${version}";
inherit version;
src = fetchFromGitHub {
owner = "krallin";
repo = "tini";
Expand Down
2 changes: 1 addition & 1 deletion pkgs/build-support/fetchegg/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ if md5 != "" then
throw "fetchegg does not support md5 anymore, please use sha256"
else
stdenvNoCC.mkDerivation {
name = "chicken-${name}-export";
name = "chicken-${name}-export-${version}";
builder = ./builder.sh;
nativeBuildInputs = [ chicken ];

Expand Down
10 changes: 5 additions & 5 deletions pkgs/build-support/setup-hooks/audit-tmpdir.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,23 @@ auditTmpdir() {
local dir="$1"
[ -e "$dir" ] || return 0

header "checking for references to $TMPDIR in $dir..."
header "checking for references to $TMPDIR/ in $dir..."

local i
while IFS= read -r -d $'\0' i; do
if [[ "$i" =~ .build-id ]]; then continue; fi

if isELF "$i"; then
if patchelf --print-rpath "$i" | grep -q -F "$TMPDIR"; then
echo "RPATH of binary $i contains a forbidden reference to $TMPDIR"
if patchelf --print-rpath "$i" | grep -q -F "$TMPDIR/"; then
echo "RPATH of binary $i contains a forbidden reference to $TMPDIR/"
exit 1
fi
fi

if isScript "$i"; then
if [ -e "$(dirname "$i")/.$(basename "$i")-wrapped" ]; then
if grep -q -F "$TMPDIR" "$i"; then
echo "wrapper script $i contains a forbidden reference to $TMPDIR"
if grep -q -F "$TMPDIR/" "$i"; then
echo "wrapper script $i contains a forbidden reference to $TMPDIR/"
exit 1
fi
fi
Expand Down
Loading