Merge staging-next into staging
This commit is contained in:
commit
e01a16d07b
@ -10430,6 +10430,12 @@
|
|||||||
githubId = 36407913;
|
githubId = 36407913;
|
||||||
name = "Uli Baum";
|
name = "Uli Baum";
|
||||||
};
|
};
|
||||||
|
xfnw = {
|
||||||
|
email = "xfnw+nixos@riseup.net";
|
||||||
|
github = "xfnw";
|
||||||
|
githubId = 66233223;
|
||||||
|
name = "Owen";
|
||||||
|
};
|
||||||
xfix = {
|
xfix = {
|
||||||
email = "konrad@borowski.pw";
|
email = "konrad@borowski.pw";
|
||||||
github = "xfix";
|
github = "xfix";
|
||||||
|
@ -416,6 +416,7 @@ def rewrite_input(
|
|||||||
}
|
}
|
||||||
with open(deprecated, "w") as f:
|
with open(deprecated, "w") as f:
|
||||||
json.dump(deprecations, f, indent=4, sort_keys=True)
|
json.dump(deprecations, f, indent=4, sort_keys=True)
|
||||||
|
f.write("\n")
|
||||||
|
|
||||||
lines = sorted(lines, key=str.casefold)
|
lines = sorted(lines, key=str.casefold)
|
||||||
|
|
||||||
|
@ -29,24 +29,24 @@ let
|
|||||||
|
|
||||||
connect-kak = buildKakounePluginFrom2Nix {
|
connect-kak = buildKakounePluginFrom2Nix {
|
||||||
pname = "connect-kak";
|
pname = "connect-kak";
|
||||||
version = "2021-02-13";
|
version = "2021-02-24";
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "alexherbo2";
|
owner = "kakounedotcom";
|
||||||
repo = "connect.kak";
|
repo = "connect.kak";
|
||||||
rev = "0858c0e50c6ca6d214fb088f052385a242548e83";
|
rev = "a536605a208149eed58986bda54f3dda215dfe61";
|
||||||
sha256 = "1w4pwybg3v916hcyc49gz0blygv54ivv81x8fxp44ck0sy98idr3";
|
sha256 = "1svw64zk28sn271vjyzvq21zaln13vnx59rxnxah6adq8n5nkr4a";
|
||||||
};
|
};
|
||||||
meta.homepage = "https://github.com/alexherbo2/connect.kak/";
|
meta.homepage = "https://github.com/kakounedotcom/connect.kak/";
|
||||||
};
|
};
|
||||||
|
|
||||||
fzf-kak = buildKakounePluginFrom2Nix {
|
fzf-kak = buildKakounePluginFrom2Nix {
|
||||||
pname = "fzf-kak";
|
pname = "fzf-kak";
|
||||||
version = "2021-01-27";
|
version = "2021-03-15";
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "andreyorst";
|
owner = "andreyorst";
|
||||||
repo = "fzf.kak";
|
repo = "fzf.kak";
|
||||||
rev = "e10de405e2a98e910d0808059200d206ba80f865";
|
rev = "4e6c9a857511fccdbbc835a1c9acb205b6486a4c";
|
||||||
sha256 = "1hbsm1k8k0cgv7gxqicvnl22n2lb1plhkanniggk694gll22lq68";
|
sha256 = "0syhhdlsm7vg6hcd2n2acag9g562z49rbb5smh5p2gnplhmp93i0";
|
||||||
};
|
};
|
||||||
meta.homepage = "https://github.com/andreyorst/fzf.kak/";
|
meta.homepage = "https://github.com/andreyorst/fzf.kak/";
|
||||||
};
|
};
|
||||||
@ -149,26 +149,26 @@ let
|
|||||||
|
|
||||||
powerline-kak = buildKakounePluginFrom2Nix {
|
powerline-kak = buildKakounePluginFrom2Nix {
|
||||||
pname = "powerline-kak";
|
pname = "powerline-kak";
|
||||||
version = "2021-02-15";
|
version = "2021-02-25";
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "jdugan6240";
|
owner = "andreyorst";
|
||||||
repo = "powerline.kak";
|
repo = "powerline.kak";
|
||||||
rev = "322a760daa099d519ff50d14c29b27f3e2af00d1";
|
rev = "64ad98b6c85e63345563671b043960464d51c4b0";
|
||||||
sha256 = "0mb8f8p6g75p05ifp45i0gbq2mib8c8giz7r1xfd0yrwspp4aksc";
|
sha256 = "09w2sk19qi64hgsyg4gb407vyppnlgk272mqbinz2r3apy6szkl3";
|
||||||
};
|
};
|
||||||
meta.homepage = "https://github.com/jdugan6240/powerline.kak/";
|
meta.homepage = "https://github.com/andreyorst/powerline.kak/";
|
||||||
};
|
};
|
||||||
|
|
||||||
prelude-kak = buildKakounePluginFrom2Nix {
|
prelude-kak = buildKakounePluginFrom2Nix {
|
||||||
pname = "prelude-kak";
|
pname = "prelude-kak";
|
||||||
version = "2020-09-06";
|
version = "2021-02-24";
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "alexherbo2";
|
owner = "kakounedotcom";
|
||||||
repo = "prelude.kak";
|
repo = "prelude.kak";
|
||||||
rev = "f1e0f4d5cb62a36924e3f8ba6824d6aed8c19d23";
|
rev = "5dbdc020c546032885c1fdb463e366cc89fc15ad";
|
||||||
sha256 = "1pncr8azqvl2z9yvzhc68p1s9fld8cvak8yz88zgrp5ypx2cxl8c";
|
sha256 = "1pncr8azqvl2z9yvzhc68p1s9fld8cvak8yz88zgrp5ypx2cxl8c";
|
||||||
};
|
};
|
||||||
meta.homepage = "https://github.com/alexherbo2/prelude.kak/";
|
meta.homepage = "https://github.com/kakounedotcom/prelude.kak/";
|
||||||
};
|
};
|
||||||
|
|
||||||
replace-mode-kak = buildKakounePluginFrom2Nix {
|
replace-mode-kak = buildKakounePluginFrom2Nix {
|
||||||
|
@ -1,16 +1,16 @@
|
|||||||
alexherbo2/auto-pairs.kak
|
alexherbo2/auto-pairs.kak
|
||||||
alexherbo2/connect.kak
|
|
||||||
alexherbo2/prelude.kak
|
|
||||||
alexherbo2/replace-mode.kak
|
alexherbo2/replace-mode.kak
|
||||||
alexherbo2/sleuth.kak
|
alexherbo2/sleuth.kak
|
||||||
andreyorst/fzf.kak
|
andreyorst/fzf.kak
|
||||||
|
andreyorst/powerline.kak
|
||||||
danr/kakoune-easymotion
|
danr/kakoune-easymotion
|
||||||
Delapouite/kakoune-buffers
|
Delapouite/kakoune-buffers
|
||||||
Delapouite/kakoune-registers
|
Delapouite/kakoune-registers
|
||||||
enricozb/tabs.kak@main
|
enricozb/tabs.kak@main
|
||||||
greenfork/active-window.kak
|
greenfork/active-window.kak
|
||||||
jdugan6240/powerline.kak
|
|
||||||
kakoune-editor/kakoune-extra-filetypes
|
kakoune-editor/kakoune-extra-filetypes
|
||||||
|
kakounedotcom/connect.kak
|
||||||
|
kakounedotcom/prelude.kak
|
||||||
listentolist/kakoune-rainbow
|
listentolist/kakoune-rainbow
|
||||||
mayjs/openscad.kak
|
mayjs/openscad.kak
|
||||||
occivink/kakoune-buffer-switcher
|
occivink/kakoune-buffer-switcher
|
||||||
|
@ -1,43 +1,71 @@
|
|||||||
{ lib, stdenv, fetchFromGitHub, yacc, ncurses, libxml2, libzip, libxls, pkg-config }:
|
{ lib
|
||||||
|
, stdenv
|
||||||
|
, fetchFromGitHub
|
||||||
|
, fetchpatch
|
||||||
|
, makeWrapper
|
||||||
|
, pkg-config
|
||||||
|
, which
|
||||||
|
, yacc
|
||||||
|
, gnuplot
|
||||||
|
, libxls
|
||||||
|
, libxml2
|
||||||
|
, libzip
|
||||||
|
, ncurses
|
||||||
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
version = "0.7.0";
|
|
||||||
pname = "sc-im";
|
pname = "sc-im";
|
||||||
|
version = "0.8.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "andmarti1424";
|
owner = "andmarti1424";
|
||||||
repo = "sc-im";
|
repo = "sc-im";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "0xi0n9qzby012y2j7hg4fgcwyly698sfi4i9gkvy0q682jihprbk";
|
sha256 = "sha256-/eG2BdkyfEGoSzPu6jT+Bn1RZTGT1D3etGj1tYchm1M=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ pkg-config ];
|
sourceRoot = "${src.name}/src";
|
||||||
buildInputs = [ yacc ncurses libxml2 libzip libxls ];
|
|
||||||
|
|
||||||
buildPhase = ''
|
# make default colors readable on dark background
|
||||||
cd src
|
patches = [
|
||||||
|
(fetchpatch {
|
||||||
|
url = "https://github.com/andmarti1424/sc-im/commit/78d2fdaaf2c578691e68fb5bd773803cb967ddba.patch";
|
||||||
|
sha256 = "09716zsqa9qdsj2qpkji8wlzsmp9gl66ggvrg7lmrwwnvli2zn2w";
|
||||||
|
})
|
||||||
|
(fetchpatch {
|
||||||
|
url = "https://github.com/andmarti1424/sc-im/commit/f29d6605c8170febcec0dea7bda9613bee3b7011.patch";
|
||||||
|
sha256 = "1zs1sb23g0k6lig4d0qdzq1wdhcdzl424ch567zyjl191lyhsjyg";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
sed 's/LDLIBS += -lm/& -lncurses/' -i Makefile
|
patchFlags = [ "-p2" ];
|
||||||
|
|
||||||
sed -e "\|^prefix = /usr/local| s|/usr/local|$out|" \
|
nativeBuildInputs = [
|
||||||
-e "\|^#LDLIBS += -lxlsreader| s|^#|| " \
|
makeWrapper
|
||||||
-e "\|^#CFLAGS += -DXLS| s|^#|| " \
|
pkg-config
|
||||||
-i Makefile
|
which
|
||||||
|
yacc
|
||||||
|
];
|
||||||
|
|
||||||
make
|
buildInputs = [
|
||||||
export DESTDIR=$out
|
gnuplot
|
||||||
'';
|
libxls
|
||||||
|
libxml2
|
||||||
|
libzip
|
||||||
|
ncurses
|
||||||
|
];
|
||||||
|
|
||||||
installPhase = ''
|
makeFlags = [ "prefix=${placeholder "out"}" ];
|
||||||
make install prefix=
|
|
||||||
|
postInstall = ''
|
||||||
|
wrapProgram "$out/bin/sc-im" --prefix PATH : "${lib.makeBinPath [ gnuplot ]}"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "https://github.com/andmarti1424/sc-im";
|
homepage = "https://github.com/andmarti1424/sc-im";
|
||||||
description = "SC-IM - Spreadsheet Calculator Improvised - SC fork";
|
description = "An ncurses spreadsheet program for terminal";
|
||||||
license = licenses.bsdOriginal;
|
license = licenses.bsdOriginal;
|
||||||
maintainers = [ ];
|
maintainers = with maintainers; [ dotlambda ];
|
||||||
platforms = platforms.unix;
|
platforms = platforms.unix;
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
23
pkgs/applications/networking/irc/catgirl/default.nix
Normal file
23
pkgs/applications/networking/irc/catgirl/default.nix
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
{ ctags, fetchurl, lib, libressl, man, ncurses, pkg-config, stdenv }:
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
pname = "catgirl";
|
||||||
|
version = "1.6";
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
url = "https://git.causal.agency/catgirl/snapshot/${pname}-${version}.tar.gz";
|
||||||
|
sha256 = "0shg02zidqqmvywqqsaazlgg9rd5lhhrvjx6n0lzmdfaawxywciv";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [ ctags pkg-config ];
|
||||||
|
buildInputs = [ libressl man ncurses ];
|
||||||
|
strictDeps = true;
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
homepage = "https://git.causal.agency/catgirl/about/";
|
||||||
|
license = licenses.gpl3Plus;
|
||||||
|
description = "A TLS-only terminal IRC client";
|
||||||
|
platforms = platforms.unix;
|
||||||
|
maintainers = with maintainers; [ xfnw ];
|
||||||
|
};
|
||||||
|
}
|
@ -2,13 +2,14 @@
|
|||||||
|
|
||||||
python3Packages.buildPythonApplication rec {
|
python3Packages.buildPythonApplication rec {
|
||||||
pname = "snakemake";
|
pname = "snakemake";
|
||||||
version = "5.28.0";
|
version = "6.0.5";
|
||||||
|
|
||||||
propagatedBuildInputs = with python3Packages; [
|
propagatedBuildInputs = with python3Packages; [
|
||||||
appdirs
|
appdirs
|
||||||
ConfigArgParse
|
ConfigArgParse
|
||||||
datrie
|
datrie
|
||||||
docutils
|
docutils
|
||||||
|
filelock
|
||||||
GitPython
|
GitPython
|
||||||
jsonschema
|
jsonschema
|
||||||
nbformat
|
nbformat
|
||||||
@ -17,19 +18,20 @@ python3Packages.buildPythonApplication rec {
|
|||||||
pyyaml
|
pyyaml
|
||||||
ratelimiter
|
ratelimiter
|
||||||
requests
|
requests
|
||||||
|
smart_open
|
||||||
toposort
|
toposort
|
||||||
wrapt
|
wrapt
|
||||||
];
|
];
|
||||||
|
|
||||||
src = python3Packages.fetchPypi {
|
src = python3Packages.fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "2367ce91baf7f8fa7738d33aff9670ffdf5410bbac49aeb209f73b45a3425046";
|
sha256 = "9441169034cce46086a8b45486d75175db645b932e766d28fed312ec837792d3";
|
||||||
};
|
};
|
||||||
|
|
||||||
doCheck = false; # Tests depend on Google Cloud credentials at ${HOME}/gcloud-service-key.json
|
doCheck = false; # Tests depend on Google Cloud credentials at ${HOME}/gcloud-service-key.json
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "https://snakemake.readthedocs.io";
|
homepage = "https://snakemake.github.io";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
description = "Python-based execution environment for make-like workflows";
|
description = "Python-based execution environment for make-like workflows";
|
||||||
longDescription = ''
|
longDescription = ''
|
||||||
|
@ -1,14 +1,22 @@
|
|||||||
{ lib, fetchzip, cabextract }:
|
{ lib, stdenvNoCC, fetchurl, cabextract }:
|
||||||
|
|
||||||
fetchzip {
|
stdenvNoCC.mkDerivation {
|
||||||
name = "vista-fonts-1";
|
pname = "vista-fonts";
|
||||||
|
version = "1";
|
||||||
|
|
||||||
url = "https://web.archive.org/web/20171225132744/http://download.microsoft.com/download/E/6/7/E675FFFC-2A6D-4AB0-B3EB-27C9F8C8F696/PowerPointViewer.exe";
|
src = fetchurl {
|
||||||
|
url = "mirror://sourceforge/mscorefonts2/cabs/PowerPointViewer.exe";
|
||||||
|
sha256 = "07vhjdw8iip7gxk6wvp4myhvbn9619g10j9qvpbzz4ihima57ry4";
|
||||||
|
};
|
||||||
|
|
||||||
postFetch = ''
|
nativeBuildInputs = [ cabextract ];
|
||||||
${cabextract}/bin/cabextract --lowercase --filter ppviewer.cab $downloadedFile
|
|
||||||
${cabextract}/bin/cabextract --lowercase --filter '*.TTF' ppviewer.cab
|
|
||||||
|
|
||||||
|
unpackPhase = ''
|
||||||
|
cabextract --lowercase --filter ppviewer.cab $src
|
||||||
|
cabextract --lowercase --filter '*.TTF' ppviewer.cab
|
||||||
|
'';
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
mkdir -p $out/share/fonts/truetype
|
mkdir -p $out/share/fonts/truetype
|
||||||
cp *.ttf $out/share/fonts/truetype
|
cp *.ttf $out/share/fonts/truetype
|
||||||
|
|
||||||
@ -21,8 +29,6 @@ fetchzip {
|
|||||||
done
|
done
|
||||||
'';
|
'';
|
||||||
|
|
||||||
sha256 = "sha256-x7JSXS9Q1fzlJTVR+MAS3f2+cmo/H0s1qkY9FPjx2zI=";
|
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Some TrueType fonts from Microsoft Windows Vista (Calibri, Cambria, Candara, Consolas, Constantia, Corbel)";
|
description = "Some TrueType fonts from Microsoft Windows Vista (Calibri, Cambria, Candara, Consolas, Constantia, Corbel)";
|
||||||
homepage = "http://www.microsoft.com/typography/ClearTypeFonts.mspx";
|
homepage = "http://www.microsoft.com/typography/ClearTypeFonts.mspx";
|
||||||
|
@ -1,20 +1,43 @@
|
|||||||
{ stdenv, lib, fetchFromGitHub,
|
{ stdenv
|
||||||
pkg-config, autoreconfHook,
|
, lib
|
||||||
flex, yacc, zlib, libxml2 }:
|
, fetchFromGitHub
|
||||||
|
, fetchpatch
|
||||||
|
, arpack
|
||||||
|
, bison
|
||||||
|
, blas
|
||||||
|
, cmake
|
||||||
|
, flex
|
||||||
|
, fop
|
||||||
|
, glpk
|
||||||
|
, gmp
|
||||||
|
, lapack
|
||||||
|
, libxml2
|
||||||
|
, libxslt
|
||||||
|
, pkg-config
|
||||||
|
, python3
|
||||||
|
, sourceHighlight
|
||||||
|
, suitesparse
|
||||||
|
, xmlto
|
||||||
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "igraph";
|
pname = "igraph";
|
||||||
version = "0.8.5";
|
version = "0.9.1";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "igraph";
|
owner = "igraph";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "0cb0kp6mpmgz74kbymqw4xxads8ff7jh0n59dsm76xy6nn8hpqcz";
|
sha256 = "sha256-i6Zg6bfHZ9NHwqCouX9m9YqD0VtiWW8DEkxS0hdUyIE=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ pkg-config autoreconfHook ];
|
patches = [
|
||||||
buildInputs = [ flex yacc zlib libxml2 ];
|
(fetchpatch {
|
||||||
|
name = "pkg-config-paths.patch";
|
||||||
|
url = "https://github.com/igraph/igraph/commit/980521cc948777df471893f7b6de8f3e3916a3c0.patch";
|
||||||
|
sha256 = "0mbq8v5h90c3dhgmyjazjvva3rn57qhnv7pkc9hlbqdln9gpqg0g";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
# Normally, igraph wants us to call bootstrap.sh, which will call
|
# Normally, igraph wants us to call bootstrap.sh, which will call
|
||||||
# tools/getversion.sh. Instead, we're going to put the version directly
|
# tools/getversion.sh. Instead, we're going to put the version directly
|
||||||
@ -22,16 +45,69 @@ stdenv.mkDerivation rec {
|
|||||||
# bootstrap. ~ C.
|
# bootstrap. ~ C.
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
echo "${version}" > IGRAPH_VERSION
|
echo "${version}" > IGRAPH_VERSION
|
||||||
|
'' + lib.optionalString stdenv.isAarch64 ''
|
||||||
|
# https://github.com/igraph/igraph/issues/1694
|
||||||
|
substituteInPlace tests/CMakeLists.txt \
|
||||||
|
--replace "igraph_scg_grouping3" "" \
|
||||||
|
--replace "igraph_scg_semiprojectors2" ""
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
outputs = [ "out" "dev" "doc" ];
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
cmake
|
||||||
|
fop
|
||||||
|
libxml2
|
||||||
|
libxslt
|
||||||
|
pkg-config
|
||||||
|
python3
|
||||||
|
sourceHighlight
|
||||||
|
xmlto
|
||||||
|
];
|
||||||
|
|
||||||
|
buildInputs = [
|
||||||
|
arpack
|
||||||
|
bison
|
||||||
|
blas
|
||||||
|
flex
|
||||||
|
glpk
|
||||||
|
gmp
|
||||||
|
lapack
|
||||||
|
libxml2
|
||||||
|
suitesparse
|
||||||
|
];
|
||||||
|
|
||||||
|
cmakeFlags = [
|
||||||
|
"-DIGRAPH_USE_INTERNAL_BLAS=OFF"
|
||||||
|
"-DIGRAPH_USE_INTERNAL_LAPACK=OFF"
|
||||||
|
"-DIGRAPH_USE_INTERNAL_ARPACK=OFF"
|
||||||
|
"-DIGRAPH_USE_INTERNAL_GLPK=OFF"
|
||||||
|
"-DIGRAPH_USE_INTERNAL_CXSPARSE=OFF"
|
||||||
|
"-DIGRAPH_USE_INTERNAL_GMP=OFF"
|
||||||
|
"-DIGRAPH_GLPK_SUPPORT=ON"
|
||||||
|
"-DIGRAPH_GRAPHML_SUPPORT=ON"
|
||||||
|
"-DIGRAPH_ENABLE_LTO=ON"
|
||||||
|
"-DIGRAPH_ENABLE_TLS=ON"
|
||||||
|
"-DBUILD_SHARED_LIBS=ON"
|
||||||
|
];
|
||||||
|
|
||||||
doCheck = true;
|
doCheck = true;
|
||||||
|
|
||||||
meta = {
|
preCheck = ''
|
||||||
|
# needed to find libigraph.so
|
||||||
|
export LD_LIBRARY_PATH="$PWD/src"
|
||||||
|
'';
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
mkdir -p "$out/share"
|
||||||
|
cp -r doc "$out/share"
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
description = "The network analysis package";
|
description = "The network analysis package";
|
||||||
homepage = "https://igraph.org/";
|
homepage = "https://igraph.org/";
|
||||||
license = lib.licenses.gpl2;
|
license = licenses.gpl2Plus;
|
||||||
# NB: Known to fail tests on aarch64.
|
platforms = platforms.all;
|
||||||
platforms = [ "x86_64-linux" ] ++ lib.platforms.darwin;
|
maintainers = with maintainers; [ MostAwesomeDude dotlambda ];
|
||||||
maintainers = [ lib.maintainers.MostAwesomeDude ];
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage {
|
buildPythonPackage {
|
||||||
inherit (pkgs.mxnet) name version src meta;
|
inherit (pkgs.mxnet) pname version src meta;
|
||||||
|
|
||||||
buildInputs = [ pkgs.mxnet ];
|
buildInputs = [ pkgs.mxnet ];
|
||||||
propagatedBuildInputs = [ requests numpy graphviz ];
|
propagatedBuildInputs = [ requests numpy graphviz ];
|
||||||
|
@ -1,32 +1,54 @@
|
|||||||
{ buildPythonPackage, fetchPypi, lib, isPy3k
|
{ lib
|
||||||
, pkg-config, igraph
|
, buildPythonPackage
|
||||||
, texttable }:
|
, pythonOlder
|
||||||
|
, fetchFromGitHub
|
||||||
|
, pkg-config
|
||||||
|
, igraph
|
||||||
|
, texttable
|
||||||
|
, python
|
||||||
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "python-igraph";
|
pname = "python-igraph";
|
||||||
version = "0.8.3";
|
version = "0.9.1";
|
||||||
disabled = !isPy3k; # fails to build
|
|
||||||
|
|
||||||
nativeBuildInputs = [ pkg-config ];
|
disabled = pythonOlder "3.6";
|
||||||
buildInputs = [ igraph ];
|
|
||||||
propagatedBuildInputs = [ texttable ];
|
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchFromGitHub {
|
||||||
inherit pname version;
|
owner = "igraph";
|
||||||
sha256 = "e1f27622eddeb2bd5fdcbadb41ef048e884790bb050f9627c086dc609d0f1236";
|
repo = "python-igraph";
|
||||||
|
rev = version;
|
||||||
|
sha256 = "1ldyzza25zvwh144lw8x856z76s8gfvnbdm56fcmwkvm7aj81npw";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
pkg-config
|
||||||
|
];
|
||||||
|
|
||||||
|
buildInputs = [
|
||||||
|
igraph
|
||||||
|
igraph.dev
|
||||||
|
];
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
texttable
|
||||||
|
];
|
||||||
|
|
||||||
# NB: We want to use our igraph, not vendored igraph, but even with
|
# NB: We want to use our igraph, not vendored igraph, but even with
|
||||||
# pkg-config on the PATH, their custom setup.py still needs to be explicitly
|
# pkg-config on the PATH, their custom setup.py still needs to be explicitly
|
||||||
# told to do it. ~ C.
|
# told to do it. ~ C.
|
||||||
setupPyGlobalFlags = [ "--use-pkg-config" ];
|
setupPyGlobalFlags = [ "--use-pkg-config" ];
|
||||||
|
|
||||||
doCheck = !isPy3k;
|
checkPhase = ''
|
||||||
|
${python.interpreter} -m unittest
|
||||||
|
'';
|
||||||
|
|
||||||
meta = {
|
pythonImportsCheck = [ "igraph" ];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
description = "High performance graph data structures and algorithms";
|
description = "High performance graph data structures and algorithms";
|
||||||
homepage = "https://igraph.org/python/";
|
homepage = "https://igraph.org/python/";
|
||||||
license = lib.licenses.gpl2;
|
license = licenses.gpl2Plus;
|
||||||
maintainers = [ lib.maintainers.MostAwesomeDude ];
|
maintainers = with maintainers; [ MostAwesomeDude dotlambda ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
# Normal gem packages can be used outside of bundler; a binstub is created in
|
# Normal gem packages can be used outside of bundler; a binstub is created in
|
||||||
# $out/bin.
|
# $out/bin.
|
||||||
|
|
||||||
{ lib, fetchurl, fetchgit, makeWrapper, git, darwin
|
{ lib, fetchurl, fetchgit, makeWrapper, gitMinimal, darwin
|
||||||
, ruby, bundler
|
, ruby, bundler
|
||||||
} @ defs:
|
} @ defs:
|
||||||
|
|
||||||
@ -89,7 +89,7 @@ stdenv.mkDerivation ((builtins.removeAttrs attrs ["source"]) // {
|
|||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
ruby makeWrapper
|
ruby makeWrapper
|
||||||
] ++ lib.optionals (type == "git") [ git ]
|
] ++ lib.optionals (type == "git") [ gitMinimal ]
|
||||||
++ lib.optionals (type != "gem") [ bundler ]
|
++ lib.optionals (type != "gem") [ bundler ]
|
||||||
++ lib.optional stdenv.isDarwin darwin.libobjc
|
++ lib.optional stdenv.isDarwin darwin.libobjc
|
||||||
++ buildInputs;
|
++ buildInputs;
|
||||||
|
@ -1,12 +1,26 @@
|
|||||||
{ lib, stdenv, fetchurl, mono, libmediainfo, sqlite, curl, makeWrapper }:
|
{ lib, stdenv, fetchurl, mono, libmediainfo, sqlite, curl, makeWrapper, icu, dotnetCorePackages, openssl, nixosTests }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
let
|
||||||
|
os = if stdenv.isDarwin then "osx" else "linux";
|
||||||
|
arch = {
|
||||||
|
x86_64-linux = "x64";
|
||||||
|
aarch64-linux = "arm64";
|
||||||
|
x86_64-darwin = "x64";
|
||||||
|
}."${stdenv.hostPlatform.system}" or (throw "Unsupported system: ${stdenv.hostPlatform.system}");
|
||||||
|
|
||||||
|
hash = {
|
||||||
|
x64-linux_hash = "sha256-bTh+Z5w5ZkL2iPteStqVcoFDGZIbpVjuXn20TZsfgtY=";
|
||||||
|
arm64-linux_hash = "sha256-aIzVSIRuGNiIFJPToXCQwYsbICKuPtwKATnQhkxvJuA=";
|
||||||
|
x64-osx_hash = "sha256-FxRSAJvRQya2x1kei6yRceGcyQ2mCaFveyeMGw0Jqw4=";
|
||||||
|
}."${arch}-${os}_hash";
|
||||||
|
|
||||||
|
in stdenv.mkDerivation rec {
|
||||||
pname = "radarr";
|
pname = "radarr";
|
||||||
version = "0.2.0.1504";
|
version = "3.0.2.4552";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://github.com/Radarr/Radarr/releases/download/v${version}/Radarr.develop.${version}.linux.tar.gz";
|
url = "https://github.com/Radarr/Radarr/releases/download/v${version}/Radarr.master.${version}.${os}-core-${arch}.tar.gz";
|
||||||
sha256 = "1h7pqn39vxd0vr1fwrnvfpxv5vhh4zcr0s8h0zvgplay2z6b6bvb";
|
sha256 = hash;
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ makeWrapper ];
|
nativeBuildInputs = [ makeWrapper ];
|
||||||
@ -15,17 +29,22 @@ stdenv.mkDerivation rec {
|
|||||||
mkdir -p $out/{bin,share/${pname}-${version}}
|
mkdir -p $out/{bin,share/${pname}-${version}}
|
||||||
cp -r * $out/share/${pname}-${version}/.
|
cp -r * $out/share/${pname}-${version}/.
|
||||||
|
|
||||||
makeWrapper "${mono}/bin/mono" $out/bin/Radarr \
|
makeWrapper "${dotnetCorePackages.netcore_3_1}/bin/dotnet" $out/bin/Radarr \
|
||||||
--add-flags "$out/share/${pname}-${version}/Radarr.exe" \
|
--add-flags "$out/share/${pname}-${version}/Radarr.dll" \
|
||||||
--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [
|
--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [
|
||||||
curl sqlite libmediainfo ]}
|
curl sqlite libmediainfo mono openssl icu ]}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
passthru = {
|
||||||
|
updateScript = ./update.sh;
|
||||||
|
tests.smoke-test = nixosTests.radarr;
|
||||||
|
};
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "A Usenet/BitTorrent movie downloader";
|
description = "A Usenet/BitTorrent movie downloader";
|
||||||
homepage = "https://radarr.video/";
|
homepage = "https://radarr.video/";
|
||||||
license = licenses.gpl3;
|
license = licenses.gpl3Only;
|
||||||
maintainers = with maintainers; [ edwtjo purcell ];
|
maintainers = with maintainers; [ edwtjo purcell ];
|
||||||
platforms = platforms.all;
|
platforms = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
42
pkgs/servers/radarr/update.sh
Executable file
42
pkgs/servers/radarr/update.sh
Executable file
@ -0,0 +1,42 @@
|
|||||||
|
#!/usr/bin/env nix-shell
|
||||||
|
#!nix-shell -i bash -p curl nix-prefetch jq
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
dirname="$(dirname "$0")"
|
||||||
|
|
||||||
|
updateHash()
|
||||||
|
{
|
||||||
|
version=$1
|
||||||
|
arch=$2
|
||||||
|
os=$3
|
||||||
|
|
||||||
|
hashKey="${arch}-${os}_hash"
|
||||||
|
|
||||||
|
url="https://github.com/Radarr/Radarr/releases/download/v$version/Radarr.master.$version.$os-core-$arch.tar.gz"
|
||||||
|
hash=$(nix-prefetch-url --type sha256 $url)
|
||||||
|
sriHash="$(nix to-sri --type sha256 $hash)"
|
||||||
|
|
||||||
|
sed -i "s/$hashKey = \"[a-zA-Z0-9\/+-=]*\";/$hashKey = \"$sriHash\";/g" "$dirname/default.nix"
|
||||||
|
}
|
||||||
|
|
||||||
|
updateVersion()
|
||||||
|
{
|
||||||
|
sed -i "s/version = \"[0-9.]*\";/version = \"$1\";/g" "$dirname/default.nix"
|
||||||
|
}
|
||||||
|
|
||||||
|
currentVersion=$(cd $dirname && nix eval --raw '(with import ../../.. {}; radarr.version)')
|
||||||
|
|
||||||
|
latestTag=$(curl https://api.github.com/repos/Radarr/Radarr/releases/latest | jq -r ".tag_name")
|
||||||
|
latestVersion="$(expr $latestTag : 'v\(.*\)')"
|
||||||
|
|
||||||
|
if [[ "$currentVersion" == "$latestVersion" ]]; then
|
||||||
|
echo "Radarr is up-to-date: ${currentVersion}"
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
updateVersion $latestVersion
|
||||||
|
|
||||||
|
updateHash $latestVersion x64 linux
|
||||||
|
updateHash $latestVersion arm64 linux
|
||||||
|
updateHash $latestVersion x64 osx
|
28
pkgs/tools/security/zgrab2/default.nix
Normal file
28
pkgs/tools/security/zgrab2/default.nix
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
{ lib
|
||||||
|
, buildGoModule
|
||||||
|
, fetchFromGitHub
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildGoModule rec {
|
||||||
|
pname = "zgrab2";
|
||||||
|
version = "20210327-${lib.strings.substring 0 7 rev}";
|
||||||
|
rev = "17a5257565c758e2b817511d15476d330be0a17a";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "zmap";
|
||||||
|
repo = pname;
|
||||||
|
inherit rev;
|
||||||
|
sha256 = "1hxk2jggj8lww97lwmks46i001p5ycnxnck8yya6d0fd3ayxvw2w";
|
||||||
|
};
|
||||||
|
|
||||||
|
vendorSha256 = "1s0azy5b5hi5h24vs6a9f1n70l980vkid28ihqh10zq6ajmds2z3";
|
||||||
|
|
||||||
|
subPackages = [ "cmd/zgrab2" ];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Web application scanner";
|
||||||
|
homepage = "https://github.com/zmap/zgrab2";
|
||||||
|
license = with licenses; [ asl20 isc ];
|
||||||
|
maintainers = with maintainers; [ fab ];
|
||||||
|
};
|
||||||
|
}
|
@ -21894,6 +21894,8 @@ in
|
|||||||
|
|
||||||
catfs = callPackage ../os-specific/linux/catfs { };
|
catfs = callPackage ../os-specific/linux/catfs { };
|
||||||
|
|
||||||
|
catgirl = callPackage ../applications/networking/irc/catgirl { };
|
||||||
|
|
||||||
catimg = callPackage ../tools/misc/catimg { };
|
catimg = callPackage ../tools/misc/catimg { };
|
||||||
|
|
||||||
catt = callPackage ../applications/video/catt { };
|
catt = callPackage ../applications/video/catt { };
|
||||||
@ -26743,7 +26745,9 @@ in
|
|||||||
autoconf = buildPackages.autoconf269;
|
autoconf = buildPackages.autoconf269;
|
||||||
};
|
};
|
||||||
|
|
||||||
zgrviewer = callPackage ../applications/graphics/zgrviewer {};
|
zgrab2 = callPackage ../tools/security/zgrab2 { };
|
||||||
|
|
||||||
|
zgrviewer = callPackage ../applications/graphics/zgrviewer { };
|
||||||
|
|
||||||
zgv = callPackage ../applications/graphics/zgv {
|
zgv = callPackage ../applications/graphics/zgv {
|
||||||
# Enable the below line for terminal display. Note
|
# Enable the below line for terminal display. Note
|
||||||
|
Loading…
x
Reference in New Issue
Block a user