Merge staging-next into staging
This commit is contained in:
commit
643e7d7b63
@ -11,7 +11,7 @@ let
|
|||||||
# Rootfs diffs for layers 1 and 2 are identical (and empty)
|
# Rootfs diffs for layers 1 and 2 are identical (and empty)
|
||||||
layer1 = pkgs.dockerTools.buildImage { name = "empty"; };
|
layer1 = pkgs.dockerTools.buildImage { name = "empty"; };
|
||||||
layer2 = layer1.overrideAttrs (_: { fromImage = layer1; });
|
layer2 = layer1.overrideAttrs (_: { fromImage = layer1; });
|
||||||
repeatedRootfsDiffs = pkgs.runCommandNoCC "image-with-links.tar" {
|
repeatedRootfsDiffs = pkgs.runCommand "image-with-links.tar" {
|
||||||
nativeBuildInputs = [pkgs.jq];
|
nativeBuildInputs = [pkgs.jq];
|
||||||
} ''
|
} ''
|
||||||
mkdir contents
|
mkdir contents
|
||||||
|
@ -74,9 +74,12 @@ let
|
|||||||
}) (''
|
}) (''
|
||||||
source ${nmt}/bash-lib/assertions.sh
|
source ${nmt}/bash-lib/assertions.sh
|
||||||
vimrc="${writeText "init.vim" neovim-drv.initRc}"
|
vimrc="${writeText "init.vim" neovim-drv.initRc}"
|
||||||
|
luarc="${writeText "init.lua" neovim-drv.luaRcContent}"
|
||||||
|
luarcGeneric="$out/patched.lua"
|
||||||
vimrcGeneric="$out/patched.vim"
|
vimrcGeneric="$out/patched.vim"
|
||||||
mkdir $out
|
mkdir $out
|
||||||
${pkgs.perl}/bin/perl -pe "s|\Q$NIX_STORE\E/[a-z0-9]{32}-|$NIX_STORE/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-|g" < "$vimrc" > "$vimrcGeneric"
|
${pkgs.perl}/bin/perl -pe "s|\Q$NIX_STORE\E/[a-z0-9]{32}-|$NIX_STORE/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-|g" < "$vimrc" > "$vimrcGeneric"
|
||||||
|
${pkgs.perl}/bin/perl -pe "s|\Q$NIX_STORE\E/[a-z0-9]{32}-|$NIX_STORE/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-|g" < "$luarc" > "$luarcGeneric"
|
||||||
'' + buildCommand);
|
'' + buildCommand);
|
||||||
|
|
||||||
in
|
in
|
||||||
@ -89,6 +92,9 @@ rec {
|
|||||||
nvim_with_plugins = wrapNeovim2 "-with-plugins" nvimConfNix;
|
nvim_with_plugins = wrapNeovim2 "-with-plugins" nvimConfNix;
|
||||||
|
|
||||||
singlelinesconfig = runTest (wrapNeovim2 "-single-lines" nvimConfSingleLines) ''
|
singlelinesconfig = runTest (wrapNeovim2 "-single-lines" nvimConfSingleLines) ''
|
||||||
|
assertFileContains \
|
||||||
|
"$luarcGeneric" \
|
||||||
|
"vim.cmd.source \"/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-init.vim"
|
||||||
assertFileContent \
|
assertFileContent \
|
||||||
"$vimrcGeneric" \
|
"$vimrcGeneric" \
|
||||||
"${./init-single-lines.vim}"
|
"${./init-single-lines.vim}"
|
||||||
|
@ -32,16 +32,28 @@ let
|
|||||||
# set to false if you want to control where to save the generated config
|
# set to false if you want to control where to save the generated config
|
||||||
# (e.g., in ~/.config/init.vim or project/.nvimrc)
|
# (e.g., in ~/.config/init.vim or project/.nvimrc)
|
||||||
, wrapRc ? true
|
, wrapRc ? true
|
||||||
, neovimRcContent ? ""
|
# vimL code that should be sourced as part of the generated init.lua file
|
||||||
|
, neovimRcContent ? null
|
||||||
|
# lua code to put into the generated init.lua file
|
||||||
|
, luaRcContent ? ""
|
||||||
# entry to load in packpath
|
# entry to load in packpath
|
||||||
, packpathDirs
|
, packpathDirs
|
||||||
, ...
|
, ...
|
||||||
}:
|
}:
|
||||||
|
assert withPython2 -> throw "Python2 support has been removed from the neovim wrapper, please remove withPython2 and python2Env.";
|
||||||
|
|
||||||
|
stdenv.mkDerivation (finalAttrs:
|
||||||
let
|
let
|
||||||
|
|
||||||
|
rcContent = ''
|
||||||
|
${luaRcContent}
|
||||||
|
'' + lib.optionalString (!isNull neovimRcContent) ''
|
||||||
|
vim.cmd.source "${writeText "init.vim" neovimRcContent}"
|
||||||
|
'';
|
||||||
|
|
||||||
wrapperArgsStr = if lib.isString wrapperArgs then wrapperArgs else lib.escapeShellArgs wrapperArgs;
|
wrapperArgsStr = if lib.isString wrapperArgs then wrapperArgs else lib.escapeShellArgs wrapperArgs;
|
||||||
|
|
||||||
commonWrapperArgs =
|
generatedWrapperArgs =
|
||||||
# vim accepts a limited number of commands so we join them all
|
# vim accepts a limited number of commands so we join them all
|
||||||
[
|
[
|
||||||
"--add-flags" ''--cmd "lua ${providerLuaRc}"''
|
"--add-flags" ''--cmd "lua ${providerLuaRc}"''
|
||||||
@ -66,15 +78,12 @@ let
|
|||||||
finalMakeWrapperArgs =
|
finalMakeWrapperArgs =
|
||||||
[ "${neovim-unwrapped}/bin/nvim" "${placeholder "out"}/bin/nvim" ]
|
[ "${neovim-unwrapped}/bin/nvim" "${placeholder "out"}/bin/nvim" ]
|
||||||
++ [ "--set" "NVIM_SYSTEM_RPLUGIN_MANIFEST" "${placeholder "out"}/rplugin.vim" ]
|
++ [ "--set" "NVIM_SYSTEM_RPLUGIN_MANIFEST" "${placeholder "out"}/rplugin.vim" ]
|
||||||
++ lib.optionals wrapRc [ "--add-flags" "-u ${writeText "init.vim" neovimRcContent}" ]
|
++ lib.optionals finalAttrs.wrapRc [ "--add-flags" "-u ${writeText "init.lua" rcContent}" ]
|
||||||
++ commonWrapperArgs
|
++ finalAttrs.generatedWrapperArgs
|
||||||
;
|
;
|
||||||
|
|
||||||
perlEnv = perl.withPackages (p: [ p.NeovimExt p.Appcpanminus ]);
|
perlEnv = perl.withPackages (p: [ p.NeovimExt p.Appcpanminus ]);
|
||||||
in
|
in {
|
||||||
assert withPython2 -> throw "Python2 support has been removed from the neovim wrapper, please remove withPython2 and python2Env.";
|
|
||||||
|
|
||||||
stdenv.mkDerivation (finalAttrs: {
|
|
||||||
name = "neovim-${lib.getVersion neovim-unwrapped}${extraName}";
|
name = "neovim-${lib.getVersion neovim-unwrapped}${extraName}";
|
||||||
|
|
||||||
__structuredAttrs = true;
|
__structuredAttrs = true;
|
||||||
@ -83,8 +92,8 @@ let
|
|||||||
inherit wrapRc providerLuaRc packpathDirs;
|
inherit wrapRc providerLuaRc packpathDirs;
|
||||||
inherit python3Env rubyEnv;
|
inherit python3Env rubyEnv;
|
||||||
withRuby = rubyEnv != null;
|
withRuby = rubyEnv != null;
|
||||||
inherit wrapperArgs;
|
inherit wrapperArgs generatedWrapperArgs;
|
||||||
|
luaRcContent = rcContent;
|
||||||
# Remove the symlinks created by symlinkJoin which we need to perform
|
# Remove the symlinks created by symlinkJoin which we need to perform
|
||||||
# extra actions upon
|
# extra actions upon
|
||||||
postBuild = lib.optionalString stdenv.isLinux ''
|
postBuild = lib.optionalString stdenv.isLinux ''
|
||||||
@ -112,7 +121,7 @@ let
|
|||||||
''
|
''
|
||||||
+ lib.optionalString (manifestRc != null) (let
|
+ lib.optionalString (manifestRc != null) (let
|
||||||
manifestWrapperArgs =
|
manifestWrapperArgs =
|
||||||
[ "${neovim-unwrapped}/bin/nvim" "${placeholder "out"}/bin/nvim-wrapper" ] ++ commonWrapperArgs;
|
[ "${neovim-unwrapped}/bin/nvim" "${placeholder "out"}/bin/nvim-wrapper" ] ++ finalAttrs.generatedWrapperArgs;
|
||||||
in ''
|
in ''
|
||||||
echo "Generating remote plugin manifest"
|
echo "Generating remote plugin manifest"
|
||||||
export NVIM_RPLUGIN_MANIFEST=$out/rplugin.vim
|
export NVIM_RPLUGIN_MANIFEST=$out/rplugin.vim
|
||||||
|
@ -11,6 +11,7 @@
|
|||||||
, libxml2
|
, libxml2
|
||||||
, libzip
|
, libzip
|
||||||
, ncurses
|
, ncurses
|
||||||
|
, xlsSupport ? false
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
@ -35,11 +36,12 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
gnuplot
|
gnuplot
|
||||||
libxls
|
|
||||||
libxlsxwriter
|
|
||||||
libxml2
|
libxml2
|
||||||
libzip
|
libzip
|
||||||
ncurses
|
ncurses
|
||||||
|
] ++ lib.optionals xlsSupport [
|
||||||
|
libxls
|
||||||
|
libxlsxwriter
|
||||||
];
|
];
|
||||||
|
|
||||||
makeFlags = [ "prefix=${placeholder "out"}" ];
|
makeFlags = [ "prefix=${placeholder "out"}" ];
|
||||||
|
@ -6,6 +6,7 @@
|
|||||||
, nodejs
|
, nodejs
|
||||||
, prefetch-yarn-deps
|
, prefetch-yarn-deps
|
||||||
, yarn
|
, yarn
|
||||||
|
, testers
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation (finalAttrs: {
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
@ -57,7 +58,7 @@ stdenv.mkDerivation (finalAttrs: {
|
|||||||
yarn --offline --production install
|
yarn --offline --production install
|
||||||
|
|
||||||
mkdir -p "$out/lib/node_modules/gitmoji-cli"
|
mkdir -p "$out/lib/node_modules/gitmoji-cli"
|
||||||
cp -r lib node_modules "$out/lib/node_modules/gitmoji-cli"
|
cp -r lib node_modules package.json "$out/lib/node_modules/gitmoji-cli"
|
||||||
|
|
||||||
makeWrapper "${nodejs}/bin/node" "$out/bin/gitmoji" \
|
makeWrapper "${nodejs}/bin/node" "$out/bin/gitmoji" \
|
||||||
--add-flags "$out/lib/node_modules/gitmoji-cli/lib/cli.js"
|
--add-flags "$out/lib/node_modules/gitmoji-cli/lib/cli.js"
|
||||||
@ -65,6 +66,12 @@ stdenv.mkDerivation (finalAttrs: {
|
|||||||
runHook postInstall
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
passthru.tests = {
|
||||||
|
version = testers.testVersion {
|
||||||
|
package = finalAttrs.finalPackage;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Gitmoji client for using emojis on commit messages";
|
description = "Gitmoji client for using emojis on commit messages";
|
||||||
homepage = "https://github.com/carloscuesta/gitmoji-cli";
|
homepage = "https://github.com/carloscuesta/gitmoji-cli";
|
||||||
|
@ -1,7 +1,17 @@
|
|||||||
{ lib, stdenv, writeScript, fetchFromGitHub, z3, ocamlPackages, makeWrapper, installShellFiles, removeReferencesTo }:
|
{ callPackage
|
||||||
|
, fetchFromGitHub
|
||||||
|
, installShellFiles
|
||||||
|
, lib
|
||||||
|
, makeWrapper
|
||||||
|
, ocamlPackages
|
||||||
|
, removeReferencesTo
|
||||||
|
, stdenv
|
||||||
|
, writeScript
|
||||||
|
, z3
|
||||||
|
}:
|
||||||
|
|
||||||
|
let
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
|
||||||
pname = "fstar";
|
|
||||||
version = "2023.09.03";
|
version = "2023.09.03";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
@ -11,66 +21,54 @@ stdenv.mkDerivation rec {
|
|||||||
hash = "sha256-ymoP5DvaLdrdwJcnhZnLEvwNxUFzhkICajPyK4lvacc=";
|
hash = "sha256-ymoP5DvaLdrdwJcnhZnLEvwNxUFzhkICajPyK4lvacc=";
|
||||||
};
|
};
|
||||||
|
|
||||||
strictDeps = true;
|
fstar-dune = ocamlPackages.callPackage ./dune.nix { inherit version src; };
|
||||||
|
|
||||||
|
fstar-ulib = callPackage ./ulib.nix { inherit version src fstar-dune z3; };
|
||||||
|
|
||||||
|
in
|
||||||
|
|
||||||
|
stdenv.mkDerivation {
|
||||||
|
pname = "fstar";
|
||||||
|
inherit version src;
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
z3
|
|
||||||
makeWrapper
|
|
||||||
installShellFiles
|
installShellFiles
|
||||||
|
makeWrapper
|
||||||
removeReferencesTo
|
removeReferencesTo
|
||||||
] ++ (with ocamlPackages; [
|
|
||||||
ocaml
|
|
||||||
dune_3
|
|
||||||
findlib
|
|
||||||
ocamlbuild
|
|
||||||
menhir
|
|
||||||
]);
|
|
||||||
|
|
||||||
buildInputs = with ocamlPackages; [
|
|
||||||
batteries
|
|
||||||
zarith
|
|
||||||
stdint
|
|
||||||
yojson
|
|
||||||
fileutils
|
|
||||||
memtrace
|
|
||||||
menhirLib
|
|
||||||
pprint
|
|
||||||
sedlex
|
|
||||||
ppxlib
|
|
||||||
ppx_deriving
|
|
||||||
ppx_deriving_yojson
|
|
||||||
process
|
|
||||||
];
|
];
|
||||||
|
|
||||||
makeFlags = [ "PREFIX=$(out)" ];
|
inherit (fstar-dune) propagatedBuildInputs;
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
dontBuild = true;
|
||||||
|
|
||||||
postPatch = ''
|
installPhase = ''
|
||||||
patchShebangs ulib/install-ulib.sh
|
mkdir $out
|
||||||
'';
|
|
||||||
|
|
||||||
preInstall = ''
|
CP="cp -r --no-preserve=mode"
|
||||||
mkdir -p $out/lib/ocaml/${ocamlPackages.ocaml.version}/site-lib/fstarlib
|
$CP ${fstar-dune}/* $out
|
||||||
'';
|
$CP ${fstar-ulib}/* $out
|
||||||
postInstall = ''
|
|
||||||
# Remove build artifacts
|
PREFIX=$out make -C src/ocaml-output install-sides
|
||||||
find $out -name _build -type d | xargs -I{} rm -rf "{}"
|
|
||||||
|
chmod +x $out/bin/fstar.exe
|
||||||
|
wrapProgram $out/bin/fstar.exe --prefix PATH ":" ${z3}/bin
|
||||||
remove-references-to -t '${ocamlPackages.ocaml}' $out/bin/fstar.exe
|
remove-references-to -t '${ocamlPackages.ocaml}' $out/bin/fstar.exe
|
||||||
|
|
||||||
wrapProgram $out/bin/fstar.exe --prefix PATH ":" "${z3}/bin"
|
substituteInPlace $out/lib/ocaml/${ocamlPackages.ocaml.version}/site-lib/fstar/dune-package \
|
||||||
|
--replace ${fstar-dune} $out
|
||||||
|
|
||||||
installShellCompletion --bash .completion/bash/fstar.exe.bash
|
installShellCompletion --bash .completion/bash/fstar.exe.bash
|
||||||
installShellCompletion --fish .completion/fish/fstar.exe.fish
|
installShellCompletion --fish .completion/fish/fstar.exe.fish
|
||||||
installShellCompletion --zsh --name _fstar.exe .completion/zsh/__fstar.exe
|
installShellCompletion --zsh --name _fstar.exe .completion/zsh/__fstar.exe
|
||||||
'';
|
'';
|
||||||
|
|
||||||
passthru.updateScript = writeScript "update-fstar" ''
|
passthru.updateScript = writeScript "update-fstar" ''
|
||||||
#!/usr/bin/env nix-shell
|
#!/usr/bin/env nix-shell
|
||||||
#!nix-shell -i bash -p git gnugrep common-updater-scripts
|
#!nix-shell -i bash -p git gnugrep common-updater-scripts
|
||||||
set -eu -o pipefail
|
set -eu -o pipefail
|
||||||
|
|
||||||
version="$(git ls-remote --tags git@github.com:FStarLang/FStar.git | grep -Po 'v\K\d{4}\.\d{2}\.\d{2}' | sort | tail -n1)"
|
version="$(git ls-remote --tags git@github.com:FStarLang/FStar.git | grep -Po 'v\K\d{4}\.\d{2}\.\d{2}' | sort | tail -n1)"
|
||||||
update-source-version fstar "$version"
|
update-source-version fstar "$version"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
51
pkgs/development/compilers/fstar/dune.nix
Normal file
51
pkgs/development/compilers/fstar/dune.nix
Normal file
@ -0,0 +1,51 @@
|
|||||||
|
{ batteries
|
||||||
|
, buildDunePackage
|
||||||
|
, memtrace
|
||||||
|
, menhir
|
||||||
|
, menhirLib
|
||||||
|
, pprint
|
||||||
|
, ppx_deriving
|
||||||
|
, ppx_deriving_yojson
|
||||||
|
, ppxlib
|
||||||
|
, process
|
||||||
|
, sedlex
|
||||||
|
, src
|
||||||
|
, stdint
|
||||||
|
, version
|
||||||
|
, yojson
|
||||||
|
, zarith
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildDunePackage {
|
||||||
|
pname = "fstar";
|
||||||
|
inherit version src;
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
patchShebangs ocaml/fstar-lib/make_fstar_version.sh
|
||||||
|
cd ocaml
|
||||||
|
'';
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
menhir
|
||||||
|
];
|
||||||
|
|
||||||
|
buildInputs = [
|
||||||
|
memtrace
|
||||||
|
];
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
batteries
|
||||||
|
menhirLib
|
||||||
|
pprint
|
||||||
|
ppx_deriving
|
||||||
|
ppx_deriving_yojson
|
||||||
|
ppxlib
|
||||||
|
process
|
||||||
|
sedlex
|
||||||
|
stdint
|
||||||
|
yojson
|
||||||
|
zarith
|
||||||
|
];
|
||||||
|
|
||||||
|
enableParallelBuilding = true;
|
||||||
|
}
|
26
pkgs/development/compilers/fstar/ulib.nix
Normal file
26
pkgs/development/compilers/fstar/ulib.nix
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
{ fstar-dune
|
||||||
|
, src
|
||||||
|
, stdenv
|
||||||
|
, version
|
||||||
|
, z3
|
||||||
|
}:
|
||||||
|
|
||||||
|
stdenv.mkDerivation {
|
||||||
|
pname = "fstar-ulib";
|
||||||
|
inherit version src;
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
z3
|
||||||
|
];
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
mkdir -p bin
|
||||||
|
cp ${fstar-dune}/bin/fstar.exe bin
|
||||||
|
patchShebangs ulib/install-ulib.sh
|
||||||
|
cd ulib
|
||||||
|
'';
|
||||||
|
|
||||||
|
makeFlags = [ "PREFIX=$(out)" ];
|
||||||
|
|
||||||
|
enableParallelBuilding = true;
|
||||||
|
}
|
@ -4,11 +4,11 @@
|
|||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "leptonica";
|
pname = "leptonica";
|
||||||
version = "1.83.1";
|
version = "1.84.0";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://github.com/DanBloomberg/${pname}/releases/download/${version}/${pname}-${version}.tar.gz";
|
url = "https://github.com/DanBloomberg/${pname}/releases/download/${version}/${pname}-${version}.tar.gz";
|
||||||
hash = "sha256-jxhhXgdDr3339QmFxzDfzwyTVIBz0fVmIeQVaotU090=";
|
hash = "sha256-QqApMSod8M1WQBlal5voG/ZiMOFTFkysRWR4RU5yBtU=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "dynalite-devices";
|
pname = "dynalite-devices";
|
||||||
version = "0.47";
|
version = "0.1.48";
|
||||||
format = "setuptools";
|
format = "setuptools";
|
||||||
|
|
||||||
disabled = pythonOlder "3.7";
|
disabled = pythonOlder "3.7";
|
||||||
@ -18,7 +18,7 @@ buildPythonPackage rec {
|
|||||||
owner = "ziv1234";
|
owner = "ziv1234";
|
||||||
repo = "python-dynalite-devices";
|
repo = "python-dynalite-devices";
|
||||||
rev = "refs/tags/v${version}";
|
rev = "refs/tags/v${version}";
|
||||||
hash = "sha256-kJo4e5vhgWzijLUhQd9VBVk1URpg9SXhOA60dJYashM=";
|
hash = "sha256-i88aIsRNsToSceQdwfspJg+Y5MO5zC4O6EkyhrYR27g=";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [
|
patches = [
|
||||||
@ -46,6 +46,9 @@ buildPythonPackage rec {
|
|||||||
"dynalite_devices_lib"
|
"dynalite_devices_lib"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
# it would use the erroneous tag v0.47
|
||||||
|
passthru.skipBulkUpdate = false;
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "An unofficial Dynalite DyNET interface creating devices";
|
description = "An unofficial Dynalite DyNET interface creating devices";
|
||||||
homepage = "https://github.com/ziv1234/python-dynalite-devices";
|
homepage = "https://github.com/ziv1234/python-dynalite-devices";
|
||||||
|
40
pkgs/development/python-modules/dynalite-panel/default.nix
Normal file
40
pkgs/development/python-modules/dynalite-panel/default.nix
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, pythonOlder
|
||||||
|
, fetchPypi
|
||||||
|
, setuptools
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "dynalite-panel";
|
||||||
|
version = "0.0.4";
|
||||||
|
pyproject = true;
|
||||||
|
|
||||||
|
disabled = pythonOlder "3.4";
|
||||||
|
|
||||||
|
src = fetchPypi {
|
||||||
|
inherit pname version;
|
||||||
|
hash = "sha256-m7nQzbxRe2qXUWAMeQlDZtc9F01DsbTzF/kI0ci3TFE=";
|
||||||
|
};
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace pyproject.toml \
|
||||||
|
--replace "~=" ">="
|
||||||
|
'';
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
setuptools
|
||||||
|
];
|
||||||
|
|
||||||
|
pythonImportsCheck = [ "dynalite_panel" ];
|
||||||
|
|
||||||
|
# upstream has no tests
|
||||||
|
doCheck = false;
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "Dynalite panel for Home Assistant";
|
||||||
|
homepage = "https://github.com/ziv1234/dynalitepanel";
|
||||||
|
license = lib.licenses.asl20;
|
||||||
|
maintainers = with lib.maintainers; [ dotlambda ];
|
||||||
|
};
|
||||||
|
}
|
29
pkgs/development/python-modules/facenet-pytorch/default.nix
Normal file
29
pkgs/development/python-modules/facenet-pytorch/default.nix
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
{ buildPythonPackage
|
||||||
|
, fetchPypi
|
||||||
|
, pillow
|
||||||
|
, torchvision
|
||||||
|
, lib
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "facenet-pytorch";
|
||||||
|
version = "2.5.3";
|
||||||
|
|
||||||
|
src = fetchPypi {
|
||||||
|
inherit pname version;
|
||||||
|
hash = "sha256-mMxbQqSPg3wCPrkvKlcc1KxqRmh8XnG56ZtJEIcnPis=";
|
||||||
|
};
|
||||||
|
|
||||||
|
doCheck = false; # pypi version doesn't ship with tests
|
||||||
|
|
||||||
|
pythonImportsCheck = ["facenet_pytorch"];
|
||||||
|
|
||||||
|
propagatedBuildInputs = [ pillow torchvision ];
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "Pretrained Pytorch face detection (MTCNN) and facial recognition (InceptionResnet) models";
|
||||||
|
homepage = "https://github.com/timesler/facenet-pytorch";
|
||||||
|
license = lib.licenses.mit;
|
||||||
|
maintainers = [ lib.maintainers.lucasew ];
|
||||||
|
};
|
||||||
|
}
|
@ -11,13 +11,13 @@ assert enableWasmEval && stdenv.isDarwin -> builtins.throw "building with wasm o
|
|||||||
|
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
pname = "open-policy-agent";
|
pname = "open-policy-agent";
|
||||||
version = "0.58.0";
|
version = "0.60.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "open-policy-agent";
|
owner = "open-policy-agent";
|
||||||
repo = "opa";
|
repo = "opa";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
hash = "sha256-zDTL/kP0ldPiZhLqLQmpIoDaq979KNDVJyXp93sPZAk=";
|
hash = "sha256-E+94J83IDLuEayrlwIp8TL+GZeUCkQmSyNL8N7mvK6o=";
|
||||||
};
|
};
|
||||||
|
|
||||||
vendorHash = null;
|
vendorHash = null;
|
||||||
|
@ -100,6 +100,10 @@ stdenv.mkDerivation {
|
|||||||
them, it undoes the --set-rpath. this prevents that. */
|
them, it undoes the --set-rpath. this prevents that. */
|
||||||
dontPatchELF = true;
|
dontPatchELF = true;
|
||||||
|
|
||||||
|
# fortify hardening makes the filter crash
|
||||||
|
# https://github.com/NixOS/nixpkgs/issues/276125
|
||||||
|
hardeningDisable = [ "fortify3" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Canon InkJet printer drivers for the iP5400, MP520, MP210, MP140, iP3500, and MP610 series. (MP520 drivers also work for MX700.)";
|
description = "Canon InkJet printer drivers for the iP5400, MP520, MP210, MP140, iP3500, and MP610 series. (MP520 drivers also work for MX700.)";
|
||||||
homepage = "http://support-asia.canon-asia.com/content/EN/0100084101.html";
|
homepage = "http://support-asia.canon-asia.com/content/EN/0100084101.html";
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
{ buildGoModule, avahi, libusb1, pkg-config, lib, fetchFromGitHub, ronn }:
|
{ buildGoModule, avahi, libusb1, pkg-config, lib, fetchFromGitHub, ronn }:
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
pname = "ipp-usb";
|
pname = "ipp-usb";
|
||||||
version = "0.9.23";
|
version = "0.9.24";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "openprinting";
|
owner = "openprinting";
|
||||||
repo = "ipp-usb";
|
repo = "ipp-usb";
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "sha256-sbPQWKqkTaD3kLNs0noVIzAN9cwDEaULsqO7SMQH2Jo=";
|
sha256 = "sha256-06Kb4s9oN53llz/Yya45ig5rd86VvlcK+vRh3bL/MAw=";
|
||||||
};
|
};
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
@ -24,7 +24,7 @@ buildGoModule rec {
|
|||||||
nativeBuildInputs = [ pkg-config ronn ];
|
nativeBuildInputs = [ pkg-config ronn ];
|
||||||
buildInputs = [ libusb1 avahi ];
|
buildInputs = [ libusb1 avahi ];
|
||||||
|
|
||||||
vendorHash = "sha256-KwW6KgopjF4tVo8eB4OtpXF5R8jfrJ9nibNmaN8U4l8=";
|
vendorHash = "sha256-61vCER1yR70Pn+CrfTai1sgiQQLU6msb9jxushus5W4=";
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
# to accomodate the makefile
|
# to accomodate the makefile
|
||||||
|
@ -5,53 +5,47 @@
|
|||||||
|
|
||||||
python3.pkgs.buildPythonApplication rec {
|
python3.pkgs.buildPythonApplication rec {
|
||||||
pname = "appdaemon";
|
pname = "appdaemon";
|
||||||
version = "4.2.1";
|
version = "4.4.2";
|
||||||
format = "setuptools";
|
pyproject = true;
|
||||||
|
|
||||||
disabled = python3.pythonOlder "3.7";
|
disabled = python3.pythonOlder "3.8";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "AppDaemon";
|
owner = "AppDaemon";
|
||||||
repo = "appdaemon";
|
repo = "appdaemon";
|
||||||
rev = "refs/tags/${version}";
|
rev = "refs/tags/${version}";
|
||||||
hash = "sha256-4sN0optkMmyWb5Cd3F7AhcXYHh7aidJE/bieYMEKgSY=";
|
hash = "sha256-T3InE4J4qYeFJTq6nrW8y5BOA7Z0n3t9eVpl641r/xk=";
|
||||||
};
|
};
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
# relax dependencies
|
# relax dependencies
|
||||||
sed -i 's/==/>=/' requirements.txt
|
sed -i 's/~=/>=/' pyproject.toml
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
nativeBuildInputs = with python3.pkgs; [
|
||||||
|
setuptools
|
||||||
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = with python3.pkgs; [
|
propagatedBuildInputs = with python3.pkgs; [
|
||||||
aiodns
|
|
||||||
aiohttp
|
aiohttp
|
||||||
aiohttp-jinja2
|
aiohttp-jinja2
|
||||||
astral
|
astral
|
||||||
azure-keyvault-secrets
|
|
||||||
azure-mgmt-compute
|
|
||||||
azure-mgmt-resource
|
|
||||||
azure-mgmt-storage
|
|
||||||
azure-storage-blob
|
|
||||||
bcrypt
|
bcrypt
|
||||||
faust-cchardet
|
|
||||||
deepdiff
|
deepdiff
|
||||||
feedparser
|
feedparser
|
||||||
iso8601
|
iso8601
|
||||||
jinja2
|
|
||||||
paho-mqtt
|
paho-mqtt
|
||||||
pid
|
pid
|
||||||
pygments
|
|
||||||
python-dateutil
|
python-dateutil
|
||||||
python-engineio
|
|
||||||
python-socketio
|
python-socketio
|
||||||
pytz
|
pytz
|
||||||
pyyaml
|
pyyaml
|
||||||
requests
|
requests
|
||||||
sockjs
|
sockjs
|
||||||
uvloop
|
uvloop
|
||||||
voluptuous
|
|
||||||
websocket-client
|
websocket-client
|
||||||
yarl
|
tomli
|
||||||
|
tomli-w
|
||||||
];
|
];
|
||||||
|
|
||||||
# no tests implemented
|
# no tests implemented
|
||||||
@ -62,7 +56,7 @@ python3.pkgs.buildPythonApplication rec {
|
|||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Sandboxed Python execution environment for writing automation apps for Home Assistant";
|
description = "Sandboxed Python execution environment for writing automation apps for Home Assistant";
|
||||||
homepage = "https://github.com/AppDaemon/appdaemon";
|
homepage = "https://github.com/AppDaemon/appdaemon";
|
||||||
changelog = "https://github.com/AppDaemon/appdaemon/blob/${version}/docs/HISTORY.rst";
|
changelog = "https://github.com/AppDaemon/appdaemon/blob/${version}/docs/HISTORY.md";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = teams.home-assistant.members;
|
maintainers = teams.home-assistant.members;
|
||||||
};
|
};
|
||||||
|
@ -1041,13 +1041,14 @@
|
|||||||
aiohttp-fast-url-dispatcher
|
aiohttp-fast-url-dispatcher
|
||||||
aiohttp-zlib-ng
|
aiohttp-zlib-ng
|
||||||
dynalite-devices
|
dynalite-devices
|
||||||
|
dynalite-panel
|
||||||
fnv-hash-fast
|
fnv-hash-fast
|
||||||
home-assistant-frontend
|
home-assistant-frontend
|
||||||
janus
|
janus
|
||||||
pillow
|
pillow
|
||||||
psutil-home-assistant
|
psutil-home-assistant
|
||||||
sqlalchemy
|
sqlalchemy
|
||||||
]; # missing inputs: dynalite-panel
|
];
|
||||||
"eafm" = ps: with ps; [
|
"eafm" = ps: with ps; [
|
||||||
aioeafm
|
aioeafm
|
||||||
];
|
];
|
||||||
@ -5714,6 +5715,7 @@
|
|||||||
"dunehd"
|
"dunehd"
|
||||||
"duotecno"
|
"duotecno"
|
||||||
"dwd_weather_warnings"
|
"dwd_weather_warnings"
|
||||||
|
"dynalite"
|
||||||
"eafm"
|
"eafm"
|
||||||
"easyenergy"
|
"easyenergy"
|
||||||
"ecobee"
|
"ecobee"
|
||||||
|
@ -3476,6 +3476,8 @@ self: super: with self; {
|
|||||||
|
|
||||||
dynalite-devices = callPackage ../development/python-modules/dynalite-devices { };
|
dynalite-devices = callPackage ../development/python-modules/dynalite-devices { };
|
||||||
|
|
||||||
|
dynalite-panel = callPackage ../development/python-modules/dynalite-panel { };
|
||||||
|
|
||||||
dynd = callPackage ../development/python-modules/dynd { };
|
dynd = callPackage ../development/python-modules/dynd { };
|
||||||
|
|
||||||
e3-core = callPackage ../development/python-modules/e3-core { };
|
e3-core = callPackage ../development/python-modules/e3-core { };
|
||||||
@ -3838,6 +3840,8 @@ self: super: with self; {
|
|||||||
|
|
||||||
face-recognition = callPackage ../development/python-modules/face-recognition { };
|
face-recognition = callPackage ../development/python-modules/face-recognition { };
|
||||||
|
|
||||||
|
facenet-pytorch = callPackage ../development/python-modules/facenet-pytorch { };
|
||||||
|
|
||||||
face-recognition-models = callPackage ../development/python-modules/face-recognition/models.nix { };
|
face-recognition-models = callPackage ../development/python-modules/face-recognition/models.nix { };
|
||||||
|
|
||||||
factory-boy = callPackage ../development/python-modules/factory-boy { };
|
factory-boy = callPackage ../development/python-modules/factory-boy { };
|
||||||
|
Loading…
Reference in New Issue
Block a user