Merge pull request #112855 from SuperSandro2000/fix-collection10

master
Sandro 2021-02-12 21:16:00 +01:00 committed by GitHub
commit ecf06378f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
31 changed files with 157 additions and 210 deletions

View File

@ -40,5 +40,6 @@ mkDerivation rec {
license = licenses.gpl2Only; license = licenses.gpl2Only;
platforms = platforms.all; platforms = platforms.all;
maintainers = with maintainers; [ OPNA2608 ]; maintainers = with maintainers; [ OPNA2608 ];
broken = stdenv.isDarwin;
}; };
} }

View File

@ -1,7 +1,6 @@
{ lib, stdenv, fetchFromGitHub, cmake, ncurses, libpulseaudio, pkg-config }: { lib, stdenv, fetchFromGitHub, cmake, ncurses, libpulseaudio, pkg-config }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "ncpamixer"; pname = "ncpamixer";
version = "1.3.3.1"; version = "1.3.3.1";
@ -12,15 +11,12 @@ stdenv.mkDerivation rec {
sha256 = "1v3bz0vpgh18257hdnz3yvbnl51779g1h5b265zgc21ks7m1jw5z"; sha256 = "1v3bz0vpgh18257hdnz3yvbnl51779g1h5b265zgc21ks7m1jw5z";
}; };
buildInputs = [ ncurses libpulseaudio ];
nativeBuildInputs = [ cmake pkg-config ]; nativeBuildInputs = [ cmake pkg-config ];
configurePhase = '' buildInputs = [ ncurses libpulseaudio ];
make PREFIX=$out build/Makefile
'';
buildPhase = '' configurePhase = ''
make build make PREFIX=$out USE_WIDE=1 RELEASE=1 build/Makefile
''; '';
meta = with lib; { meta = with lib; {
@ -28,6 +24,6 @@ stdenv.mkDerivation rec {
homepage = "https://github.com/fulhax/ncpamixer"; homepage = "https://github.com/fulhax/ncpamixer";
license = licenses.mit; license = licenses.mit;
platforms = platforms.linux; platforms = platforms.linux;
maintainers = with maintainers; [ StijnDW ]; maintainers = with maintainers; [ StijnDW SuperSandro2000 ];
}; };
} }

View File

@ -1,12 +1,8 @@
{ lib, fetchFromGitHub, python3Packages, file, less, highlight { lib, fetchFromGitHub, python3Packages, file, less, highlight
, imagePreviewSupport ? true, w3m ? null}: , imagePreviewSupport ? true, w3m }:
with lib;
assert imagePreviewSupport -> w3m != null;
python3Packages.buildPythonApplication rec { python3Packages.buildPythonApplication rec {
name = "ranger-${version}"; pname = "ranger";
version = "1.9.3"; version = "1.9.3";
src = fetchFromGitHub { src = fetchFromGitHub {
@ -18,14 +14,10 @@ python3Packages.buildPythonApplication rec {
LC_ALL = "en_US.UTF-8"; LC_ALL = "en_US.UTF-8";
checkInputs = with python3Packages; [ pytest ]; checkInputs = with python3Packages; [ pytestCheckHook ];
propagatedBuildInputs = [ file ] propagatedBuildInputs = [ file ]
++ lib.optionals (imagePreviewSupport) [ python3Packages.pillow ]; ++ lib.optionals (imagePreviewSupport) [ python3Packages.pillow ];
checkPhase = ''
py.test tests
'';
preConfigure = '' preConfigure = ''
${lib.optionalString (highlight != null) '' ${lib.optionalString (highlight != null) ''
sed -i -e 's|^\s*highlight\b|${highlight}/bin/highlight|' \ sed -i -e 's|^\s*highlight\b|${highlight}/bin/highlight|' \
@ -45,7 +37,7 @@ python3Packages.buildPythonApplication rec {
# give file previews out of the box # give file previews out of the box
substituteInPlace ranger/config/rc.conf \ substituteInPlace ranger/config/rc.conf \
--replace "#set preview_script ~/.config/ranger/scope.sh" "set preview_script $out/share/doc/ranger/config/scope.sh" --replace "#set preview_script ~/.config/ranger/scope.sh" "set preview_script $out/share/doc/ranger/config/scope.sh"
'' + optionalString imagePreviewSupport '' '' + lib.optionalString imagePreviewSupport ''
substituteInPlace ranger/ext/img_display.py \ substituteInPlace ranger/ext/img_display.py \
--replace /usr/lib/w3m ${w3m}/libexec/w3m --replace /usr/lib/w3m ${w3m}/libexec/w3m
@ -57,8 +49,8 @@ python3Packages.buildPythonApplication rec {
meta = with lib; { meta = with lib; {
description = "File manager with minimalistic curses interface"; description = "File manager with minimalistic curses interface";
homepage = "http://ranger.github.io/"; homepage = "http://ranger.github.io/";
license = licenses.gpl3; license = licenses.gpl3Only;
platforms = platforms.unix; platforms = platforms.unix;
maintainers = [ maintainers.toonn maintainers.magnetophon ]; maintainers = with maintainers; [ toonn magnetophon ];
}; };
} }

View File

@ -22,7 +22,7 @@ python3Packages.buildPythonApplication rec {
meta = with lib; { meta = with lib; {
description = "Command-line tool to delete merged Git branches"; description = "Command-line tool to delete merged Git branches";
homepage = "https://pypi.org/project/git-delete-merged-branches/"; homepage = "https://pypi.org/project/git-delete-merged-branches/";
license = licenses.gpl3; license = licenses.gpl3Plus;
maintainers = with maintainers; [ SuperSandro2000 ]; maintainers = with maintainers; [ SuperSandro2000 ];
}; };
} }

View File

@ -1,11 +1,13 @@
{ lib, stdenv, fetchzip, unixtools, which }: { lib, stdenv, fetchFromGitHub, unixtools, which }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "git-extras"; pname = "git-extras";
version = "6.1.0"; version = "6.1.0";
src = fetchzip { src = fetchFromGitHub {
url = "https://github.com/tj/git-extras/archive/${version}.tar.gz"; owner = "tj";
repo = "git-extras";
rev = version;
sha256 = "12ff9rhgqd71xm72r385hx0h8g75hz0ag0adzqcwfa54k0lhrrrz"; sha256 = "12ff9rhgqd71xm72r385hx0h8g75hz0ag0adzqcwfa54k0lhrrrz";
}; };
@ -29,6 +31,6 @@ stdenv.mkDerivation rec {
description = "GIT utilities -- repo summary, repl, changelog population, author commit percentages and more"; description = "GIT utilities -- repo summary, repl, changelog population, author commit percentages and more";
license = licenses.mit; license = licenses.mit;
platforms = platforms.all; platforms = platforms.all;
maintainers = [ maintainers.spwhitt maintainers.cko ]; maintainers = with maintainers; [ spwhitt cko ];
}; };
} }

View File

@ -22,7 +22,7 @@ stdenv.mkDerivation rec {
# those files are inherently impure, we'll handle the corresponding dependencies. # those files are inherently impure, we'll handle the corresponding dependencies.
postPatch = '' postPatch = ''
rm -f contrib/config.make-* rm contrib/config.make-*
''; '';
enableParallelBuilding = true; enableParallelBuilding = true;
@ -50,7 +50,7 @@ stdenv.mkDerivation rec {
homepage = "https://jonas.github.io/tig/"; homepage = "https://jonas.github.io/tig/";
description = "Text-mode interface for git"; description = "Text-mode interface for git";
maintainers = with maintainers; [ bjornfor domenkozar qknight globin ]; maintainers = with maintainers; [ bjornfor domenkozar qknight globin ];
license = licenses.gpl2; license = licenses.gpl2Plus;
platforms = platforms.unix; platforms = platforms.unix;
}; };
} }

View File

@ -47,9 +47,8 @@ stdenv.mkDerivation rec {
gtkModule = "/lib/gtk-2.0/"; gtkModule = "/lib/gtk-2.0/";
}; };
meta = { meta = with lib; {
description = "An implementation of the XDG Sound Theme and Name Specifications"; description = "An implementation of the XDG Sound Theme and Name Specifications";
longDescription = '' longDescription = ''
libcanberra is an implementation of the XDG Sound Theme and Name libcanberra is an implementation of the XDG Sound Theme and Name
Specifications, for generating event sounds on free desktops Specifications, for generating event sounds on free desktops
@ -57,12 +56,12 @@ stdenv.mkDerivation rec {
PulseAudio, OSS, GStreamer, null) and is designed to be PulseAudio, OSS, GStreamer, null) and is designed to be
portable. portable.
''; '';
homepage = "http://0pointer.de/lennart/projects/libcanberra/"; homepage = "http://0pointer.de/lennart/projects/libcanberra/";
license = licenses.lgpl2Plus;
license = lib.licenses.lgpl2Plus;
maintainers = [ ]; maintainers = [ ];
platforms = lib.platforms.unix; platforms = platforms.unix;
# canberra-gtk-module.c:28:10: fatal error: 'gdk/gdkx.h' file not found
# #include <gdk/gdkx.h>
broken = stdenv.isDarwin;
}; };
} }

View File

@ -26,6 +26,9 @@ buildPythonPackage rec {
export SETUPTOOLS_SCM_PRETEND_VERSION="${realVersion}" export SETUPTOOLS_SCM_PRETEND_VERSION="${realVersion}"
''; '';
# no tests
doCheck = false;
meta = with lib; { meta = with lib; {
description = "Board and connector definitions for nMigen"; description = "Board and connector definitions for nMigen";
homepage = "https://github.com/nmigen/nmigen-boards"; homepage = "https://github.com/nmigen/nmigen-boards";

View File

@ -35,6 +35,9 @@ buildPythonPackage {
--replace "ctypes.util.find_library('exempi')" "'${exempi}/lib/libexempi${stdenv.hostPlatform.extensions.sharedLibrary}'" --replace "ctypes.util.find_library('exempi')" "'${exempi}/lib/libexempi${stdenv.hostPlatform.extensions.sharedLibrary}'"
''; '';
# hangs on darwin + sandbox
doCheck = !stdenv.isDarwin;
meta = with lib; { meta = with lib; {
homepage = "https://github.com/python-xmp-toolkit/python-xmp-toolkit"; homepage = "https://github.com/python-xmp-toolkit/python-xmp-toolkit";
description = "Python XMP Toolkit for working with metadata"; description = "Python XMP Toolkit for working with metadata";

View File

@ -15,10 +15,12 @@ buildPythonPackage rec {
propagatedBuildInputs = [ six ]; propagatedBuildInputs = [ six ];
# no tests
doCheck = false;
meta = with lib; { meta = with lib; {
description = "Python implementation of the Transmission bittorent client RPC protocol"; description = "Python implementation of the Transmission bittorent client RPC protocol";
homepage = "https://pypi.python.org/pypi/transmissionrpc/"; homepage = "https://pypi.python.org/pypi/transmissionrpc/";
license = licenses.mit; license = licenses.mit;
}; };
} }

View File

@ -3,16 +3,11 @@
, buildPythonPackage , buildPythonPackage
, fetchPypi , fetchPypi
, substituteAll , substituteAll
, pkgs
, argcomplete , argcomplete
, pyyaml , pyyaml
, xmltodict , xmltodict
# Test inputs
, coverage
, flake8
, jq , jq
, pytest , pytestCheckHook
, toml
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@ -27,12 +22,13 @@ buildPythonPackage rec {
patches = [ patches = [
(substituteAll { (substituteAll {
src = ./jq-path.patch; src = ./jq-path.patch;
jq = "${lib.getBin pkgs.jq}/bin/jq"; jq = "${lib.getBin jq}/bin/jq";
}) })
]; ];
postPatch = '' postPatch = ''
substituteInPlace test/test.py --replace "expect_exit_codes={0} if sys.stdin.isatty() else {2}" "expect_exit_codes={0}" substituteInPlace test/test.py \
--replace "expect_exit_codes={0} if sys.stdin.isatty() else {2}" "expect_exit_codes={0}"
''; '';
propagatedBuildInputs = [ propagatedBuildInputs = [
@ -41,16 +37,11 @@ buildPythonPackage rec {
argcomplete argcomplete
]; ];
doCheck = true;
checkInputs = [ checkInputs = [
pytest pytestCheckHook
coverage
flake8
toml
]; ];
checkPhase = "pytest ./test/test.py"; pytestFlagsArray = [ "test/test.py" ];
pythonImportsCheck = [ "yq" ]; pythonImportsCheck = [ "yq" ];
@ -59,7 +50,7 @@ buildPythonPackage rec {
meta = with lib; { meta = with lib; {
description = "Command-line YAML processor - jq wrapper for YAML documents"; description = "Command-line YAML processor - jq wrapper for YAML documents";
homepage = "https://github.com/kislyuk/yq"; homepage = "https://github.com/kislyuk/yq";
license = [ licenses.asl20 ]; license = licenses.asl20;
maintainers = [ maintainers.womfoo ]; maintainers = with maintainers; [ womfoo SuperSandro2000 ];
}; };
} }

View File

@ -1,20 +1,25 @@
{ lib, buildGoPackage, fetchFromGitHub }: { lib, buildGoModule, fetchFromGitHub, fetchpatch }:
buildGoPackage rec { buildGoModule rec {
pname = "gron"; pname = "gron";
version = "0.6.1"; version = "0.6.1";
owner = "tomnomnom";
repo = "gron";
goPackagePath = "github.com/${owner}/${repo}";
src = fetchFromGitHub { src = fetchFromGitHub {
inherit owner repo; owner = "tomnomnom";
repo = "gron";
rev = "v${version}"; rev = "v${version}";
sha256 = "0qmzawkhg0qn9kxxrssbdjni2khvamhrcklv3yxc0ljmh77mh61m"; sha256 = "0qmzawkhg0qn9kxxrssbdjni2khvamhrcklv3yxc0ljmh77mh61m";
}; };
goDeps = ./deps.nix; patches = [
(fetchpatch {
name = "fix-inconsistent-vendoring.patch";
url = "https://github.com/tomnomnom/gron/pull/85/commits/d549a6cb68ed0e0ec7cc81d8275353acfe218725.patch";
sha256 = "1461v4f7w6q75l3988br0g1ynfhzsh34z38pd2w8fp57vrgkcfi5";
})
];
vendorSha256 = "0va88c3rjlc2nbpqx4ila36rwrx57wcdhig4jp9q58vv4zqc2yxy";
meta = with lib; { meta = with lib; {
description = "Make JSON greppable!"; description = "Make JSON greppable!";
@ -26,7 +31,7 @@ buildGoPackage rec {
''; '';
homepage = "https://github.com/tomnomnom/gron"; homepage = "https://github.com/tomnomnom/gron";
license = licenses.mit; license = licenses.mit;
maintainers = [ maintainers.fgaz ]; maintainers = with maintainers; [ fgaz SuperSandro2000 ];
platforms = with platforms; linux ++ darwin; platforms = platforms.unix;
}; };
} }

View File

@ -1,57 +0,0 @@
[
rec {
owner = "fatih";
repo = "color";
goPackagePath = "github.com/${owner}/${repo}";
fetch = {
type = "git";
url = "https://github.com/${owner}/${repo}";
rev = "v1.7.0";
sha256 = "0v8msvg38r8d1iiq2i5r4xyfx0invhc941kjrsg5gzwvagv55inv";
};
}
rec {
owner = "nwidger";
repo = "jsoncolor";
goPackagePath = "github.com/${owner}/${repo}";
fetch = {
type = "git";
url = "https://github.com/${owner}/${repo}";
rev = "75a6de4340e59be95f0884b9cebdda246e0fdf40";
sha256 = "0aiv42xijrqgrxfx6pfyrndpwqv8i1qwsk190jdczyjxlnki2nki";
};
}
rec {
owner = "pkg";
repo = "errors";
goPackagePath = "github.com/${owner}/${repo}";
fetch = {
type = "git";
url = "https://github.com/${owner}/${repo}";
rev = "v0.8.0";
sha256 = "001i6n71ghp2l6kdl3qq1v2vmghcz3kicv9a5wgcihrzigm75pp5";
};
}
rec {
owner = "mattn";
repo = "go-colorable";
goPackagePath = "github.com/${owner}/${repo}";
fetch = {
type = "git";
url = "https://github.com/${owner}/${repo}";
rev = "v0.0.9";
sha256 = "1nwjmsppsjicr7anq8na6md7b1z84l9ppnlr045hhxjvbkqwalvx";
};
}
rec {
owner = "mattn";
repo = "go-isatty";
goPackagePath = "github.com/${owner}/${repo}";
fetch = {
type = "git";
url = "https://github.com/${owner}/${repo}";
rev = "v0.0.4";
sha256 = "0zs92j2cqaw9j8qx1sdxpv3ap0rgbs0vrvi72m40mg8aa36gd39w";
};
}
]

View File

@ -1,4 +1,4 @@
{ lib, stdenv, fetchFromGitHub, rustPlatform, libiconv, darwin }: { lib, stdenv, fetchFromGitHub, rustPlatform, libiconv, Security }:
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "tokei"; pname = "tokei";
@ -14,7 +14,7 @@ rustPlatform.buildRustPackage rec {
cargoSha256 = "sha256-iUDc54E8AiLMJw9h99kg/3VmaSi8GqfQyrPwa9nJ994="; cargoSha256 = "sha256-iUDc54E8AiLMJw9h99kg/3VmaSi8GqfQyrPwa9nJ994=";
buildInputs = lib.optionals stdenv.isDarwin [ buildInputs = lib.optionals stdenv.isDarwin [
libiconv darwin.apple_sdk.frameworks.Security libiconv Security
]; ];
# enable all output formats # enable all output formats

View File

@ -1,21 +1,22 @@
{ lib, buildGoPackage, fetchgit }: { lib, buildGoModule, fetchFromGitHub }:
buildGoPackage rec { buildGoModule rec {
pname = "pup"; pname = "pup";
version = "0.4.0"; version = "unstable-2019-09-19";
rev = "v${version}";
goPackagePath = "github.com/ericchiang/pup"; src = fetchFromGitHub {
owner = "ericchiang";
src = fetchgit { repo = "pup";
inherit rev; rev = "681d7bb639334bf485476f5872c5bdab10931f9a";
url = "https://${goPackagePath}"; sha256 = "1hx1k0qlc1bq6gg5d4yprn4d7kvqzagg6mi5mvb39zdq6c4y17vr";
sha256 = "0mnhw0yph5fvcnrcmj1kfbyw1a4lcg3k9f6y28kf44ihlq8h1dfz";
}; };
vendorSha256 = null;
meta = with lib; { meta = with lib; {
description = "Streaming HTML processor/selector"; description = "Parsing HTML at the command line";
homepage = "https://github.com/ericchiang/pup";
license = licenses.mit; license = licenses.mit;
maintainers = with maintainers; [ yegortimoshenko ]; maintainers = with maintainers; [ yegortimoshenko SuperSandro2000 ];
}; };
} }

View File

@ -13,7 +13,7 @@ buildGoModule rec {
vendorSha256 = "1arllkiz1hk12hq5b2zpg3f8i9lxl66mil5sdv8gnhflmb37vbv3"; vendorSha256 = "1arllkiz1hk12hq5b2zpg3f8i9lxl66mil5sdv8gnhflmb37vbv3";
buildFlagsArray = [ "-ldflags=-X main.GitSha=${src.rev}" ]; buildFlagsArray = [ "-ldflags=-s -w -X main.GitSha=${src.rev}" ];
doCheck = false; doCheck = false;

View File

@ -13,7 +13,7 @@ buildGoModule rec {
vendorSha256 = "0icxy6wbqjqawr6i5skwp1z37fq303p8f95crd8lwn6pjjiqzk4i"; vendorSha256 = "0icxy6wbqjqawr6i5skwp1z37fq303p8f95crd8lwn6pjjiqzk4i";
buildFlagsArray = [ "-ldflags=" "-s -w -X=main.Version=${version}" ]; buildFlagsArray = [ "-ldflags=-s -w -X=main.Version=${version}" ];
meta = with lib; { meta = with lib; {
homepage = "https://github.com/muesli/duf/"; homepage = "https://github.com/muesli/duf/";

View File

@ -8,11 +8,11 @@ rustPlatform.buildRustPackage rec {
owner = "bootandy"; owner = "bootandy";
repo = "dust"; repo = "dust";
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-JwGa1icwV1yqxy90Psd9bzM7VzM7HPA6kONkI3Y745Q="; sha256 = "1knl7kwngmq598bnlvlq9x8sqp914sv1abfm55kw9f7mja2d6pw0";
# Remove unicode file names which leads to different checksums on HFS+ # Remove unicode file names which leads to different checksums on HFS+
# vs. other filesystems because of unicode normalisation. # vs. other filesystems because of unicode normalisation.
extraPostFetch = '' extraPostFetch = ''
rm -rf $out/src/test_dir3/ rm -r $out/tests/test_dir_unicode/
''; '';
}; };
@ -24,6 +24,6 @@ rustPlatform.buildRustPackage rec {
description = "du + rust = dust. Like du but more intuitive"; description = "du + rust = dust. Like du but more intuitive";
homepage = "https://github.com/bootandy/dust"; homepage = "https://github.com/bootandy/dust";
license = licenses.asl20; license = licenses.asl20;
maintainers = [ maintainers.infinisil ]; maintainers = with maintainers; [ infinisil SuperSandro2000 ];
}; };
} }

View File

@ -1,5 +1,5 @@
{ lib, stdenv, fetchFromGitHub, fetchpatch, rustPlatform, cmake, perl, pkg-config, zlib { lib, stdenv, fetchFromGitHub, fetchpatch, rustPlatform, cmake, perl, pkg-config, zlib
, darwin, libiconv, installShellFiles , Security, libiconv, installShellFiles
}: }:
with rustPlatform; with rustPlatform;
@ -28,9 +28,7 @@ buildRustPackage rec {
nativeBuildInputs = [ cmake pkg-config perl installShellFiles ]; nativeBuildInputs = [ cmake pkg-config perl installShellFiles ];
buildInputs = [ zlib ] buildInputs = [ zlib ]
++ lib.optionals stdenv.isDarwin [ ++ lib.optionals stdenv.isDarwin [ libiconv Security ];
libiconv darwin.apple_sdk.frameworks.Security ]
;
outputs = [ "out" "man" ]; outputs = [ "out" "man" ];

View File

@ -1,8 +1,8 @@
{ lib, stdenv, fetchurl, tcl, makeWrapper, autoreconfHook }: { lib, stdenv, fetchurl, tcl, makeWrapper, autoreconfHook }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
version = "5.45.4";
pname = "expect"; pname = "expect";
version = "5.45.4";
src = fetchurl { src = fetchurl {
url = "mirror://sourceforge/expect/Expect/${version}/expect${version}.tar.gz"; url = "mirror://sourceforge/expect/Expect/${version}/expect${version}.tar.gz";
@ -36,7 +36,8 @@ stdenv.mkDerivation rec {
meta = with lib; { meta = with lib; {
description = "A tool for automating interactive applications"; description = "A tool for automating interactive applications";
homepage = "http://expect.sourceforge.net/"; homepage = "http://expect.sourceforge.net/";
license = "Expect"; license = licenses.publicDomain;
platforms = platforms.unix; platforms = platforms.unix;
maintainers = with maintainers; [ SuperSandro2000 ];
}; };
} }

View File

@ -2,7 +2,7 @@
, fetchFromGitHub , fetchFromGitHub
, fetchpatch , fetchpatch
, rustPlatform , rustPlatform
, darwin , Security
, libiconv , libiconv
}: }:
@ -19,7 +19,7 @@ rustPlatform.buildRustPackage rec {
sha256 = "1viph7ki6f2akc5mpbgycacndmxnv088ybfji2bfdbi5jnpyavvs"; sha256 = "1viph7ki6f2akc5mpbgycacndmxnv088ybfji2bfdbi5jnpyavvs";
}; };
buildInputs = lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.Security ]; buildInputs = lib.optionals stdenv.isDarwin [ Security ];
doInstallCheck = true; doInstallCheck = true;
installCheckPhase = '' installCheckPhase = ''

View File

@ -14,8 +14,7 @@ rustPlatform.buildRustPackage rec {
cargoSha256 = "sha256-TqWe4eARQmmWcwnvb6BIZrzGeKMpiIObPv0cW1JvWj4="; cargoSha256 = "sha256-TqWe4eARQmmWcwnvb6BIZrzGeKMpiIObPv0cW1JvWj4=";
buildInputs = with stdenv; buildInputs = lib.optionals stdenv.isDarwin [ CoreFoundation libiconv libresolv Security ];
lib.optionals isDarwin [ CoreFoundation libiconv libresolv Security ];
meta = with lib; { meta = with lib; {
description = "Git repository summary on your terminal"; description = "Git repository summary on your terminal";

View File

@ -24,7 +24,7 @@ rustPlatform.buildRustPackage rec {
meta = with lib; { meta = with lib; {
description = "Upgrade all the things"; description = "Upgrade all the things";
homepage = "https://github.com/r-darwish/topgrade"; homepage = "https://github.com/r-darwish/topgrade";
license = licenses.gpl3; license = licenses.gpl3Only;
maintainers = with maintainers; [ Br1ght0ne hugoreeves ]; maintainers = with maintainers; [ Br1ght0ne hugoreeves SuperSandro2000 ];
}; };
} }

View File

@ -4,7 +4,6 @@
, rustPlatform , rustPlatform
, withFzf ? true , withFzf ? true
, fzf , fzf
# checkInputs # checkInputs
, fish , fish
, powershell , powershell
@ -13,12 +12,10 @@
, xonsh , xonsh
, zsh , zsh
}: }:
let
version = "0.5.0"; rustPlatform.buildRustPackage rec {
in
rustPlatform.buildRustPackage {
pname = "zoxide"; pname = "zoxide";
inherit version; version = "0.5.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "ajeetdsouza"; owner = "ajeetdsouza";
@ -55,6 +52,6 @@ rustPlatform.buildRustPackage {
description = "A fast cd command that learns your habits"; description = "A fast cd command that learns your habits";
homepage = "https://github.com/ajeetdsouza/zoxide"; homepage = "https://github.com/ajeetdsouza/zoxide";
license = with licenses; [ mit ]; license = with licenses; [ mit ];
maintainers = with maintainers; [ ysndr cole-h ]; maintainers = with maintainers; [ ysndr cole-h SuperSandro2000 ];
}; };
} }

View File

@ -1,6 +1,6 @@
{ lib, stdenv, fetchurl, fetchpatch, zlib, protobuf, ncurses, pkg-config { lib, stdenv, fetchurl, fetchpatch, zlib, protobuf, ncurses, pkg-config
, makeWrapper, perlPackages, openssl, autoreconfHook, openssh, bash-completion , makeWrapper, perlPackages, openssl, autoreconfHook, openssh, bash-completion
, libutempter ? null, withUtempter ? stdenv.isLinux }: , withUtempter ? stdenv.isLinux, libutempter }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "mosh"; pname = "mosh";
@ -45,7 +45,7 @@ stdenv.mkDerivation rec {
CXXFLAGS = lib.optionalString stdenv.cc.isClang "-std=c++11"; CXXFLAGS = lib.optionalString stdenv.cc.isClang "-std=c++11";
meta = { meta = with lib; {
homepage = "https://mosh.org/"; homepage = "https://mosh.org/";
description = "Mobile shell (ssh replacement)"; description = "Mobile shell (ssh replacement)";
longDescription = '' longDescription = ''
@ -56,8 +56,8 @@ stdenv.mkDerivation rec {
Mosh is a replacement for SSH. It's more robust and responsive, Mosh is a replacement for SSH. It's more robust and responsive,
especially over Wi-Fi, cellular, and long-distance links. especially over Wi-Fi, cellular, and long-distance links.
''; '';
license = lib.licenses.gpl3Plus; license = licenses.gpl3Plus;
maintainers = with lib.maintainers; [viric]; maintainers = with maintainers; [ viric ];
platforms = lib.platforms.unix; platforms = platforms.unix;
}; };
} }

View File

@ -1,17 +1,15 @@
{ stdenv, lib, fetchFromGitHub, autoreconfHook, pkg-config { stdenv, lib, fetchFromGitHub, autoreconfHook, pkg-config
, libcap, ncurses , libcap, ncurses
, withGtk ? false, gtk3 ? null }: , withGtk ? false, gtk3 }:
assert withGtk -> gtk3 != null;
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "mtr${lib.optionalString withGtk "-gui"}"; pname = "mtr${lib.optionalString withGtk "-gui"}";
version = "0.94"; version = "0.94";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "traviscross"; owner = "traviscross";
repo = "mtr"; repo = "mtr";
rev = "v${version}"; rev = "v${version}";
sha256 = "0wnz87cr2lcl74bj8qxq9xgai40az3pk9k0z893scyc8svd61xz6"; sha256 = "0wnz87cr2lcl74bj8qxq9xgai40az3pk9k0z893scyc8svd61xz6";
}; };
@ -38,9 +36,9 @@ stdenv.mkDerivation rec {
meta = with lib; { meta = with lib; {
description = "A network diagnostics tool"; description = "A network diagnostics tool";
homepage = "https://www.bitwizard.nl/mtr/"; homepage = "https://www.bitwizard.nl/mtr/";
license = licenses.gpl2; license = licenses.gpl2;
maintainers = with maintainers; [ koral orivej raskin globin ]; maintainers = with maintainers; [ koral orivej raskin globin ];
platforms = platforms.unix; platforms = platforms.unix;
}; };
} }

View File

@ -1,26 +1,36 @@
{ lib, stdenv, fetchurl, perl /*, xmlto */}: { lib, stdenv, fetchFromGitHub, docbook_xml_dtd_412, docbook_xsl, perl, w3m, xmlto }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "colordiff-1.0.19"; pname = "colordiff";
version = "1.0.19";
src = fetchurl { src = fetchFromGitHub {
urls = [ owner = "daveewart";
"https://www.colordiff.org/${name}.tar.gz" repo = "colordiff";
"http://www.colordiff.org/archive/${name}.tar.gz" rev = "v${version}";
]; sha256 = "1v7s1yn0qvn08iwm5js8mxn442392qyr7s9ij506byfd497ag7qk";
sha256 = "069vzzgs7b44bmfh3ks2psrdb26s1w19gp9w4xxbgi7nhx6w3s26";
}; };
buildInputs = [ perl /* xmlto */ ]; nativeBuildInputs = [ docbook_xml_dtd_412 docbook_xsl perl w3m xmlto ];
dontBuild = 1; # do not build doc yet. buildInputs = [ perl ];
installPhase = ''make INSTALL_DIR=/bin MAN_DIR=/share/man/man1 DESTDIR="$out" install''; postPatch = ''
substituteInPlace Makefile \
--replace 'TMPDIR=colordiff-''${VERSION}' ""
'';
installFlags = [
"INSTALL_DIR=/bin"
"MAN_DIR=/share/man/man1"
"DESTDIR=${placeholder "out"}"
];
meta = with lib; { meta = with lib; {
description = "Wrapper for 'diff' that produces the same output but with pretty 'syntax' highlighting"; description = "Wrapper for 'diff' that produces the same output but with pretty 'syntax' highlighting";
homepage = "https://www.colordiff.org/"; homepage = "https://www.colordiff.org/";
license = licenses.gpl3; license = licenses.gpl2Plus;
platforms = platforms.linux ++ platforms.darwin; platforms = platforms.unix;
maintainers = with maintainers; [ SuperSandro2000 ];
}; };
} }

View File

@ -1,14 +1,11 @@
{ lib, stdenv, fetchurl, boost }: { lib, stdenv, fetchurl, boost }:
let stdenv.mkDerivation rec {
name = "source-highlight"; pname = "source-highlight";
version = "3.1.9"; version = "3.1.9";
in
stdenv.mkDerivation {
name = "${name}-${version}";
src = fetchurl { src = fetchurl {
url = "mirror://gnu/src-highlite/${name}-${version}.tar.gz"; url = "mirror://gnu/src-highlite/${pname}-${version}.tar.gz";
sha256 = "148w47k3zswbxvhg83z38ifi85f9dqcpg7icvvw1cm6bg21x4zrs"; sha256 = "148w47k3zswbxvhg83z38ifi85f9dqcpg7icvvw1cm6bg21x4zrs";
}; };
@ -26,15 +23,15 @@ stdenv.mkDerivation {
enableParallelBuilding = false; enableParallelBuilding = false;
meta = { meta = with lib; {
description = "Source code renderer with syntax highlighting"; description = "Source code renderer with syntax highlighting";
longDescription = ''
GNU Source-highlight, given a source file, produces a document
with syntax highlighting.
'';
homepage = "https://www.gnu.org/software/src-highlite/"; homepage = "https://www.gnu.org/software/src-highlite/";
license = lib.licenses.gpl3Plus; license = licenses.gpl3Plus;
platforms = with lib.platforms; linux ++ darwin; platforms = platforms.unix;
longDescription = maintainers = with maintainers; [ SuperSandro2000 ];
''
GNU Source-highlight, given a source file, produces a document
with syntax highlighting.
'';
}; };
} }

View File

@ -1,10 +1,11 @@
{ lib, stdenv, fetchurl, texinfo, which }: { lib, stdenv, fetchurl, texinfo, which }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "wdiff-1.2.2"; pname = "wdiff";
version = "1.2.2";
src = fetchurl { src = fetchurl {
url = "mirror://gnu/wdiff/${name}.tar.gz"; url = "mirror://gnu/wdiff/${pname}-${version}.tar.gz";
sha256 = "0sxgg0ms5lhi4aqqvz1rj4s77yi9wymfm3l3gbjfd1qchy66kzrl"; sha256 = "0sxgg0ms5lhi4aqqvz1rj4s77yi9wymfm3l3gbjfd1qchy66kzrl";
}; };
@ -12,11 +13,11 @@ stdenv.mkDerivation rec {
checkInputs = [ which ]; checkInputs = [ which ];
meta = { meta = with lib; {
homepage = "https://www.gnu.org/software/wdiff/"; homepage = "https://www.gnu.org/software/wdiff/";
description = "Comparing files on a word by word basis"; description = "Comparing files on a word by word basis";
license = lib.licenses.gpl3Plus; license = licenses.gpl3Plus;
maintainers = [ lib.maintainers.eelco ]; maintainers = with maintainers; [ eelco SuperSandro2000 ];
platforms = lib.platforms.unix; platforms = platforms.unix;
}; };
} }

View File

@ -1333,7 +1333,9 @@ in
gremlin-console = callPackage ../applications/misc/gremlin-console { }; gremlin-console = callPackage ../applications/misc/gremlin-console { };
grex = callPackage ../tools/misc/grex { }; grex = callPackage ../tools/misc/grex {
inherit (darwin.apple_sdk.frameworks) Security;
};
gcsfuse = callPackage ../tools/filesystems/gcsfuse { }; gcsfuse = callPackage ../tools/filesystems/gcsfuse { };
@ -3992,7 +3994,9 @@ in
eva = callPackage ../tools/misc/eva { }; eva = callPackage ../tools/misc/eva { };
exa = callPackage ../tools/misc/exa { }; exa = callPackage ../tools/misc/exa {
inherit (darwin.apple_sdk.frameworks) Security;
};
exempi = callPackage ../development/libraries/exempi { exempi = callPackage ../development/libraries/exempi {
stdenv = if stdenv.isi686 then gcc6Stdenv else stdenv; stdenv = if stdenv.isi686 then gcc6Stdenv else stdenv;
@ -8379,7 +8383,9 @@ in
toilet = callPackage ../tools/misc/toilet { }; toilet = callPackage ../tools/misc/toilet { };
tokei = callPackage ../development/tools/misc/tokei { }; tokei = callPackage ../development/tools/misc/tokei {
inherit (darwin.apple_sdk.frameworks) Security;
};
toml2nix = (callPackage ../tools/toml2nix { }).toml2nix { }; toml2nix = (callPackage ../tools/toml2nix { }).toml2nix { };

View File

@ -8489,7 +8489,9 @@ in {
yowsup = callPackage ../development/python-modules/yowsup { }; yowsup = callPackage ../development/python-modules/yowsup { };
yq = callPackage ../development/python-modules/yq { }; yq = callPackage ../development/python-modules/yq {
inherit (pkgs) jq;
};
yt = callPackage ../development/python-modules/yt { }; yt = callPackage ../development/python-modules/yt { };