Merge staging-next into staging
This commit is contained in:
commit
d6fe4d729a
13 changed files with 239 additions and 21 deletions
|
@ -2,10 +2,10 @@
|
|||
|
||||
let
|
||||
pname = "framesh";
|
||||
version = "0.5.0-beta.21";
|
||||
version = "0.5.0-beta.22";
|
||||
src = fetchurl {
|
||||
url = "https://github.com/floating/frame/releases/download/v${version}/Frame-${version}.AppImage";
|
||||
sha256 = "sha256-rWZ7oC74qrylNPIfBzHnNMcsYjccGL2zeXFab9OwBNA=";
|
||||
sha256 = "sha256-/y7Pf1ADtz0CBeKKCHtSPOYvU7HCpq7hM/J4Ddq1XiA=";
|
||||
};
|
||||
|
||||
appimageContents = appimageTools.extractType2 {
|
||||
|
|
|
@ -3,13 +3,13 @@
|
|||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "namecoin" + lib.optionalString (!withGui) "d";
|
||||
version = "22.0";
|
||||
version = "23.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "namecoin";
|
||||
repo = "namecoin-core";
|
||||
rev = "nc${version}";
|
||||
sha256 = "sha256-Z3CLDe0c4IpFPPTie8yoh0kcuvGmiegSgl4ITNSDkgY=";
|
||||
sha256 = "sha256-MfqJ7EcJvlQ01Mr1RQpXVNUlGIwNqFTxrVwGa+Hus+A=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
|
|
|
@ -10,13 +10,13 @@
|
|||
}:
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "polkadot";
|
||||
version = "0.9.26";
|
||||
version = "0.9.27";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "paritytech";
|
||||
repo = "polkadot";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-f/E4aK7eUlNgd9kEDjYAiNaeMTlKu1aqo8IjB++/Yts=";
|
||||
sha256 = "sha256-abDkDkFXBG4C7lvE9g6cvUYTfQt7ObZ+Ya8V0W7ASBE=";
|
||||
|
||||
# the build process of polkadot requires a .git folder in order to determine
|
||||
# the git commit hash that is being built and add it to the version string.
|
||||
|
@ -32,7 +32,7 @@ rustPlatform.buildRustPackage rec {
|
|||
'';
|
||||
};
|
||||
|
||||
cargoSha256 = "sha256-tQ5XFv5P5EE33mKsQCBqAlJFu4+uG6ArVV17W8qbyLg=";
|
||||
cargoSha256 = "sha256-xDjHu6JARIFy2fVQMGhkdU9Qcz/aqumBFe4MjlH0TCY=";
|
||||
|
||||
buildInputs = lib.optional stdenv.isDarwin [ Security ];
|
||||
|
||||
|
|
|
@ -25,11 +25,11 @@ let
|
|||
in
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "wasabiwallet";
|
||||
version = "1.1.13.1";
|
||||
version = "2.0.1.3";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/zkSNACKs/WalletWasabi/releases/download/v${version}/Wasabi-${version}.tar.gz";
|
||||
sha256 = "sha256-AtsNbUqEBQx0DPWR2LjNl7pdviYmvkv3bYKNBoeJHbw=";
|
||||
sha256 = "sha256-cATqg/n4/BDQtuCVjHAx3EfMLmlX5EjeQ01gavy/L8o=";
|
||||
};
|
||||
|
||||
dontBuild = true;
|
||||
|
|
92
pkgs/development/interpreters/kerf/default.nix
Normal file
92
pkgs/development/interpreters/kerf/default.nix
Normal file
|
@ -0,0 +1,92 @@
|
|||
{ lib, stdenv, fetchFromGitHub
|
||||
, libedit, zlib, ncurses, expect
|
||||
|
||||
# darwin only below
|
||||
, Accelerate, CoreGraphics, CoreVideo
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "kerf";
|
||||
version = "unstable-2022-08-05";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "kevinlawler";
|
||||
repo = "kerf1";
|
||||
rev = "4ec5b592b310b96d33654d20d6a511e6fffc0f9d";
|
||||
hash = "sha256-0sU2zOk5I69lQyrn1g0qsae7S/IBT6eA/911qp0GNkk=";
|
||||
};
|
||||
|
||||
sourceRoot = "source/src";
|
||||
buildInputs = [ libedit zlib ncurses ]
|
||||
++ lib.optional stdenv.isDarwin ([
|
||||
Accelerate
|
||||
] ++ lib.optional stdenv.isx86_64 /* && isDarwin */ [
|
||||
CoreGraphics CoreVideo
|
||||
]);
|
||||
|
||||
checkInputs = [ expect ];
|
||||
doCheck = true;
|
||||
|
||||
makeFlags = [ "kerf" "kerf_test" ];
|
||||
|
||||
# avoid a huge amount of warnings to make failures clearer
|
||||
NIX_CFLAGS_COMPILE = map (x: "-Wno-${x}") [
|
||||
"void-pointer-to-int-cast"
|
||||
"format"
|
||||
"implicit-function-declaration"
|
||||
"gnu-variable-sized-type-not-at-end"
|
||||
"unused-result"
|
||||
] ++ lib.optional stdenv.isDarwin [ "-fcommon" ];
|
||||
|
||||
patchPhase = ''
|
||||
substituteInPlace ./Makefile \
|
||||
--replace 'CPUS ?=' 'CPUS = $(NIX_BUILD_CORES) #' \
|
||||
--replace 'termcap' 'ncurses'
|
||||
'';
|
||||
|
||||
# the kerf executable uses ncurses to create a fancy terminal for input and
|
||||
# reads terminal keystrokes directly, so it doesn't read from stdin as
|
||||
# expected, hence why we use this fancy expect script to run the test exe and
|
||||
# send 'quit' to the prompt after it finishes.
|
||||
checkPhase = ''
|
||||
expect <<EOD
|
||||
set timeout 60
|
||||
spawn ./kerf_test
|
||||
expect {
|
||||
"Passed" {}
|
||||
"Failed" { exit 1 }
|
||||
timeout { exit 1 }
|
||||
}
|
||||
expect {
|
||||
"KeRF> " {send "quit\r"}
|
||||
timeout { exit 1 }
|
||||
}
|
||||
expect {
|
||||
"\[DEBUG\] OK: Done OK." {}
|
||||
"\[DEBUG\] FAILED: Debug failure." { exit 1 }
|
||||
timeout { exit 1 }
|
||||
}
|
||||
exit 0
|
||||
EOD
|
||||
'';
|
||||
|
||||
installPhase = "install -D kerf $out/bin/kerf";
|
||||
|
||||
meta = with lib; {
|
||||
description = "Columnar tick database and time-series language";
|
||||
longDescription = ''
|
||||
Kerf is a columnar tick database and small programming
|
||||
language that is a superset of JSON and SQL. It can be
|
||||
used for local analytics, timeseries, logfile processing,
|
||||
and more.
|
||||
'';
|
||||
license = with licenses; [ bsd2 ];
|
||||
homepage = "https://github.com/kevinlawler/kerf1";
|
||||
platforms = platforms.unix;
|
||||
maintainers = with maintainers; [ thoughtpolice ];
|
||||
|
||||
# aarch64-linux seems hopeless, with over 2,000 warnings
|
||||
# generated?
|
||||
broken = (stdenv.isLinux && stdenv.isAarch64);
|
||||
};
|
||||
}
|
|
@ -70,5 +70,8 @@ in buildPythonPackage rec {
|
|||
license = licenses.mit;
|
||||
platforms = [ "x86_64-linux" ];
|
||||
maintainers = with maintainers; [ hyphon81 ];
|
||||
|
||||
# See https://github.com/NixOS/nixpkgs/pull/179912#issuecomment-1206265922.
|
||||
broken = true;
|
||||
};
|
||||
}
|
||||
|
|
89
pkgs/development/python-modules/etils/default.nix
Normal file
89
pkgs/development/python-modules/etils/default.nix
Normal file
|
@ -0,0 +1,89 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, pythonOlder
|
||||
, flit-core
|
||||
|
||||
# tests
|
||||
, chex
|
||||
, jaxlib
|
||||
, pytest-subtests
|
||||
, pytest-xdist
|
||||
, pytestCheckHook
|
||||
, yapf
|
||||
|
||||
# optional
|
||||
, jupyter
|
||||
, mediapy
|
||||
, numpy
|
||||
, importlib-resources
|
||||
, typing-extensions
|
||||
, zipp
|
||||
, absl-py
|
||||
, tqdm
|
||||
, dm-tree
|
||||
, jax
|
||||
, tensorflow
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "etils";
|
||||
version = "0.6.0";
|
||||
format = "pyproject";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-ZnckEFGDXQ2xHElHvK2Tj1e1HqECKQYk+JLx5OUbcOU=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
flit-core
|
||||
];
|
||||
|
||||
passthru.optional-dependencies = rec {
|
||||
array-types = enp;
|
||||
ecolab = [ jupyter numpy mediapy ] ++ enp ++ epy;
|
||||
edc = epy;
|
||||
enp = [ numpy ] ++ epy;
|
||||
epath = [ importlib-resources typing-extensions zipp ] ++ epy;
|
||||
epy = [ typing-extensions ];
|
||||
etqdm = [ absl-py tqdm ] ++ epy;
|
||||
etree = array-types ++ epy ++ enp ++ etqdm;
|
||||
etree-dm = [ dm-tree ] ++ etree;
|
||||
etree-jax = [ jax ] ++ etree;
|
||||
etree-tf = [ tensorflow etree ] ++ etree;
|
||||
all = array-types ++ ecolab ++ edc ++ enp ++ epath ++ epy ++ etqdm
|
||||
++ etree ++ etree-dm ++ etree-jax ++ etree-tf;
|
||||
};
|
||||
|
||||
doCheck = false; # disable tests until https://github.com/NixOS/nixpkgs/issues/185273 is resolved
|
||||
|
||||
pythonImportsCheck = [
|
||||
"etils"
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
chex
|
||||
jaxlib
|
||||
pytest-subtests
|
||||
pytest-xdist
|
||||
pytestCheckHook
|
||||
yapf
|
||||
]
|
||||
++ passthru.optional-dependencies.all;
|
||||
|
||||
disabledTests = [
|
||||
"test_repr" # known to fail on Python 3.10, see https://github.com/google/etils/issues/143
|
||||
"test_public_access" # requires network access
|
||||
"test_resource_path" # known to fail on Python 3.10, see https://github.com/google/etils/issues/143
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Collection of eclectic utils for python";
|
||||
homepage = "https://github.com/google/etils";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ mcwitt ];
|
||||
};
|
||||
}
|
|
@ -1,11 +1,30 @@
|
|||
{ stdenv, lib, callPackage, fetchFromGitHub
|
||||
, fetchurl, runCommand, unzip, bchunk, p7zip
|
||||
, cmake, pkg-config, makeWrapper
|
||||
, zlib, bzip2, libpng
|
||||
, dialog, python3, cdparanoia
|
||||
, dialog, python3, cdparanoia, ffmpeg
|
||||
}:
|
||||
|
||||
let
|
||||
stratagus = callPackage ./stratagus.nix {};
|
||||
|
||||
dataDownload = fetchurl {
|
||||
url = "https://archive.org/download/warcraft-ii-tides-of-darkness_202105/Warcess.zip";
|
||||
sha256 = "0yxgvf8xpv1w2bjmny4a38pa3xcdgqckk9abj21ilkc5zqzqmm9b";
|
||||
};
|
||||
|
||||
data = runCommand "warcraft2" {
|
||||
buildInputs = [ unzip bchunk p7zip ];
|
||||
meta.license = lib.licenses.unfree;
|
||||
} ''
|
||||
unzip ${dataDownload} "Warcraft.II.Tides.of.Darkness/Warcraft II - Tides of Darkness (1995)/games/WarcrafD/cd/"{WC2BTDP.img,WC2BTDP.cue}
|
||||
bchunk "Warcraft.II.Tides.of.Darkness/Warcraft II - Tides of Darkness (1995)/games/WarcrafD/cd/"{WC2BTDP.img,WC2BTDP.cue} WC2BTDP
|
||||
rm -r Warcraft.II.Tides.of.Darkness
|
||||
7z x WC2BTDP01.iso
|
||||
rm WC2BTDP*.{iso,cdr}
|
||||
cp -r DATA $out
|
||||
'';
|
||||
|
||||
in
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "wargus";
|
||||
|
@ -15,10 +34,10 @@ stdenv.mkDerivation rec {
|
|||
owner = "wargus";
|
||||
repo = "wargus";
|
||||
rev = "v${version}";
|
||||
sha256 = "0dibm68jxaqzgzcyblfj2bmwyz9v5ax0njnnbvak7xjk1zlh11sx";
|
||||
sha256 = "sha256-yJeMFxCD0ikwVPQApf+IBuMQ6eOjn1fVKNmqh6r760c=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ cmake pkg-config makeWrapper ];
|
||||
nativeBuildInputs = [ cmake pkg-config makeWrapper ffmpeg ];
|
||||
buildInputs = [ zlib bzip2 libpng ];
|
||||
cmakeFlags = [
|
||||
"-DSTRATAGUS=${stratagus}/games/stratagus"
|
||||
|
@ -26,7 +45,12 @@ stdenv.mkDerivation rec {
|
|||
];
|
||||
postInstall = ''
|
||||
makeWrapper $out/games/wargus $out/bin/wargus \
|
||||
--prefix PATH : ${lib.makeBinPath [ "$out" cdparanoia python3 ]}
|
||||
--prefix PATH : ${lib.makeBinPath [ "$out" ]}
|
||||
substituteInPlace $out/share/applications/wargus.desktop \
|
||||
--replace $out/games/wargus $out/bin/wargus
|
||||
|
||||
$out/bin/wartool -v -r ${data} $out/share/games/stratagus/wargus
|
||||
ln -s $out/share/games/stratagus/wargus/{contrib/black_title.png,graphics/ui/black_title.png}
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
|
|
|
@ -1,25 +1,25 @@
|
|||
{ lib, stdenv, fetchFromGitHub
|
||||
, cmake, pkg-config, makeWrapper
|
||||
, zlib, bzip2, libpng, lua5_1, toluapp
|
||||
, SDL, SDL_mixer, SDL_image, libGL
|
||||
, SDL2, SDL2_mixer, SDL2_image, libGL
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "stratagus";
|
||||
version = "2.4.3";
|
||||
version = "3.3.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "wargus";
|
||||
repo = "stratagus";
|
||||
rev = "v${version}";
|
||||
sha256 = "128m5n9axq007xi8a002ig7d4dyw8j060542x220ld66ibfprhcn";
|
||||
sha256 = "sha256-q8AvIWr/bOzI0wV0D2emxIXYEKDYmFxbtwr2BS+xYfA=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ cmake pkg-config ];
|
||||
buildInputs = [
|
||||
zlib bzip2 libpng
|
||||
lua5_1 toluapp
|
||||
(lib.getDev SDL) SDL_image SDL_mixer libGL
|
||||
(lib.getDev SDL2) SDL2_image SDL2_mixer libGL
|
||||
];
|
||||
cmakeFlags = [
|
||||
"-DCMAKE_CXX_FLAGS=-Wno-error=format-overflow"
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
{ lib, stdenv, fetchzip }:
|
||||
|
||||
let
|
||||
version = "22.1.6";
|
||||
version = "22.1.7";
|
||||
platform = if stdenv.isLinux then "linux" else "darwin";
|
||||
arch = if stdenv.isAarch64 then "arm" else "amd";
|
||||
sha256s = {
|
||||
darwin.amd = "sha256-AXk3aP1SGiHTfHTCBRTagX0DAVmdcVVIkxWaTnZxB8g=";
|
||||
darwin.arm = "sha256-pvOVvNc8lZ2d2fVZVYWvumVWYpnLORNY/3o1t4BN2N4=";
|
||||
linux.amd = "sha256-17fLmvjv7+uCnOXfIgWqK8gL8GVOEvOgKOuH6HsfAbI=";
|
||||
linux.amd = "sha256-FjDDrJmLvelQ8PmTEtnvV+5zpixizR0bowoJPLyPFcA=";
|
||||
linux.arm = "sha256-WHjYAbytiu747jFqN0KZ/CkIwAVI7fb32ywtRiQOBm8=";
|
||||
};
|
||||
in stdenv.mkDerivation rec {
|
||||
|
|
|
@ -2,13 +2,13 @@
|
|||
|
||||
buildGoModule rec {
|
||||
pname = "stripe-cli";
|
||||
version = "1.9.0";
|
||||
version = "1.10.3";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "stripe";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-OKCrz+A+y9XmYKsN5wsrcpDeBLMlalVULib/1FCKqhM=";
|
||||
sha256 = "sha256-jos6SZ2ZkUeWOM0ALlsc5a+5kcullNF/2AknTQpRnIc=";
|
||||
};
|
||||
vendorSha256 = "sha256-1c+YtfRy1ey0z117YHHkrCnpb7g+DmM+LR1rjn1YwMQ=";
|
||||
|
||||
|
|
|
@ -2639,6 +2639,14 @@ with pkgs;
|
|||
|
||||
goku = callPackage ../os-specific/darwin/goku { };
|
||||
|
||||
kerf = kerf_1; /* kerf2 is WIP */
|
||||
kerf_1 = callPackage ../development/interpreters/kerf {
|
||||
stdenv = clangStdenv;
|
||||
inherit (darwin.apple_sdk.frameworks)
|
||||
Accelerate CoreGraphics CoreVideo
|
||||
;
|
||||
};
|
||||
|
||||
kwakd = callPackage ../servers/kwakd { };
|
||||
|
||||
kwm = callPackage ../os-specific/darwin/kwm { };
|
||||
|
|
|
@ -2900,6 +2900,8 @@ in {
|
|||
|
||||
eth-utils = callPackage ../development/python-modules/eth-utils { };
|
||||
|
||||
etils = callPackage ../development/python-modules/etils { };
|
||||
|
||||
etuples = callPackage ../development/python-modules/etuples { };
|
||||
|
||||
et_xmlfile = callPackage ../development/python-modules/et_xmlfile { };
|
||||
|
|
Loading…
Reference in a new issue