Merge staging-next into staging
Conflicts: pkgs/development/libraries/sqlite/default.nix
This commit is contained in:
commit
64a89aac86
112 changed files with 1398 additions and 553 deletions
|
@ -126,7 +126,7 @@ let
|
|||
getValues getFiles
|
||||
optionAttrSetToDocList optionAttrSetToDocList'
|
||||
scrubOptionValue literalExpression literalExample literalDocBook
|
||||
showOption showFiles unknownModule mkOption;
|
||||
showOption showFiles unknownModule mkOption mkPackageOption;
|
||||
inherit (self.types) isType setType defaultTypeMerge defaultFunctor
|
||||
isOptionType mkOptionType;
|
||||
inherit (self.asserts)
|
||||
|
|
|
@ -50,6 +50,7 @@ with lib.maintainers; {
|
|||
DianaOlympos
|
||||
gleber
|
||||
happysalada
|
||||
minijackson
|
||||
yurrriq
|
||||
];
|
||||
scope = "Maintain BEAM-related packages and modules.";
|
||||
|
|
|
@ -66,6 +66,45 @@ have a predefined type and string generator already declared under
|
|||
and returning a set with TOML-specific attributes `type` and
|
||||
`generate` as specified [below](#pkgs-formats-result).
|
||||
|
||||
`pkgs.formats.elixirConf { elixir ? pkgs.elixir }`
|
||||
|
||||
: A function taking an attribute set with values
|
||||
|
||||
`elixir`
|
||||
|
||||
: The Elixir package which will be used to format the generated output
|
||||
|
||||
It returns a set with Elixir-Config-specific attributes `type`, `lib`, and
|
||||
`generate` as specified [below](#pkgs-formats-result).
|
||||
|
||||
The `lib` attribute contains functions to be used in settings, for
|
||||
generating special Elixir values:
|
||||
|
||||
`mkRaw elixirCode`
|
||||
|
||||
: Outputs the given string as raw Elixir code
|
||||
|
||||
`mkGetEnv { envVariable, fallback ? null }`
|
||||
|
||||
: Makes the configuration fetch an environment variable at runtime
|
||||
|
||||
`mkAtom atom`
|
||||
|
||||
: Outputs the given string as an Elixir atom, instead of the default
|
||||
Elixir binary string. Note: lowercase atoms still needs to be prefixed
|
||||
with `:`
|
||||
|
||||
`mkTuple array`
|
||||
|
||||
: Outputs the given array as an Elixir tuple, instead of the default
|
||||
Elixir list
|
||||
|
||||
`mkMap attrset`
|
||||
|
||||
: Outputs the given attribute set as an Elixir map, instead of the
|
||||
default Elixir keyword list
|
||||
|
||||
|
||||
::: {#pkgs-formats-result}
|
||||
These functions all return an attribute set with these values:
|
||||
:::
|
||||
|
@ -74,6 +113,12 @@ These functions all return an attribute set with these values:
|
|||
|
||||
: A module system type representing a value of the format
|
||||
|
||||
`lib`
|
||||
|
||||
: Utility functions for convenience, or special interactions with the format.
|
||||
This attribute is optional. It may contain inside a `types` attribute
|
||||
containing types specific to this format.
|
||||
|
||||
`generate` *`filename jsonValue`*
|
||||
|
||||
: A function that can render a value of the format to a file. Returns
|
||||
|
|
|
@ -137,6 +137,97 @@
|
|||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term>
|
||||
<literal>pkgs.formats.elixirConf { elixir ? pkgs.elixir }</literal>
|
||||
</term>
|
||||
<listitem>
|
||||
<para>
|
||||
A function taking an attribute set with values
|
||||
</para>
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term>
|
||||
<literal>elixir</literal>
|
||||
</term>
|
||||
<listitem>
|
||||
<para>
|
||||
The Elixir package which will be used to format the
|
||||
generated output
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
<para>
|
||||
It returns a set with Elixir-Config-specific attributes
|
||||
<literal>type</literal>, <literal>lib</literal>, and
|
||||
<literal>generate</literal> as specified
|
||||
<link linkend="pkgs-formats-result">below</link>.
|
||||
</para>
|
||||
<para>
|
||||
The <literal>lib</literal> attribute contains functions to
|
||||
be used in settings, for generating special Elixir values:
|
||||
</para>
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term>
|
||||
<literal>mkRaw elixirCode</literal>
|
||||
</term>
|
||||
<listitem>
|
||||
<para>
|
||||
Outputs the given string as raw Elixir code
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term>
|
||||
<literal>mkGetEnv { envVariable, fallback ? null }</literal>
|
||||
</term>
|
||||
<listitem>
|
||||
<para>
|
||||
Makes the configuration fetch an environment variable
|
||||
at runtime
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term>
|
||||
<literal>mkAtom atom</literal>
|
||||
</term>
|
||||
<listitem>
|
||||
<para>
|
||||
Outputs the given string as an Elixir atom, instead of
|
||||
the default Elixir binary string. Note: lowercase
|
||||
atoms still needs to be prefixed with
|
||||
<literal>:</literal>
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term>
|
||||
<literal>mkTuple array</literal>
|
||||
</term>
|
||||
<listitem>
|
||||
<para>
|
||||
Outputs the given array as an Elixir tuple, instead of
|
||||
the default Elixir list
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term>
|
||||
<literal>mkMap attrset</literal>
|
||||
</term>
|
||||
<listitem>
|
||||
<para>
|
||||
Outputs the given attribute set as an Elixir map,
|
||||
instead of the default Elixir keyword list
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
<para xml:id="pkgs-formats-result">
|
||||
These functions all return an attribute set with these values:
|
||||
|
@ -152,6 +243,19 @@
|
|||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term>
|
||||
<literal>lib</literal>
|
||||
</term>
|
||||
<listitem>
|
||||
<para>
|
||||
Utility functions for convenience, or special interactions
|
||||
with the format. This attribute is optional. It may contain
|
||||
inside a <literal>types</literal> attribute containing types
|
||||
specific to this format.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term>
|
||||
<literal>generate</literal>
|
||||
|
|
|
@ -554,6 +554,7 @@ in
|
|||
vikunja = handleTest ./vikunja.nix {};
|
||||
virtualbox = handleTestOn ["x86_64-linux"] ./virtualbox.nix {};
|
||||
vscodium = discoverTests (import ./vscodium.nix);
|
||||
vsftpd = handleTest ./vsftpd.nix {};
|
||||
wasabibackend = handleTest ./wasabibackend.nix {};
|
||||
wiki-js = handleTest ./wiki-js.nix {};
|
||||
wine = handleTest ./wine.nix {};
|
||||
|
|
42
nixos/tests/vsftpd.nix
Normal file
42
nixos/tests/vsftpd.nix
Normal file
|
@ -0,0 +1,42 @@
|
|||
import ./make-test-python.nix ({ pkgs, ... }: {
|
||||
name = "vsftpd";
|
||||
|
||||
nodes = {
|
||||
server = {
|
||||
services.vsftpd = {
|
||||
enable = true;
|
||||
userlistDeny = false;
|
||||
localUsers = true;
|
||||
userlist = [ "ftp-test-user" ];
|
||||
writeEnable = true;
|
||||
localRoot = "/tmp";
|
||||
};
|
||||
networking.firewall.enable = false;
|
||||
|
||||
users = {
|
||||
users.ftp-test-user = {
|
||||
isSystemUser = true;
|
||||
password = "ftp-test-password";
|
||||
group = "ftp-test-group";
|
||||
};
|
||||
groups.ftp-test-group = {};
|
||||
};
|
||||
};
|
||||
|
||||
client = {};
|
||||
};
|
||||
|
||||
testScript = ''
|
||||
client.start()
|
||||
server.wait_for_unit("vsftpd")
|
||||
server.wait_for_open_port("21")
|
||||
|
||||
client.succeed("curl -u ftp-test-user:ftp-test-password ftp://server")
|
||||
client.succeed('echo "this is a test" > /tmp/test.file.up')
|
||||
client.succeed("curl -v -T /tmp/test.file.up -u ftp-test-user:ftp-test-password ftp://server")
|
||||
client.succeed("curl -u ftp-test-user:ftp-test-password ftp://server/test.file.up > /tmp/test.file.down")
|
||||
client.succeed("diff /tmp/test.file.up /tmp/test.file.down")
|
||||
assert client.succeed("cat /tmp/test.file.up") == server.succeed("cat /tmp/test.file.up")
|
||||
assert client.succeed("cat /tmp/test.file.down") == server.succeed("cat /tmp/test.file.up")
|
||||
'';
|
||||
})
|
|
@ -1,7 +1,7 @@
|
|||
{ lib, stdenv, fetchFromGitHub, lv2 }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
version = "v1.1.3";
|
||||
version = "1.1.3";
|
||||
pname = "plujain-ramp";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
|
|
|
@ -1,26 +1,38 @@
|
|||
{ lib, stdenv, fetchurl, ruby, cdparanoia, makeWrapper }:
|
||||
{ lib, stdenv, fetchFromGitHub, makeWrapper
|
||||
, cdparanoia, cddiscid, ruby }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
version = "0.6.2";
|
||||
version = "0.8.0rc3";
|
||||
pname = "rubyripper";
|
||||
src = fetchurl {
|
||||
url = "https://rubyripper.googlecode.com/files/rubyripper-${version}.tar.bz2";
|
||||
sha256 = "1fwyk3y0f45l2vi3a481qd7drsy82ccqdb8g2flakv58m45q0yl1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "bleskodev";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "1qfwv8bgc9pyfh3d40bvyr9n7sjc2na61481693wwww640lm0f9f";
|
||||
};
|
||||
|
||||
preConfigure = "patchShebangs .";
|
||||
|
||||
configureFlags = [ "--enable-cli" ];
|
||||
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
buildInputs = [ ruby cdparanoia ];
|
||||
postInstall = ''
|
||||
wrapProgram "$out/bin/rrip_cli" \
|
||||
--prefix PATH : "${ruby}/bin" \
|
||||
--prefix PATH : "${cdparanoia}/bin"
|
||||
|
||||
buildInputs = [
|
||||
cddiscid
|
||||
cdparanoia
|
||||
ruby
|
||||
];
|
||||
|
||||
postFixup = ''
|
||||
wrapProgram $out/bin/rrip_cli \
|
||||
--prefix PATH : ${lib.makeBinPath [ cddiscid cdparanoia ruby ]}
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "High quality CD audio ripper";
|
||||
platforms = platforms.linux;
|
||||
license = licenses.gpl3;
|
||||
license = licenses.gpl3Plus;
|
||||
homepage = "https://github.com/bleskodev/rubyripper";
|
||||
};
|
||||
}
|
||||
|
|
|
@ -21,13 +21,13 @@
|
|||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "tauon";
|
||||
version = "7.1.2";
|
||||
version = "7.1.3";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Taiko2k";
|
||||
repo = "TauonMusicBox";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-0/xWSae5TD5qI+HgoJ2DAHxqv/Z0E4DGiQhfTA03xkM=";
|
||||
sha256 = "sha256-UadE8qsQxRjE+POHLAUY1tRUInNXsMEqTAP02zSDSZ4=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
|
|
70
pkgs/applications/editors/pinegrow/default.nix
Normal file
70
pkgs/applications/editors/pinegrow/default.nix
Normal file
|
@ -0,0 +1,70 @@
|
|||
{ stdenv
|
||||
, lib
|
||||
, fetchurl
|
||||
, unzip
|
||||
, udev
|
||||
, nwjs
|
||||
, gcc-unwrapped
|
||||
, autoPatchelfHook
|
||||
, gsettings-desktop-schemas
|
||||
, gtk3
|
||||
, wrapGAppsHook
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "pinegrow";
|
||||
version = "6.3";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://download.pinegrow.com/PinegrowLinux64.${version}.zip";
|
||||
sha256 = "0wldj633p67da077nfc67gr9xhq580rkfd0r3904sjq7x01r0kaz";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
unzip
|
||||
autoPatchelfHook
|
||||
wrapGAppsHook
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
udev
|
||||
nwjs
|
||||
gcc-unwrapped
|
||||
gsettings-desktop-schemas
|
||||
gtk3
|
||||
];
|
||||
|
||||
sourceRoot = ".";
|
||||
|
||||
dontUnpack = true;
|
||||
|
||||
# Extract and copy executable in $out/bin
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p $out/share/applications $out/bin $out/opt/bin
|
||||
# we can't unzip it in $out/lib, because nw.js will start with
|
||||
# an empty screen. Therefore it will be unzipped in a non-typical
|
||||
# folder and symlinked.
|
||||
unzip $src -d $out/opt/pinegrow
|
||||
substituteInPlace $out/opt/pinegrow/Pinegrow.desktop \
|
||||
--replace 'Exec=sh -c "$(dirname %k)/PinegrowLibrary"' 'Exec=sh -c "$out/bin/Pinegrow"'
|
||||
mv $out/opt/pinegrow/Pinegrow.desktop $out/share/applications/Pinegrow.desktop
|
||||
ln -s $out/opt/pinegrow/PinegrowLibrary $out/bin/Pinegrow
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
preFixup = ''
|
||||
export XDG_DATA_DIRS=${gsettings-desktop-schemas}/share/gsettings-schemas/${gsettings-desktop-schemas.name}:${gtk3}/share/gsettings-schemas/${gtk3.name}:$XDG_DATA_DIRS
|
||||
wrapGApp "$out/opt/pinegrow/PinegrowLibrary" --prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ udev ]}
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://pinegrow.com";
|
||||
description = "UI Web Editor";
|
||||
platforms = platforms.linux;
|
||||
license = with licenses; [ unfreeRedistributable ];
|
||||
maintainers = with maintainers; [ gador ];
|
||||
};
|
||||
}
|
|
@ -47,15 +47,27 @@ vscode-utils.buildVscodeMarketplaceExtension rec {
|
|||
mktplcRef = {
|
||||
name = "cpptools";
|
||||
publisher = "ms-vscode";
|
||||
version = "1.7.1";
|
||||
version = "1.9.1";
|
||||
};
|
||||
|
||||
vsix = fetchurl {
|
||||
name = "${mktplcRef.publisher}-${mktplcRef.name}.zip";
|
||||
url = "https://github.com/microsoft/vscode-cpptools/releases/download/${mktplcRef.version}/cpptools-linux.vsix";
|
||||
sha256 = "sha256-LqndG/vv8LgVPEX6dGkikDB6M6ISneo2UJ78izXVFbk=";
|
||||
name = "${mktplcRef.publisher}-${mktplcRef.name}.gz";
|
||||
url = "https://marketplace.visualstudio.com/_apis/public/gallery/publishers/${mktplcRef.publisher}/vsextensions/${mktplcRef.name}/${mktplcRef.version}/vspackage?targetPlatform=linux-x64";
|
||||
sha256 = "sha256-BtTl9DR8hnwNpO5k99M4dtqcTQ2hTzVbjR8VZh+tdDI=";
|
||||
};
|
||||
|
||||
unpackPhase = ''
|
||||
runHook preUnpack
|
||||
|
||||
gzip -d $src --stdout &> temporary.zip
|
||||
unzip temporary.zip
|
||||
rm temporary.zip
|
||||
|
||||
cd extension/
|
||||
|
||||
runHook postUnpack
|
||||
'';
|
||||
|
||||
buildInputs = [
|
||||
jq
|
||||
];
|
||||
|
|
|
@ -59,13 +59,13 @@ in vscode-utils.buildVscodeMarketplaceExtension rec {
|
|||
mktplcRef = {
|
||||
name = "python";
|
||||
publisher = "ms-python";
|
||||
version = "2021.11.1422169775";
|
||||
version = "2022.0.1814523869";
|
||||
};
|
||||
|
||||
vsix = fetchurl {
|
||||
name = "${mktplcRef.publisher}-${mktplcRef.name}.zip";
|
||||
url = "https://github.com/microsoft/vscode-python/releases/download/${mktplcRef.version}/ms-python-release.vsix";
|
||||
sha256 = "sha256-Y8Wbpuieca/edIWqgq+lGSUMABOGvO/GuujGlEGmoKs=";
|
||||
sha256 = "sha256-JDaimcOUDo9GuFA3mhbbGLwqZE9ejk8pWYc+9PrRhVk=";
|
||||
};
|
||||
|
||||
buildInputs = [
|
||||
|
|
|
@ -8,8 +8,8 @@ in
|
|||
mktplcRef = {
|
||||
name = "vscode-wakatime";
|
||||
publisher = "WakaTime";
|
||||
version = "17.1.0";
|
||||
sha256 = "177q8angrn702pxrrpk1fzggzlnnaymq32v55qpjgjb74rhg4dzw";
|
||||
version = "18.0.5";
|
||||
sha256 = "sha256-vWqGxMbxKqd4UgKK0sOKadMTDf6Y3TQxfWsc93MHjFs=";
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
|
|
|
@ -1,18 +1,31 @@
|
|||
{ lib, buildDotnetModule, fetchFromGitHub, makeDesktopItem, copyDesktopItems
|
||||
, dotnetCorePackages, libX11, libgdiplus, ffmpeg
|
||||
, SDL2_mixer, openal, libsoundio, sndio, pulseaudio
|
||||
, gtk3, gdk-pixbuf, wrapGAppsHook
|
||||
{ lib
|
||||
, buildDotnetModule
|
||||
, fetchFromGitHub
|
||||
, makeDesktopItem
|
||||
, copyDesktopItems
|
||||
, dotnetCorePackages
|
||||
, libX11
|
||||
, libgdiplus
|
||||
, ffmpeg
|
||||
, SDL2_mixer
|
||||
, openal
|
||||
, libsoundio
|
||||
, sndio
|
||||
, pulseaudio
|
||||
, gtk3
|
||||
, gdk-pixbuf
|
||||
, wrapGAppsHook
|
||||
}:
|
||||
|
||||
buildDotnetModule rec {
|
||||
pname = "ryujinx";
|
||||
version = "1.0.7168"; # Versioning is based off of the official appveyor builds: https://ci.appveyor.com/project/gdkchan/ryujinx
|
||||
version = "1.1.54"; # Versioning is based off of the official github actions builds: https://github.com/Ryujinx/Ryujinx/actions/workflows/release.yml
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Ryujinx";
|
||||
repo = "Ryujinx";
|
||||
rev = "6e0799580f0d1b473a79471c5d365c6524d97a86";
|
||||
sha256 = "145sn9xkjxj79292faypcdmpmbxm1w70q0iprg6pfymf9920gvfv";
|
||||
rev = "3705c206688c69d3348f5cec84dc480d8d7c578e";
|
||||
sha256 = "1lhnr11x46yjpka865m0dzkbkdxmrrhjcpvq4ab4wll6j0ipy908";
|
||||
};
|
||||
|
||||
dotnet-sdk = dotnetCorePackages.sdk_6_0;
|
||||
|
@ -67,22 +80,31 @@ buildDotnetModule rec {
|
|||
done
|
||||
'';
|
||||
|
||||
desktopItems = [(makeDesktopItem {
|
||||
desktopName = "Ryujinx";
|
||||
name = "ryujinx";
|
||||
exec = "Ryujinx";
|
||||
icon = "ryujinx";
|
||||
comment = meta.description;
|
||||
type = "Application";
|
||||
categories = [ "Game" ];
|
||||
})];
|
||||
desktopItems = [
|
||||
(makeDesktopItem {
|
||||
desktopName = "Ryujinx";
|
||||
name = "ryujinx";
|
||||
exec = "Ryujinx";
|
||||
icon = "ryujinx";
|
||||
comment = meta.description;
|
||||
type = "Application";
|
||||
categories = [ "Game" ];
|
||||
})
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Experimental Nintendo Switch Emulator written in C#";
|
||||
homepage = "https://ryujinx.org/";
|
||||
license = licenses.mit;
|
||||
changelog = "https://github.com/Ryujinx/Ryujinx/wiki/Changelog";
|
||||
maintainers = [ maintainers.ivar ];
|
||||
description = "Experimental Nintendo Switch Emulator written in C#";
|
||||
longDescription = ''
|
||||
Ryujinx is an open-source Nintendo Switch emulator, created by gdkchan,
|
||||
written in C#. This emulator aims at providing excellent accuracy and
|
||||
performance, a user-friendly interface and consistent builds. It was
|
||||
written from scratch and development on the project began in September
|
||||
2017.
|
||||
'';
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ ivar jk ];
|
||||
platforms = [ "x86_64-linux" ];
|
||||
mainProgram = "Ryujinx";
|
||||
};
|
||||
|
|
4
pkgs/applications/emulators/ryujinx/deps.nix
generated
4
pkgs/applications/emulators/ryujinx/deps.nix
generated
|
@ -10,8 +10,8 @@
|
|||
(fetchNuGet { pname = "GioSharp"; version = "3.22.25.128"; sha256 = "0syfa1f2hg7wsxln5lh86n8m1lihhprc51b6km91gkl25l5hw5bv"; })
|
||||
(fetchNuGet { pname = "GLibSharp"; version = "3.22.25.128"; sha256 = "1j8i5izk97ga30z1qpd765zqd2q5w71y8bhnkqq4bj59768fyxp5"; })
|
||||
(fetchNuGet { pname = "GtkSharp"; version = "3.22.25.128"; sha256 = "0z0wx0p3gc02r8d7y88k1rw307sb2vapbr1k1yc5qdc38fxz5jsy"; })
|
||||
(fetchNuGet { pname = "GtkSharp.Dependencies"; version = "1.1.0"; sha256 = "1g1rhcn38ww97638rds6l5bysra43hkhv47fy71fvq89623zgyxn"; })
|
||||
(fetchNuGet { pname = "LibHac"; version = "0.14.3"; sha256 = "13pv5dwffj8c2mfibra3hkd1pgg5cj075sf48kgp82y501l25q5m"; })
|
||||
(fetchNuGet { pname = "GtkSharp.Dependencies"; version = "1.1.1"; sha256 = "0ffywnc3ca1lwhxdnk99l238vsprsrsh678bgm238lb7ja7m52pw"; })
|
||||
(fetchNuGet { pname = "LibHac"; version = "0.16.0"; sha256 = "1kivnf4c4km1a8y0sl34z9gfazlivna0x31q0065n0sz13g82spi"; })
|
||||
(fetchNuGet { pname = "Microsoft.AspNetCore.App.Runtime.linux-x64"; version = "6.0.0"; sha256 = "0r6jyxl3h1asj30la78skd5gsxgwjpvkspmkw1gglxfg85hnqc8w"; })
|
||||
(fetchNuGet { pname = "Microsoft.AspNetCore.App.Runtime.osx-x64"; version = "6.0.0"; sha256 = "1hnqhvgjp342nx9s47w5sknmlpkfxbcfi50pa4vary2r7sv8ka2w"; })
|
||||
(fetchNuGet { pname = "Microsoft.AspNetCore.App.Runtime.win-x64"; version = "6.0.0"; sha256 = "1j8cn97swc67ly7ca7m05akczrswbg0gjsk7473vad6770ph79vm"; })
|
||||
|
|
|
@ -1,40 +1,57 @@
|
|||
#! /usr/bin/env nix-shell
|
||||
#! nix-shell -i bash -p coreutils gnused curl common-updater-scripts nuget-to-nix nix-prefetch-git jq dotnet-sdk_6
|
||||
set -eo pipefail
|
||||
set -euxo pipefail
|
||||
cd "$(dirname "${BASH_SOURCE[0]}")"
|
||||
|
||||
deps_file="$(realpath "./deps.nix")"
|
||||
DEPS_FILE="$(realpath "./deps.nix")"
|
||||
|
||||
nix-prefetch-git https://github.com/ryujinx/ryujinx --quiet > repo_info
|
||||
new_hash="$(jq -r ".sha256" < repo_info)"
|
||||
new_rev="$(jq -r ".rev" < repo_info)"
|
||||
rm repo_info
|
||||
RELEASE_JOB_DATA=$(
|
||||
curl -s -H "Accept: application/vnd.github.v3+json" \
|
||||
https://api.github.com/repos/Ryujinx/Ryujinx/actions/workflows |
|
||||
jq -r '.workflows[] | select(.name == "Release job") | { id, path }'
|
||||
)
|
||||
RELEASE_JOB_ID=$(echo "$RELEASE_JOB_DATA" | jq -r '.id')
|
||||
RELEASE_JOB_FILE=$(echo "$RELEASE_JOB_DATA" | jq -r '.path')
|
||||
|
||||
new_version="$(
|
||||
curl -s https://ci.appveyor.com/api/projects/gdkchan/ryujinx/branch/master \
|
||||
| grep -Po '"version":.*?[^\\]",' \
|
||||
| sed 's/"version":"\(.*\)",/\1/'
|
||||
)"
|
||||
old_version="$(sed -nE 's/\s*version = "(.*)".*/\1/p' ./default.nix)"
|
||||
BASE_VERSION=$(
|
||||
curl -s "https://raw.githubusercontent.com/Ryujinx/Ryujinx/master/${RELEASE_JOB_FILE}" |
|
||||
grep -Po 'RYUJINX_BASE_VERSION:.*?".*"' |
|
||||
sed 's/RYUJINX_BASE_VERSION: "\(.*\)"/\1/'
|
||||
)
|
||||
|
||||
if [[ "$new_version" == "$old_version" ]]; then
|
||||
echo "Already up to date! Doing nothing"
|
||||
exit 0
|
||||
LATEST_RELEASE_JOB_DATA=$(
|
||||
curl -s -H "Accept: application/vnd.github.v3+json" \
|
||||
"https://api.github.com/repos/Ryujinx/Ryujinx/actions/workflows/${RELEASE_JOB_ID}/runs" |
|
||||
jq -r '.workflow_runs[0] | { head_sha, run_number }'
|
||||
)
|
||||
COMMIT=$(echo "$LATEST_RELEASE_JOB_DATA" | jq -r '.head_sha')
|
||||
PATCH_VERSION=$(echo "$LATEST_RELEASE_JOB_DATA" | jq -r '.run_number')
|
||||
|
||||
NEW_VERSION="${BASE_VERSION}.${PATCH_VERSION}"
|
||||
|
||||
OLD_VERSION="$(sed -nE 's/\s*version = "(.*)".*/\1/p' ./default.nix)"
|
||||
|
||||
echo "comparing versions $OLD_VERSION => $NEW_VERSION"
|
||||
if [[ "$OLD_VERSION" == "$NEW_VERSION" ]]; then
|
||||
echo "Already up to date! Doing nothing"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
cd ../../../..
|
||||
update-source-version ryujinx "$new_version" "$new_hash" --rev="$new_rev"
|
||||
SHA="$(nix-prefetch-git https://github.com/ryujinx/ryujinx --rev "$COMMIT" --quiet | jq -r '.sha256')"
|
||||
|
||||
store_src="$(nix-build . -A ryujinx.src --no-out-link)"
|
||||
src="$(mktemp -d /tmp/ryujinx-src.XXX)"
|
||||
cp -rT "$store_src" "$src"
|
||||
chmod -R +w "$src"
|
||||
pushd "$src"
|
||||
cd ../../../..
|
||||
update-source-version ryujinx "$NEW_VERSION" "$SHA" --rev="$COMMIT"
|
||||
|
||||
STORE_SRC="$(nix-build . -A ryujinx.src --no-out-link)"
|
||||
SRC="$(mktemp -d /tmp/ryujinx-src.XXX)"
|
||||
cp -rT "$STORE_SRC" "$SRC"
|
||||
chmod -R +w "$SRC"
|
||||
pushd "$SRC"
|
||||
|
||||
mkdir nuget_tmp.packages
|
||||
dotnet restore Ryujinx.sln --packages nuget_tmp.packages
|
||||
DOTNET_CLI_TELEMETRY_OPTOUT=1 dotnet restore Ryujinx.sln --packages nuget_tmp.packages
|
||||
|
||||
nuget-to-nix ./nuget_tmp.packages > "$deps_file"
|
||||
nuget-to-nix ./nuget_tmp.packages >"$DEPS_FILE"
|
||||
|
||||
popd
|
||||
rm -r "$src"
|
||||
rm -r "$SRC"
|
||||
|
|
|
@ -221,6 +221,7 @@ let
|
|||
skanlite = callPackage ./skanlite.nix {};
|
||||
spectacle = callPackage ./spectacle.nix {};
|
||||
yakuake = callPackage ./yakuake.nix {};
|
||||
zanshin = callPackage ./zanshin.nix {};
|
||||
};
|
||||
|
||||
in lib.makeScope libsForQt5.newScope packages
|
||||
|
|
18
pkgs/applications/kde/zanshin.nix
Normal file
18
pkgs/applications/kde/zanshin.nix
Normal file
|
@ -0,0 +1,18 @@
|
|||
{
|
||||
mkDerivation, lib,
|
||||
extra-cmake-modules,
|
||||
akonadi-calendar, boost, kontactinterface, krunner
|
||||
}:
|
||||
|
||||
mkDerivation {
|
||||
pname = "zanshin";
|
||||
meta = with lib; {
|
||||
description = "A powerful yet simple application to manage your day to day actions, getting your mind like water";
|
||||
homepage = "https://zanshin.kde.org/";
|
||||
maintainers = with maintainers; [ zraexy ];
|
||||
license = licenses.gpl2Plus;
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ extra-cmake-modules ];
|
||||
buildInputs = [ akonadi-calendar boost kontactinterface krunner ];
|
||||
}
|
|
@ -20,8 +20,8 @@ let
|
|||
in
|
||||
python3Packages.buildPythonApplication rec {
|
||||
pname = "bottles";
|
||||
version = "2022.2.14-trento";
|
||||
sha256 = "GtVC3JfVoooJ+MuF9r1W3J8RfXNKalaIgecv1ner7GA=";
|
||||
version = "2022.2.28-trento-1";
|
||||
sha256 = "tE6YuuZZcs3RKxs1S6OoGt0CXz3oHUi/sopFN0iywds=";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "bottlesdevs";
|
||||
|
@ -99,6 +99,7 @@ python3Packages.buildPythonApplication rec {
|
|||
meta = with lib; {
|
||||
description = "An easy-to-use wineprefix manager";
|
||||
homepage = "https://usebottles.com/";
|
||||
downloadPage = "https://github.com/bottlesdevs/Bottles/releases";
|
||||
license = licenses.gpl3Only;
|
||||
maintainers = with maintainers; [ bloomvdomino psydvl shamilton ];
|
||||
platforms = platforms.linux;
|
||||
|
|
|
@ -21,13 +21,13 @@
|
|||
|
||||
stdenv.mkDerivation rec{
|
||||
pname = "corectrl";
|
||||
version = "1.2.2";
|
||||
version = "1.2.3";
|
||||
|
||||
src = fetchFromGitLab {
|
||||
owner = "corectrl";
|
||||
repo = "corectrl";
|
||||
rev = "v${version}";
|
||||
sha256 = "1zp523cgvmfjc42wx1f1jh5q3jnsnm833m2xnbbwmfrmhrzh5269";
|
||||
sha256 = "sha256-vMSIo4tfvEO6SVxB5aNBnHEn+PXN6wUfRAgUCwZEHKQ=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
|
|
71
pkgs/applications/misc/emojipick/default.nix
Normal file
71
pkgs/applications/misc/emojipick/default.nix
Normal file
|
@ -0,0 +1,71 @@
|
|||
{ stdenvNoCC
|
||||
, fetchFromGitHub
|
||||
, lib
|
||||
, python3
|
||||
, xclip
|
||||
, libnotify
|
||||
, dmenu
|
||||
, rofi
|
||||
, emojipick-use-rofi ? false
|
||||
, emojipick-copy-to-clipboard ? true
|
||||
, emojipick-show-notifications ? true
|
||||
, emojipick-print-emoji ? true
|
||||
, emojipick-font-family ? "Noto Color Emoji"
|
||||
, emojipick-font-size ? "18"
|
||||
}:
|
||||
|
||||
let
|
||||
boolToInt = b: if b then "1" else "0"; # Convert boolean to integer string
|
||||
in
|
||||
stdenvNoCC.mkDerivation {
|
||||
pname = "emojipick";
|
||||
version = "2021-01-27";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "thingsiplay";
|
||||
repo = "emojipick";
|
||||
rev = "20210127";
|
||||
sha256 = "1kib3cyx6z9v9qw6yrfx5sklanpk5jbxjc317wi7i7ljrg0vdazp";
|
||||
};
|
||||
|
||||
dontConfigure = true;
|
||||
dontBuild = true;
|
||||
|
||||
# Patch configuration
|
||||
# notify-send has to be patched in a bash file
|
||||
postPatch = ''
|
||||
substituteInPlace emojipick \
|
||||
--replace "use_rofi=0" "use_rofi=${boolToInt emojipick-use-rofi}" \
|
||||
--replace "copy_to_clipboard=1" "copy_to_clipboard=${boolToInt emojipick-copy-to-clipboard}" \
|
||||
--replace "show_notification=1" "show_notification=${boolToInt emojipick-show-notifications}" \
|
||||
--replace "print_emoji=1" "print_emoji=${boolToInt emojipick-print-emoji}" \
|
||||
--replace "font_family='\"Noto Color Emoji\"'" "font_family='\"${emojipick-font-family}\"'" \
|
||||
--replace 'font_size="18"' 'font_size="${emojipick-font-size}"' \
|
||||
${lib.optionalString emojipick-use-rofi "--replace 'rofi ' '${rofi}/bin/rofi '"} \
|
||||
--replace notify-send ${libnotify}/bin/notify-send
|
||||
'';
|
||||
|
||||
buildInputs = [
|
||||
python3
|
||||
xclip
|
||||
libnotify
|
||||
] ++ (if emojipick-use-rofi then [rofi] else [dmenu]);
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p $out/bin
|
||||
cp ./emojipick $out/bin
|
||||
cp ./emojiget.py $out/bin
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Get a selection of emojis with dmenu or rofi";
|
||||
homepage = "https://github.com/thingsiplay/emojipick";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ alexnortung ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
47
pkgs/applications/misc/gometer/default.nix
Normal file
47
pkgs/applications/misc/gometer/default.nix
Normal file
|
@ -0,0 +1,47 @@
|
|||
{ lib, stdenv, fetchurl, rpmextract, wrapGAppsHook, nwjs }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "gometer";
|
||||
version = "5.2.0";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://gometer-prod-new-apps.s3-accelerate.amazonaws.com/${version}/goMeter-linux64.rpm";
|
||||
sha256 = "sha256-E53sVvneW2EMPz9HNCgbGuHnDlVihE+Lf+DkFIP+j28=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
rpmextract
|
||||
wrapGAppsHook
|
||||
];
|
||||
|
||||
dontBuild = true;
|
||||
dontConfigure = true;
|
||||
|
||||
unpackPhase = ''
|
||||
rpmextract ${src}
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mv usr $out
|
||||
mv opt $out
|
||||
|
||||
mkdir $out/share/applications
|
||||
mv $out/opt/goMeter/goMeter.desktop $out/share/applications/gometer.desktop
|
||||
substituteInPlace $out/share/applications/gometer.desktop \
|
||||
--replace '/opt/goMeter/' ""
|
||||
|
||||
makeWrapper ${nwjs}/bin/nw $out/bin/goMeter \
|
||||
--add-flags $out/opt/goMeter/package.nw
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Analytic-Tracking tool for GoLance";
|
||||
homepage = "https://golance.com/download-gometer";
|
||||
license = licenses.unfree;
|
||||
maintainers = with maintainers; [ wolfangaukang ];
|
||||
};
|
||||
}
|
|
@ -2,11 +2,11 @@
|
|||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "neo";
|
||||
version = "0.6";
|
||||
version = "0.6.1";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/st3w/neo/releases/download/v${version}/neo-${version}.tar.gz";
|
||||
sha256 = "sha256-skXLT1td4dGdsu+wbX44Z2u5sDEOKXYVVys4Q6RayIk=";
|
||||
sha256 = "sha256-pV5O1e/QpK8kjRYBinqq07YX7x06wF0pKiWKOKr0ank=";
|
||||
};
|
||||
|
||||
buildInputs = [ ncurses ];
|
||||
|
|
|
@ -4,15 +4,16 @@ python3Packages.buildPythonApplication rec {
|
|||
pname = "nerd-font-patcher";
|
||||
version = "2.1.0";
|
||||
|
||||
# The size of the nerd fonts repository is bigger than 2GB, because it
|
||||
# contains a lot of fonts and the patcher.
|
||||
# until https://github.com/ryanoasis/nerd-fonts/issues/484 is not fixed,
|
||||
# we download the patcher from an alternative repository
|
||||
# This uses a sparse checkout because the repo is >2GB without it
|
||||
src = fetchFromGitHub {
|
||||
owner = "betaboon";
|
||||
repo = "nerd-fonts-patcher";
|
||||
rev = "180684d7a190f75fd2fea7ca1b26c6540db8d3c0";
|
||||
sha256 = "sha256-FAbdLf0XiUXGltAgmq33Wqv6PFo/5qCv62UxXnj3SgI=";
|
||||
owner = "ryanoasis";
|
||||
repo = "nerd-fonts";
|
||||
rev = "v${version}";
|
||||
sparseCheckout = ''
|
||||
font-patcher
|
||||
/src/glyphs
|
||||
'';
|
||||
sha256 = "sha256-ePBlEVjzAJ7g6iAGIqPfgZ8bwtNILmyEVm0zD+xNN6k=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = with python3Packages; [ fontforge ];
|
||||
|
|
|
@ -37,7 +37,8 @@ let
|
|||
# base pkg/lib
|
||||
baseLib = python3Packages.callPackage ./lib.nix { };
|
||||
in mkDerivation {
|
||||
inherit (baseLib) pname version src;
|
||||
pname = baseLib.pname + lib.optionalString (pdfSupport && presentationSupport && vlcSupport && gstreamerSupport) "-full";
|
||||
inherit (baseLib) version src;
|
||||
|
||||
nativeBuildInputs = [ python3Packages.wrapPython wrapGAppsHook ];
|
||||
buildInputs = [ qtbase ] ++ optionals gstreamerSupport
|
||||
|
|
|
@ -93,7 +93,7 @@ stdenv.mkDerivation rec {
|
|||
|
||||
desktopItems = [
|
||||
(makeDesktopItem {
|
||||
name = "PrusaSlicer";
|
||||
name = "prusa-slicer";
|
||||
exec = "prusa-slicer";
|
||||
icon = "PrusaSlicer";
|
||||
comment = "G-code generator for 3D printers";
|
||||
|
@ -102,7 +102,7 @@ stdenv.mkDerivation rec {
|
|||
categories = [ "Development" ];
|
||||
})
|
||||
(makeDesktopItem {
|
||||
name = "PrusaSlicer G-code Viewer";
|
||||
name = "prusa-gcodeviewer";
|
||||
exec = "prusa-gcodeviewer";
|
||||
icon = "PrusaSlicer-gcodeviewer";
|
||||
comment = "G-code viewer for 3D printers";
|
||||
|
|
|
@ -33,7 +33,7 @@ let
|
|||
|
||||
desktopItems = [
|
||||
(makeDesktopItem {
|
||||
name = appname;
|
||||
name = "superslicer";
|
||||
exec = "superslicer";
|
||||
icon = appname;
|
||||
comment = description;
|
||||
|
|
|
@ -96,7 +96,7 @@ let
|
|||
"libpng"
|
||||
"libwebp"
|
||||
"libxslt"
|
||||
"opus"
|
||||
# "opus"
|
||||
];
|
||||
|
||||
opusWithCustomModes = libopus.override {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{ newScope, config, stdenv, fetchurl, makeWrapper
|
||||
, llvmPackages_13, ed, gnugrep, coreutils, xdg-utils
|
||||
, llvmPackages_13, llvmPackages_14, ed, gnugrep, coreutils, xdg-utils
|
||||
, glib, gtk3, gnome, gsettings-desktop-schemas, gn, fetchgit
|
||||
, libva, pipewire, wayland
|
||||
, gcc, nspr, nss, runCommand
|
||||
|
@ -54,6 +54,9 @@ let
|
|||
inherit (upstream-info.deps.gn) url rev sha256;
|
||||
};
|
||||
});
|
||||
} // lib.optionalAttrs (chromiumVersionAtLeast "99") rec {
|
||||
llvmPackages = llvmPackages_14;
|
||||
stdenv = llvmPackages_14.stdenv;
|
||||
});
|
||||
|
||||
browser = callPackage ./browser.nix {
|
||||
|
|
|
@ -0,0 +1,35 @@
|
|||
From 232c692240b9c52b95bd38ba7aecb11e7077cf31 Mon Sep 17 00:00:00 2001
|
||||
From: Maximilian Bosch <maximilian@mbosch.me>
|
||||
Date: Sat, 26 Feb 2022 12:33:13 +0100
|
||||
Subject: [PATCH] Fetch buildconfig during gradle build inside Nix FOD
|
||||
|
||||
---
|
||||
build.gradle | 5 +++++
|
||||
1 file changed, 5 insertions(+)
|
||||
|
||||
diff --git a/build.gradle b/build.gradle
|
||||
index cbb587f..3b06e80 100644
|
||||
--- a/build.gradle
|
||||
+++ b/build.gradle
|
||||
@@ -82,6 +82,9 @@ static String getVersion() {
|
||||
|
||||
repositories {
|
||||
maven {url "https://gitlab.com/api/v4/groups/6853927/-/packages/maven"} // https://gitlab.com/groups/signald/-/packages
|
||||
+ maven {
|
||||
+ url "https://plugins.gradle.org/m2/"
|
||||
+ }
|
||||
mavenCentral()
|
||||
}
|
||||
|
||||
@@ -102,6 +105,8 @@ dependencies {
|
||||
implementation 'io.prometheus:simpleclient_httpserver:0.14.1'
|
||||
implementation 'com.squareup.okhttp3:logging-interceptor:4.9.3'
|
||||
implementation 'io.sentry:sentry:5.6.1'
|
||||
+ implementation 'com.github.gmazzo.buildconfig:com.github.gmazzo.buildconfig.gradle.plugin:3.0.3'
|
||||
+ implementation 'org.jetbrains.kotlin:kotlin-scripting-jvm:1.4.31'
|
||||
testImplementation 'org.junit.jupiter:junit-jupiter:5.8.2'
|
||||
}
|
||||
|
||||
--
|
||||
2.33.1
|
||||
|
|
@ -0,0 +1,60 @@
|
|||
From 80277ce9e24d9efa8dfd6eb775187c823e0e528e Mon Sep 17 00:00:00 2001
|
||||
From: Maximilian Bosch <maximilian@mbosch.me>
|
||||
Date: Sat, 26 Feb 2022 12:36:15 +0100
|
||||
Subject: [PATCH 2/2] buildconfig/local deps fixes
|
||||
|
||||
---
|
||||
build.gradle | 20 ++++++++++++++++++--
|
||||
1 file changed, 18 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/build.gradle b/build.gradle
|
||||
index cbb587f..ad836cf 100644
|
||||
--- a/build.gradle
|
||||
+++ b/build.gradle
|
||||
@@ -9,10 +9,21 @@ import org.gradle.nativeplatform.platform.internal.ArchitectureInternal
|
||||
import org.gradle.nativeplatform.platform.internal.OperatingSystemInternal
|
||||
import org.gradle.nativeplatform.platform.internal.DefaultNativePlatform
|
||||
|
||||
+buildscript {
|
||||
+ repositories {
|
||||
+ maven {
|
||||
+ url(uri("@deps@"))
|
||||
+ }
|
||||
+ }
|
||||
+ dependencies {
|
||||
+ classpath "com.github.gmazzo:gradle-buildconfig-plugin:3.0.3"
|
||||
+ }
|
||||
+}
|
||||
+
|
||||
plugins {
|
||||
- id 'com.github.gmazzo.buildconfig' version '3.0.3'
|
||||
id 'application'
|
||||
}
|
||||
+apply plugin: "com.github.gmazzo.buildconfig"
|
||||
|
||||
compileJava.options.encoding = 'UTF-8'
|
||||
|
||||
@@ -82,7 +93,10 @@ static String getVersion() {
|
||||
|
||||
repositories {
|
||||
maven {url "https://gitlab.com/api/v4/groups/6853927/-/packages/maven"} // https://gitlab.com/groups/signald/-/packages
|
||||
- mavenCentral()
|
||||
+ mavenLocal()
|
||||
+ maven {
|
||||
+ url uri("@deps@")
|
||||
+ }
|
||||
}
|
||||
|
||||
dependencies {
|
||||
@@ -102,6 +116,8 @@ dependencies {
|
||||
implementation 'io.prometheus:simpleclient_httpserver:0.14.1'
|
||||
implementation 'com.squareup.okhttp3:logging-interceptor:4.9.3'
|
||||
implementation 'io.sentry:sentry:5.6.1'
|
||||
+ implementation 'com.github.gmazzo.buildconfig:com.github.gmazzo.buildconfig.gradle.plugin:3.0.3'
|
||||
+ implementation 'org.jetbrains.kotlin:kotlin-scripting-jvm:1.4.31'
|
||||
testImplementation 'org.junit.jupiter:junit-jupiter:5.8.2'
|
||||
}
|
||||
|
||||
--
|
||||
2.33.1
|
||||
|
|
@ -1,34 +1,24 @@
|
|||
{ lib, stdenv, fetchurl, fetchFromGitLab, jdk17_headless, coreutils, gradle_6, git, perl
|
||||
, makeWrapper, fetchpatch
|
||||
, makeWrapper, fetchpatch, substituteAll
|
||||
}:
|
||||
|
||||
let
|
||||
pname = "signald";
|
||||
version = "0.15.0";
|
||||
version = "0.17.0";
|
||||
|
||||
src = fetchFromGitLab {
|
||||
owner = pname;
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "ftK+oeqzJ+TxrlvqivFkAi5RCcyJ5Y0oQAJuo0YheBg=";
|
||||
};
|
||||
|
||||
log4j-update-cve-2021-44228 = fetchpatch {
|
||||
url = "https://gitlab.com/signald/signald/-/commit/7f668062ab9ffa09a49d171e995f57cf0a0803a7.patch";
|
||||
sha256 = "sha256-504je6hKciUGelVCGZjxGjHi1qZQaovagXD5PBQP+mM=";
|
||||
};
|
||||
|
||||
buildConfigJar = fetchurl {
|
||||
url = "https://dl.bintray.com/mfuerstenau/maven/gradle/plugin/de/fuerstenau/BuildConfigPlugin/1.1.8/BuildConfigPlugin-1.1.8.jar";
|
||||
sha256 = "0y1f42y7ilm3ykgnm6s3ks54d71n8lsy5649xgd9ahv28lj05x9f";
|
||||
sha256 = "sha256-eN6lEs6PuRczbzQZmGlNf6Ahp4FbWpA3EArlATEiZHU=";
|
||||
};
|
||||
|
||||
# fake build to pre-download deps into fixed-output derivation
|
||||
deps = stdenv.mkDerivation {
|
||||
pname = "${pname}-deps";
|
||||
inherit src version;
|
||||
patches = [ log4j-update-cve-2021-44228 ];
|
||||
nativeBuildInputs = [ gradle_6 perl ];
|
||||
patches = [ ./0001-Fetch-buildconfig-during-gradle-build-inside-Nix-FOD.patch ];
|
||||
buildPhase = ''
|
||||
export GRADLE_USER_HOME=$(mktemp -d)
|
||||
gradle --no-daemon build
|
||||
|
@ -36,7 +26,7 @@ let
|
|||
# perl code mavenizes pathes (com.squareup.okio/okio/1.13.0/a9283170b7305c8d92d25aff02a6ab7e45d06cbe/okio-1.13.0.jar -> com/squareup/okio/okio/1.13.0/okio-1.13.0.jar)
|
||||
installPhase = ''
|
||||
find $GRADLE_USER_HOME/caches/modules-2 -type f -regex '.*\.\(jar\|pom\)' \
|
||||
| perl -pe 's#(.*/([^/]+)/([^/]+)/([^/]+)/[0-9a-f]{30,40}/([^/\s]+))$# ($x = $2) =~ tr|\.|/|; "install -Dm444 $1 \$out/$x/$3/$4/''${\($5 =~ s/-jvm//r)}" #e' \
|
||||
| perl -pe 's#(.*/([^/]+)/([^/]+)/([^/]+)/[0-9a-f]{30,40}/([^/\s]+))$# ($x = $2) =~ tr|\.|/|; "install -Dm444 $1 \$out/$x/$3/$4/''${\($5 =~ s/okio-jvm/okio/r)}" #e' \
|
||||
| sh
|
||||
'';
|
||||
# Don't move info to share/
|
||||
|
@ -45,8 +35,8 @@ let
|
|||
outputHashMode = "recursive";
|
||||
# Downloaded jars differ by platform
|
||||
outputHash = {
|
||||
x86_64-linux = "sha256-e2Tehtznc+VsvQzD3lQ50Lg7ipQc7P3ekOnb8XLORO8=";
|
||||
aarch64-linux = "sha256-P48s3vG5vUNxCCga5FhzpODhlvvc+F2ZZGX/G0FVGWc=";
|
||||
x86_64-linux = "sha256-kZ25p+lIkOqNoFFBgJRYFcvKJenKICVa1PasaaEHmRA=";
|
||||
aarch64-linux = "sha256-CbFNigp3R7ETX0uXv6PNuhDpmPc4sowbWmwZ+5txXQs=";
|
||||
}.${stdenv.system} or (throw "Unsupported platform");
|
||||
};
|
||||
|
||||
|
@ -54,22 +44,17 @@ in stdenv.mkDerivation rec {
|
|||
inherit pname src version;
|
||||
|
||||
patches = [
|
||||
./gradle-plugin.patch
|
||||
log4j-update-cve-2021-44228
|
||||
(substituteAll {
|
||||
src = ./0002-buildconfig-local-deps-fixes.patch;
|
||||
inherit deps;
|
||||
})
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
sed -i 's|BuildConfig.jar|${buildConfigJar}|' build.gradle
|
||||
'';
|
||||
|
||||
buildPhase = ''
|
||||
runHook preBuild
|
||||
|
||||
export GRADLE_USER_HOME=$(mktemp -d)
|
||||
|
||||
# Use the local packages from -deps
|
||||
sed -i -e 's|mavenCentral()|mavenLocal(); maven { url uri("${deps}") }|' build.gradle
|
||||
|
||||
gradle --offline --no-daemon distTar
|
||||
|
||||
runHook postBuild
|
||||
|
@ -100,7 +85,7 @@ in stdenv.mkDerivation rec {
|
|||
'';
|
||||
homepage = "https://signald.org";
|
||||
license = licenses.gpl3Plus;
|
||||
maintainers = with maintainers; [ expipiplus1 ];
|
||||
maintainers = with maintainers; [ expipiplus1 ma27 ];
|
||||
platforms = [ "x86_64-linux" "aarch64-linux" ];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,19 +0,0 @@
|
|||
diff --git a/build.gradle b/build.gradle
|
||||
index 11d7a99..66805bb 100644
|
||||
--- a/build.gradle
|
||||
+++ b/build.gradle
|
||||
@@ -18,9 +18,12 @@ import org.gradle.nativeplatform.platform.internal.OperatingSystemInternal
|
||||
import org.gradle.nativeplatform.platform.internal.DefaultNativePlatform
|
||||
import org.xml.sax.SAXParseException
|
||||
|
||||
-plugins {
|
||||
- id 'de.fuerstenau.buildconfig' version '1.1.8'
|
||||
+buildscript {
|
||||
+ dependencies {
|
||||
+ classpath files ("BuildConfig.jar")
|
||||
+ }
|
||||
}
|
||||
+apply plugin: 'de.fuerstenau.buildconfig'
|
||||
|
||||
apply plugin: 'java'
|
||||
apply plugin: 'application'
|
150
pkgs/applications/networking/n8n/node-packages.nix
generated
150
pkgs/applications/networking/n8n/node-packages.nix
generated
|
@ -265,13 +265,13 @@ let
|
|||
sha512 = "Ups2dShK52xXa8w6iBWLgcjPJWjais6KPJQq3gQ/88AY6BXoTX+MIGFPrWQO1KLMiQfoTpcLnUwloN4brrVUHw==";
|
||||
};
|
||||
};
|
||||
"@oclif/parser-3.8.6" = {
|
||||
"@oclif/parser-3.8.7" = {
|
||||
name = "_at_oclif_slash_parser";
|
||||
packageName = "@oclif/parser";
|
||||
version = "3.8.6";
|
||||
version = "3.8.7";
|
||||
src = fetchurl {
|
||||
url = "https://registry.npmjs.org/@oclif/parser/-/parser-3.8.6.tgz";
|
||||
sha512 = "tXb0NKgSgNxmf6baN6naK+CCwOueaFk93FG9u202U7mTBHUKsioOUlw1SG/iPi9aJM3WE4pHLXmty59pci0OEw==";
|
||||
url = "https://registry.npmjs.org/@oclif/parser/-/parser-3.8.7.tgz";
|
||||
sha512 = "b11xBmIUK+LuuwVGJpFs4LwQN2xj2cBWj2c4z1FtiXGrJ85h9xV6q+k136Hw0tGg1jQoRXuvuBnqQ7es7vO9/Q==";
|
||||
};
|
||||
};
|
||||
"@opentelemetry/api-1.1.0" = {
|
||||
|
@ -445,13 +445,13 @@ let
|
|||
sha512 = "zm6xBQpFDIDM6o9r6HSgDeIcLy82TKWctCXEPbJJcXb5AKmi5BNNdLXneixK4lplX3PqIVcwLBCGE/kAGnlD4A==";
|
||||
};
|
||||
};
|
||||
"@types/lodash-4.14.178" = {
|
||||
"@types/lodash-4.14.179" = {
|
||||
name = "_at_types_slash_lodash";
|
||||
packageName = "@types/lodash";
|
||||
version = "4.14.178";
|
||||
version = "4.14.179";
|
||||
src = fetchurl {
|
||||
url = "https://registry.npmjs.org/@types/lodash/-/lodash-4.14.178.tgz";
|
||||
sha512 = "0d5Wd09ItQWH1qFbEyQ7oTQ3GZrMfth5JkbN3EvTKLXcHLRDSXeLnlvlOn0wvxVIwK5o2M8JzP/OWz7T3NRsbw==";
|
||||
url = "https://registry.npmjs.org/@types/lodash/-/lodash-4.14.179.tgz";
|
||||
sha512 = "uwc1x90yCKqGcIOAT6DwOSuxnrAbpkdPsUOZtwrXb4D/6wZs+6qG7QnIawDuZWg0sWpxl+ltIKCaLoMlna678w==";
|
||||
};
|
||||
};
|
||||
"@types/lossless-json-1.0.1" = {
|
||||
|
@ -481,13 +481,13 @@ let
|
|||
sha512 = "cPjLXj8d6anFPzFvOPxS3fvly3Shm5nTfl6g8X5smexixbuGUf7hfr21J5tX9JW+UPStp/5P5R8qrKL5IyVJ+A==";
|
||||
};
|
||||
};
|
||||
"@types/node-17.0.18" = {
|
||||
"@types/node-17.0.21" = {
|
||||
name = "_at_types_slash_node";
|
||||
packageName = "@types/node";
|
||||
version = "17.0.18";
|
||||
version = "17.0.21";
|
||||
src = fetchurl {
|
||||
url = "https://registry.npmjs.org/@types/node/-/node-17.0.18.tgz";
|
||||
sha512 = "eKj4f/BsN/qcculZiRSujogjvp5O/k4lOW5m35NopjZM/QwLOR075a8pJW5hD+Rtdm2DaCVPENS6KtSQnUD6BA==";
|
||||
url = "https://registry.npmjs.org/@types/node/-/node-17.0.21.tgz";
|
||||
sha512 = "DBZCJbhII3r90XbQxI8Y9IjjiiOGlZ0Hr32omXIZvwwZ7p4DMMXGrKXVyPfuoBOri9XNtL0UK69jYIBIsRX3QQ==";
|
||||
};
|
||||
};
|
||||
"@types/node-fetch-2.6.1" = {
|
||||
|
@ -976,13 +976,13 @@ let
|
|||
sha512 = "uUbetCWczQHbsKyX1C99XpQHBM8SWfovvaZhPIj23/1uV7SQf0WeRZbiLpw0JZm+LHTChfNgrLfDJOVoU2kU+A==";
|
||||
};
|
||||
};
|
||||
"aws-sdk-2.1077.0" = {
|
||||
"aws-sdk-2.1082.0" = {
|
||||
name = "aws-sdk";
|
||||
packageName = "aws-sdk";
|
||||
version = "2.1077.0";
|
||||
version = "2.1082.0";
|
||||
src = fetchurl {
|
||||
url = "https://registry.npmjs.org/aws-sdk/-/aws-sdk-2.1077.0.tgz";
|
||||
sha512 = "orJvJROs8hJaQRfHsX7Zl5PxEgrD/uTXyqXz9Yu9Io5VVxzvnOty9oHmvEMSlgTIf1qd01gnev/vpvP1HgzKtw==";
|
||||
url = "https://registry.npmjs.org/aws-sdk/-/aws-sdk-2.1082.0.tgz";
|
||||
sha512 = "aDrUZ63O/ocuC827ursDqFQAm3jhqsJu1DvMCCFg73y+FK9pXXNHp2mwdi3UeeHvtfxISCLCjuyO3VFd/tpVfA==";
|
||||
};
|
||||
};
|
||||
"aws-sign2-0.7.0" = {
|
||||
|
@ -1894,6 +1894,15 @@ let
|
|||
sha512 = "arSMRWIIFY0hV8pIxZMEfmMI47Wj3R/aWpZDDxWYCPEiOMv6tfOrnpDtgxBYPEQD4V0Y/958+1TdC3iWTFcUPw==";
|
||||
};
|
||||
};
|
||||
"cssfilter-0.0.10" = {
|
||||
name = "cssfilter";
|
||||
packageName = "cssfilter";
|
||||
version = "0.0.10";
|
||||
src = fetchurl {
|
||||
url = "https://registry.npmjs.org/cssfilter/-/cssfilter-0.0.10.tgz";
|
||||
sha1 = "c6d2672632a2e5c83e013e6864a42ce8defd20ae";
|
||||
};
|
||||
};
|
||||
"dashdash-1.14.1" = {
|
||||
name = "dashdash";
|
||||
packageName = "dashdash";
|
||||
|
@ -4441,13 +4450,13 @@ let
|
|||
sha512 = "6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==";
|
||||
};
|
||||
};
|
||||
"mssql-6.4.0" = {
|
||||
"mssql-6.4.1" = {
|
||||
name = "mssql";
|
||||
packageName = "mssql";
|
||||
version = "6.4.0";
|
||||
version = "6.4.1";
|
||||
src = fetchurl {
|
||||
url = "https://registry.npmjs.org/mssql/-/mssql-6.4.0.tgz";
|
||||
sha512 = "Mtgu3PXqoaL7aHCMurttvEHibjvz5XKjlR6ZCDyAeKtDBORpxm88JyzEU2EESVf7588GulYKc7Gr+Txf5CICBQ==";
|
||||
url = "https://registry.npmjs.org/mssql/-/mssql-6.4.1.tgz";
|
||||
sha512 = "G1I7mM0gfxcH5TGSNoVmxq13Mve5YnQgRAlonqaMlHEjHjMn1g04bsrIQbVHFRdI6++dw/FGWlh8GoItJMoUDw==";
|
||||
};
|
||||
};
|
||||
"mute-stream-0.0.8" = {
|
||||
|
@ -4477,49 +4486,49 @@ let
|
|||
sha512 = "z81GNO7nnYMEhrGh9LeymoE4+Yr0Wn5McHIZMK5cfQCl+NDX08sCZgUc9/6MHni9IWuFLm1Z3HTCXu2z9fN62Q==";
|
||||
};
|
||||
};
|
||||
"n8n-core-0.105.0" = {
|
||||
"n8n-core-0.106.0" = {
|
||||
name = "n8n-core";
|
||||
packageName = "n8n-core";
|
||||
version = "0.105.0";
|
||||
version = "0.106.0";
|
||||
src = fetchurl {
|
||||
url = "https://registry.npmjs.org/n8n-core/-/n8n-core-0.105.0.tgz";
|
||||
sha512 = "rYAtchFf7V94M9UP1ZCu9ie9O6OWncNconuzO9I1D/QLjBNVGzu0+SsG8be5bGTrAWO0WiNYdj84qMqqJS4NWg==";
|
||||
url = "https://registry.npmjs.org/n8n-core/-/n8n-core-0.106.0.tgz";
|
||||
sha512 = "0aEoY00VPKNodcQl9NN2hTvqQysCNPeg/Ex1UKlt4b0xeqhkIEJ2KMILexXwHitPnTyJwXhn7ewqK7YafdKBcw==";
|
||||
};
|
||||
};
|
||||
"n8n-design-system-0.11.0" = {
|
||||
"n8n-design-system-0.12.0" = {
|
||||
name = "n8n-design-system";
|
||||
packageName = "n8n-design-system";
|
||||
version = "0.11.0";
|
||||
version = "0.12.0";
|
||||
src = fetchurl {
|
||||
url = "https://registry.npmjs.org/n8n-design-system/-/n8n-design-system-0.11.0.tgz";
|
||||
sha512 = "KL64XTr9sqqiBEEV7on2cdLooleHPyXClFL+THUy2oXDbGqdlyCGykukU7S4aX+nSjrJEQEDMaMcbw3NCHrumg==";
|
||||
url = "https://registry.npmjs.org/n8n-design-system/-/n8n-design-system-0.12.0.tgz";
|
||||
sha512 = "ZMPcOVL/yzsIut7mvHbIx03OxLa2z+jE3CtaZjSyK4tk2NQ8gVc+BOBAasmVCkO4CeJbdDMGDF+ktnUaC4ougw==";
|
||||
};
|
||||
};
|
||||
"n8n-editor-ui-0.131.0" = {
|
||||
"n8n-editor-ui-0.132.0" = {
|
||||
name = "n8n-editor-ui";
|
||||
packageName = "n8n-editor-ui";
|
||||
version = "0.131.0";
|
||||
version = "0.132.0";
|
||||
src = fetchurl {
|
||||
url = "https://registry.npmjs.org/n8n-editor-ui/-/n8n-editor-ui-0.131.0.tgz";
|
||||
sha512 = "Sexo31sn8PdiNjDckNfDCXBs9MBR/hF5NzuFtUCUNaXPR6Z5gql6EhPT+fJfG9Wdsj09L3vV+j3gTAbXqRgPIw==";
|
||||
url = "https://registry.npmjs.org/n8n-editor-ui/-/n8n-editor-ui-0.132.0.tgz";
|
||||
sha512 = "WOH1Lh+2VYTqBL75pe+WB0H2K8O/6BSW/Wsl5zXbrI0YXmaC9YEvSTAcmjxvjW+oYnYLfQR3p3j6g3AtNldiJQ==";
|
||||
};
|
||||
};
|
||||
"n8n-nodes-base-0.162.0" = {
|
||||
"n8n-nodes-base-0.163.0" = {
|
||||
name = "n8n-nodes-base";
|
||||
packageName = "n8n-nodes-base";
|
||||
version = "0.162.0";
|
||||
version = "0.163.0";
|
||||
src = fetchurl {
|
||||
url = "https://registry.npmjs.org/n8n-nodes-base/-/n8n-nodes-base-0.162.0.tgz";
|
||||
sha512 = "bi7vs//5OHrW6RowouusBwUzKutFKnysLWdDrlxlCENGtRDtI+7ELrLMWnKs6PYTRWz0OSBHpEMN64MDEIoEZg==";
|
||||
url = "https://registry.npmjs.org/n8n-nodes-base/-/n8n-nodes-base-0.163.0.tgz";
|
||||
sha512 = "kLndPbDemejOGROHrf5KHs7E1yQ5JwwAdyhJpzWX4M2C2Od52YRk4G97r5FZsaxW/e6vJawY6tw1O6PVM1H6nw==";
|
||||
};
|
||||
};
|
||||
"n8n-workflow-0.87.0" = {
|
||||
"n8n-workflow-0.88.0" = {
|
||||
name = "n8n-workflow";
|
||||
packageName = "n8n-workflow";
|
||||
version = "0.87.0";
|
||||
version = "0.88.0";
|
||||
src = fetchurl {
|
||||
url = "https://registry.npmjs.org/n8n-workflow/-/n8n-workflow-0.87.0.tgz";
|
||||
sha512 = "ei5fvQK4jM3NotOA36d267o243m2MdlSPlG6cIutqx4lgUd1oXX7mYyCJzF3/kNcWbiI8QjdhUoURgdCOEzn8g==";
|
||||
url = "https://registry.npmjs.org/n8n-workflow/-/n8n-workflow-0.88.0.tgz";
|
||||
sha512 = "Rrlw7MqzPS0Q8T2AIe+aDioIkxC9v1aDbs5L0L/SDlGe54W2uG9qmLZ9/TTfzZZ4qzXX6fTEMNbICVmlmbEaUQ==";
|
||||
};
|
||||
};
|
||||
"named-placeholders-1.1.2" = {
|
||||
|
@ -7015,13 +7024,13 @@ let
|
|||
sha1 = "021e4d9c7705f21bbf37d03ceb58767402774c64";
|
||||
};
|
||||
};
|
||||
"url-parse-1.5.9" = {
|
||||
"url-parse-1.5.10" = {
|
||||
name = "url-parse";
|
||||
packageName = "url-parse";
|
||||
version = "1.5.9";
|
||||
version = "1.5.10";
|
||||
src = fetchurl {
|
||||
url = "https://registry.npmjs.org/url-parse/-/url-parse-1.5.9.tgz";
|
||||
sha512 = "HpOvhKBvre8wYez+QhHcYiVvVmeF6DVnuSOOPhe3cTum3BnqHhvKaZm8FU5yTiOu/Jut2ZpB2rA/SbBA1JIGlQ==";
|
||||
url = "https://registry.npmjs.org/url-parse/-/url-parse-1.5.10.tgz";
|
||||
sha512 = "WypcfiRhfeUP9vvF0j6rw0J3hrWrw6iZv3+22h6iRMJ/8z1Tj6XfLP4DsUix5MhMPnXpiHDoKyoZ/bdCkwBCiQ==";
|
||||
};
|
||||
};
|
||||
"utf7-1.0.2" = {
|
||||
|
@ -7141,13 +7150,13 @@ let
|
|||
sha1 = "3a105ca17053af55d6e270c1f8288682e18da400";
|
||||
};
|
||||
};
|
||||
"vm2-3.9.8" = {
|
||||
"vm2-3.9.9" = {
|
||||
name = "vm2";
|
||||
packageName = "vm2";
|
||||
version = "3.9.8";
|
||||
version = "3.9.9";
|
||||
src = fetchurl {
|
||||
url = "https://registry.npmjs.org/vm2/-/vm2-3.9.8.tgz";
|
||||
sha512 = "/1PYg/BwdKzMPo8maOZ0heT7DLI0DAFTm7YQaz/Lim9oIaFZsJs3EdtalvXuBfZwczNwsYhju75NW4d6E+4q+w==";
|
||||
url = "https://registry.npmjs.org/vm2/-/vm2-3.9.9.tgz";
|
||||
sha512 = "xwTm7NLh/uOjARRBs8/95H0e8fT3Ukw5D/JJWhxMbhKzNh1Nu981jQKvkep9iKYNxzlVrdzD0mlBGkDKZWprlw==";
|
||||
};
|
||||
};
|
||||
"vue-fragment-1.5.2" = {
|
||||
|
@ -7366,6 +7375,15 @@ let
|
|||
sha1 = "52a63e56ca0b84a7f3a5f3d61872f126ad7a5943";
|
||||
};
|
||||
};
|
||||
"xss-1.0.10" = {
|
||||
name = "xss";
|
||||
packageName = "xss";
|
||||
version = "1.0.10";
|
||||
src = fetchurl {
|
||||
url = "https://registry.npmjs.org/xss/-/xss-1.0.10.tgz";
|
||||
sha512 = "qmoqrRksmzqSKvgqzN0055UFWY7OKx1/9JWeRswwEVX9fCG5jcYRxa/A2DHcmZX6VJvjzHRQ2STeeVcQkrmLSw==";
|
||||
};
|
||||
};
|
||||
"xtend-4.0.2" = {
|
||||
name = "xtend";
|
||||
packageName = "xtend";
|
||||
|
@ -7462,10 +7480,10 @@ in
|
|||
n8n = nodeEnv.buildNodePackage {
|
||||
name = "n8n";
|
||||
packageName = "n8n";
|
||||
version = "0.164.1";
|
||||
version = "0.165.0";
|
||||
src = fetchurl {
|
||||
url = "https://registry.npmjs.org/n8n/-/n8n-0.164.1.tgz";
|
||||
sha512 = "8eUhHHikLspebbc1AjatdSQeaQAVgeYMIMFZmiUPMUw8FVtQ67otse6t/RvBE2RXTzxKer54Nr8eA+cF5dHi8g==";
|
||||
url = "https://registry.npmjs.org/n8n/-/n8n-0.165.0.tgz";
|
||||
sha512 = "PYg5cXEeH6YzVZaSDD9yOZbPtTM/yfaohbZjijyyzVmlOBnI6teQsaY+aLqK6ST4LfMfpB0ZkXpaiBj6xE9azA==";
|
||||
};
|
||||
dependencies = [
|
||||
(sources."@azure/abort-controller-1.0.5" // {
|
||||
|
@ -7551,7 +7569,7 @@ in
|
|||
];
|
||||
})
|
||||
sources."@oclif/linewrap-1.0.0"
|
||||
(sources."@oclif/parser-3.8.6" // {
|
||||
(sources."@oclif/parser-3.8.7" // {
|
||||
dependencies = [
|
||||
sources."tslib-2.3.1"
|
||||
];
|
||||
|
@ -7574,10 +7592,10 @@ in
|
|||
sources."@types/ftp-0.3.33"
|
||||
sources."@types/json-diff-0.5.2"
|
||||
sources."@types/jsonwebtoken-8.5.8"
|
||||
sources."@types/lodash-4.14.178"
|
||||
sources."@types/lodash-4.14.179"
|
||||
sources."@types/lossless-json-1.0.1"
|
||||
sources."@types/mime-1.3.2"
|
||||
sources."@types/node-17.0.18"
|
||||
sources."@types/node-17.0.21"
|
||||
(sources."@types/node-fetch-2.6.1" // {
|
||||
dependencies = [
|
||||
sources."form-data-3.0.1"
|
||||
|
@ -7646,7 +7664,7 @@ in
|
|||
];
|
||||
})
|
||||
sources."avsc-5.7.3"
|
||||
(sources."aws-sdk-2.1077.0" // {
|
||||
(sources."aws-sdk-2.1082.0" // {
|
||||
dependencies = [
|
||||
sources."buffer-4.9.2"
|
||||
sources."events-1.1.1"
|
||||
|
@ -7839,6 +7857,7 @@ in
|
|||
sources."csrf-3.1.0"
|
||||
sources."css-select-4.2.1"
|
||||
sources."css-what-5.1.0"
|
||||
sources."cssfilter-0.0.10"
|
||||
sources."dashdash-1.14.1"
|
||||
sources."date-utils-1.2.21"
|
||||
sources."debug-4.3.3"
|
||||
|
@ -8196,7 +8215,7 @@ in
|
|||
];
|
||||
})
|
||||
sources."ms-2.1.2"
|
||||
sources."mssql-6.4.0"
|
||||
sources."mssql-6.4.1"
|
||||
sources."mute-stream-0.0.8"
|
||||
(sources."mysql2-2.3.3" // {
|
||||
dependencies = [
|
||||
|
@ -8205,19 +8224,19 @@ in
|
|||
];
|
||||
})
|
||||
sources."mz-2.7.0"
|
||||
(sources."n8n-core-0.105.0" // {
|
||||
(sources."n8n-core-0.106.0" // {
|
||||
dependencies = [
|
||||
sources."qs-6.10.3"
|
||||
];
|
||||
})
|
||||
sources."n8n-design-system-0.11.0"
|
||||
sources."n8n-editor-ui-0.131.0"
|
||||
(sources."n8n-nodes-base-0.162.0" // {
|
||||
sources."n8n-design-system-0.12.0"
|
||||
sources."n8n-editor-ui-0.132.0"
|
||||
(sources."n8n-nodes-base-0.163.0" // {
|
||||
dependencies = [
|
||||
sources."iconv-lite-0.6.3"
|
||||
];
|
||||
})
|
||||
sources."n8n-workflow-0.87.0"
|
||||
sources."n8n-workflow-0.88.0"
|
||||
(sources."named-placeholders-1.1.2" // {
|
||||
dependencies = [
|
||||
sources."lru-cache-4.1.5"
|
||||
|
@ -8627,7 +8646,7 @@ in
|
|||
sources."punycode-1.3.2"
|
||||
];
|
||||
})
|
||||
sources."url-parse-1.5.9"
|
||||
sources."url-parse-1.5.10"
|
||||
(sources."utf7-1.0.2" // {
|
||||
dependencies = [
|
||||
sources."semver-5.3.0"
|
||||
|
@ -8643,7 +8662,7 @@ in
|
|||
sources."validator-13.7.0"
|
||||
sources."vary-1.1.2"
|
||||
sources."verror-1.10.0"
|
||||
sources."vm2-3.9.8"
|
||||
sources."vm2-3.9.9"
|
||||
sources."vue-fragment-1.5.2"
|
||||
sources."vue-i18n-8.27.0"
|
||||
sources."webidl-conversions-3.0.1"
|
||||
|
@ -8676,6 +8695,11 @@ in
|
|||
sources."xmlbuilder-11.0.1"
|
||||
sources."xpath.js-1.1.0"
|
||||
sources."xregexp-2.0.0"
|
||||
(sources."xss-1.0.10" // {
|
||||
dependencies = [
|
||||
sources."commander-2.20.3"
|
||||
];
|
||||
})
|
||||
sources."xtend-4.0.2"
|
||||
sources."y18n-5.0.8"
|
||||
sources."yallist-4.0.0"
|
||||
|
|
|
@ -22,13 +22,13 @@
|
|||
|
||||
mkDerivation rec {
|
||||
pname = "nextcloud-client";
|
||||
version = "3.4.2";
|
||||
version = "3.4.3";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "nextcloud";
|
||||
repo = "desktop";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-cqpdn2STxJtUTBRFrUh1lRIDaFZfrRkJMxcJuTKxgk8=";
|
||||
sha256 = "sha256-nryoueoqnbBAJaU11OUXKP5PNrYf4515ojBkdMFIEMA=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
|
|
|
@ -1,38 +0,0 @@
|
|||
{ mkDerivation
|
||||
, lib
|
||||
, fetchurl
|
||||
, extra-cmake-modules
|
||||
, boost
|
||||
, akonadi-calendar
|
||||
, kontactinterface
|
||||
, krunner
|
||||
}:
|
||||
|
||||
mkDerivation rec {
|
||||
pname = "zanshin";
|
||||
version = "21.12.2";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://kde/stable/release-service/${version}/src/zanshin-${version}.tar.xz";
|
||||
sha256 = "sha256-zMCV4KIrqeKHEsMbqEbnm/DgQiGxZbZXDVMuSSrXj8Y=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
extra-cmake-modules
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
boost
|
||||
akonadi-calendar
|
||||
kontactinterface
|
||||
krunner
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A powerful yet simple application to manage your day to day actions, getting your mind like water";
|
||||
homepage = "https://zanshin.kde.org/";
|
||||
maintainers = with maintainers; [ zraexy ];
|
||||
platforms = platforms.linux;
|
||||
license = licenses.gpl2Plus;
|
||||
};
|
||||
}
|
|
@ -14,7 +14,7 @@
|
|||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "neuron";
|
||||
pname = "neuron${lib.optionalString useMpi "-mpi"}";
|
||||
version = "7.5";
|
||||
|
||||
nativeBuildInputs = [ which pkg-config automake autoconf libtool ];
|
||||
|
|
|
@ -5,12 +5,12 @@
|
|||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "RAxML";
|
||||
pname = "RAxML${lib.optionalString useMpi "-mpi"}";
|
||||
version = "8.2.12";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "stamatak";
|
||||
repo = "standard-${pname}";
|
||||
repo = "standard-RAxML";
|
||||
rev = "v${version}";
|
||||
sha256 = "1jqjzhch0rips0vp04prvb8vmc20c5pdmsqn8knadcf91yy859fh";
|
||||
};
|
||||
|
|
|
@ -2,13 +2,13 @@
|
|||
, eigen, lua, luaPackages, liblapack, blas, lib, boost, gsl }:
|
||||
|
||||
clangStdenv.mkDerivation rec {
|
||||
version = "v1.0.1";
|
||||
version = "1.0.1";
|
||||
pname = "d-SEAMS";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "d-SEAMS";
|
||||
repo = "seams-core";
|
||||
rev = "v1.0.1";
|
||||
rev = "v${version}";
|
||||
sha256 = "03zhhl9vhi3rhc3qz1g3zb89jksgpdlrk15fcr8xcz8pkj6r5b1i";
|
||||
};
|
||||
|
||||
|
|
|
@ -3,32 +3,41 @@
|
|||
, fetchFromGitHub
|
||||
, installShellFiles
|
||||
, makeWrapper
|
||||
, bash
|
||||
, coreutils
|
||||
, git
|
||||
, pandoc
|
||||
}:
|
||||
|
||||
buildGoModule rec {
|
||||
let
|
||||
version = "1.2.1";
|
||||
commit = "eed9dc7c82c5a7fbc13fd9b496e1faaec3f20d57";
|
||||
in buildGoModule {
|
||||
pname = "gg-scm";
|
||||
version = "1.1.0";
|
||||
inherit version;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "gg-scm";
|
||||
repo = "gg";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-kLmu4h/EBbSFHrffvusKq38X3/ID9bOlLMvEUtnFGhk=";
|
||||
sha256 = "770c807403f5d99cea6450f889d268800e1c2563f0cd6142936741c40b29cc95";
|
||||
};
|
||||
patches = [ ./skip-broken-revert-tests.patch ];
|
||||
postPatch = ''
|
||||
substituteInPlace cmd/gg/editor_unix.go \
|
||||
--replace /bin/sh ${bash}/bin/sh
|
||||
'';
|
||||
subPackages = [ "cmd/gg" ];
|
||||
ldflags = [
|
||||
"-s" "-w"
|
||||
"-X" "main.versionInfo=${version}"
|
||||
"-X" "main.buildCommit=a0b348c9cef33fa46899f5e55e3316f382a09f6a+"
|
||||
"-X" "main.buildCommit=${commit}"
|
||||
];
|
||||
|
||||
vendorSha256 = "sha256-+ZmNXB+I6vPRbACwEkfl/vVmqoZy67Zn9SBrham5zRk=";
|
||||
vendorSha256 = "214dc073dad7b323ea449acf24c5b578d573432eeaa1506cf5761a2d7f5ce405";
|
||||
|
||||
nativeBuildInputs = [ git pandoc installShellFiles makeWrapper ];
|
||||
buildInputs = [ git ];
|
||||
nativeBuildInputs = [ pandoc installShellFiles makeWrapper ];
|
||||
checkInputs = [ bash coreutils git ];
|
||||
buildInputs = [ bash git ];
|
||||
|
||||
postInstall = ''
|
||||
wrapProgram $out/bin/gg --suffix PATH : ${git}/bin
|
||||
|
|
|
@ -1,12 +0,0 @@
|
|||
diff --git a/cmd/gg/revert_test.go b/cmd/gg/revert_test.go
|
||||
index 9420e9b..ff6ca93 100644
|
||||
--- a/cmd/gg/revert_test.go
|
||||
+++ b/cmd/gg/revert_test.go
|
||||
@@ -592,6 +592,7 @@ func TestRevert_LocalRename(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestRevert_UnknownFile(t *testing.T) {
|
||||
+ t.Skip("Broken in 1.1.0")
|
||||
t.Parallel()
|
||||
t.Run("EmptyRepo", func(t *testing.T) {
|
||||
t.Parallel()
|
|
@ -20,7 +20,7 @@ let
|
|||
inherit (python3Packages) docutils python fb-re2 pygit2 pygments;
|
||||
|
||||
self = python3Packages.buildPythonApplication rec {
|
||||
pname = "mercurial";
|
||||
pname = "mercurial${lib.optionalString fullBuild "-full"}";
|
||||
version = "6.0.3";
|
||||
|
||||
src = fetchurl {
|
||||
|
@ -34,9 +34,9 @@ let
|
|||
|
||||
cargoDeps = if rustSupport then rustPlatform.fetchCargoTarball {
|
||||
inherit src;
|
||||
name = "${pname}-${version}";
|
||||
name = "mercurial-${version}";
|
||||
sha256 = "sha256-i4WROxezeqLX4hTdcPrqsf6dBqsNZz6fFAPzItYuklE=";
|
||||
sourceRoot = "${pname}-${version}/rust";
|
||||
sourceRoot = "mercurial-${version}/rust";
|
||||
} else null;
|
||||
cargoRoot = if rustSupport then "rust" else null;
|
||||
|
||||
|
|
|
@ -7,11 +7,11 @@
|
|||
|
||||
buildPythonApplication rec {
|
||||
pname = "ffmpeg-normalize";
|
||||
version = "1.22.6";
|
||||
version = "1.22.7";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "sha256-aPPRzNotm3ATL0lEq+49lrlrHoNp+Dm1Im5jYF4E1vY=";
|
||||
sha256 = "sha256-yWn9SoVKnj9KtvBdI3k1a7fuKJmYeu9KrNyvPqw9SHU=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ ffmpeg ffmpeg-progress-yield ];
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ lib, stdenv, fetchurl, openjdk11, makeWrapper, autoPatchelfHook
|
||||
{ lib, stdenv, fetchurl, openjdk17, makeWrapper, autoPatchelfHook
|
||||
, zlib, libzen, libmediainfo, curl, libmms, glib
|
||||
}:
|
||||
|
||||
|
@ -10,11 +10,11 @@ in
|
|||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "filebot";
|
||||
version = "4.9.4";
|
||||
version = "4.9.5";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://web.archive.org/web/20210326102451/https://get.filebot.net/filebot/FileBot_${version}/FileBot_${version}-portable.tar.xz";
|
||||
sha256 = "sha256-fz0B9P/UBrlKGPZkheMd/4cFnWHt+brS3zRTv4nVt9o=";
|
||||
url = "https://web.archive.org/web/20220226124706/https://get.filebot.net/filebot/FileBot_${version}/FileBot_${version}-portable.tar.xz";
|
||||
sha256 = "sha256-LNvfAueDMd2TedK6bqnNG+J/4YhhbmUca9iyUkoUNkE=";
|
||||
};
|
||||
|
||||
unpackPhase = "tar xvf $src";
|
||||
|
@ -33,7 +33,7 @@ stdenv.mkDerivation rec {
|
|||
--replace 'APP_DATA="$FILEBOT_HOME/data/$(id -u)"' 'APP_DATA=''${XDG_DATA_HOME:-$HOME/.local/share}/filebot/data' \
|
||||
--replace '$FILEBOT_HOME/data/.license' '$APP_DATA/.license'
|
||||
wrapProgram $out/opt/filebot.sh \
|
||||
--prefix PATH : ${lib.makeBinPath [ openjdk11 ]}
|
||||
--prefix PATH : ${lib.makeBinPath [ openjdk17 ]}
|
||||
# Expose the binary in bin to make runnable.
|
||||
ln -s $out/opt/filebot.sh $out/bin/filebot
|
||||
'';
|
||||
|
|
44
pkgs/applications/window-managers/i3/swallow.nix
Normal file
44
pkgs/applications/window-managers/i3/swallow.nix
Normal file
|
@ -0,0 +1,44 @@
|
|||
{ lib
|
||||
, buildPythonApplication
|
||||
, fetchFromGitHub
|
||||
, poetry-core
|
||||
, i3ipc
|
||||
, xlib
|
||||
, six
|
||||
}:
|
||||
|
||||
buildPythonApplication rec {
|
||||
pname = "i3-swallow";
|
||||
version = "unstable-2022-02-19";
|
||||
|
||||
format = "pyproject";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "jamesofarrell";
|
||||
repo = "i3-swallow";
|
||||
rev = "6fbc04645c483fe733de56b56743e453693d4c78";
|
||||
sha256 = "1l3x8mixwq4n0lnyp0wz5vijgnypamq6lqjazcd2ywl2jv8d6fif";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
poetry-core
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
i3ipc
|
||||
xlib
|
||||
six
|
||||
];
|
||||
|
||||
# No tests available
|
||||
doCheck = false;
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/jamesofarrell/i3-swallow";
|
||||
description = "Swallow a terminal window in i3wm";
|
||||
license = licenses.mit;
|
||||
platforms = platforms.linux;
|
||||
mainProgram = "swallow";
|
||||
maintainers = [ maintainers.ivar ];
|
||||
};
|
||||
}
|
|
@ -4,13 +4,13 @@
|
|||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "jwm";
|
||||
version = "2.4.0";
|
||||
version = "2.4.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "joewing";
|
||||
repo = "jwm";
|
||||
rev = "v${version}";
|
||||
sha256 = "19fnrlw05njib13ljh7pmi48myfclra1xhy4b6hi74c6w6yz2fgj";
|
||||
sha256 = "sha256-7CEL2ddlABM7SYjMVUs3pu0O+2cVsz04slsdUIbgZuM=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ pkg-config gettext which autoreconfHook ];
|
||||
|
|
|
@ -34,6 +34,11 @@
|
|||
, extraConfig ? {} # Additional values to be added literally to the final item, e.g. vendor extensions
|
||||
}:
|
||||
let
|
||||
# FIXME: workaround until https://github.com/NixOS/nixpkgs/pull/162246 lands
|
||||
cleanName = if lib.hasInfix " " name
|
||||
then throw "Name must not contain spaces!"
|
||||
else name;
|
||||
|
||||
# There are multiple places in the FDO spec that make "boolean" values actually tristate,
|
||||
# e.g. StartupNotify, where "unset" is literally defined as "do something reasonable".
|
||||
# So, handle null values separately.
|
||||
|
@ -111,8 +116,8 @@ let
|
|||
content = [ mainSectionRendered ] ++ actionsRendered;
|
||||
in
|
||||
writeTextFile {
|
||||
name = "${name}.desktop";
|
||||
destination = "/share/applications/${name}.desktop";
|
||||
name = "${cleanName}.desktop";
|
||||
destination = "/share/applications/${cleanName}.desktop";
|
||||
text = builtins.concatStringsSep "\n" content;
|
||||
checkPhase = "${desktop-file-utils}/bin/desktop-file-validate $target";
|
||||
}
|
||||
|
|
|
@ -1,20 +1,31 @@
|
|||
{ lib, fetchurl }:
|
||||
{ lib, fetchurl, stdenv }:
|
||||
|
||||
let
|
||||
pname = "agave";
|
||||
version = "35";
|
||||
in fetchurl {
|
||||
name = "${pname}-${version}";
|
||||
url = "https://github.com/agarick/agave/releases/download/v${version}/Agave-Regular.ttf";
|
||||
version = "37";
|
||||
|
||||
downloadToTemp = true;
|
||||
recursiveHash = true;
|
||||
postFetch = ''
|
||||
install -D $downloadedFile $out/share/fonts/truetype/Agave-Regular.ttf
|
||||
mkAg = name: hash: fetchurl {
|
||||
url = "https://github.com/agarick/agave/releases/download/v${version}/Agave-${name}.ttf";
|
||||
sha256 = hash;
|
||||
name = "Agave-${name}.ttf";
|
||||
};
|
||||
# There are slashed variants, but with same name so only bundle the default versions for now:
|
||||
fonts = [
|
||||
(mkAg "Regular" "sha256-vX1VhEgqy9rQ7hPmAgBGxKyIs2QSAYqZC/mL/2BIOrA=")
|
||||
(mkAg "Bold" "sha256-Ax/l/RKyc03law0ThiLac/7HHV4+YxibKzcZnjZs6VI=")
|
||||
];
|
||||
|
||||
in stdenv.mkDerivation {
|
||||
inherit pname version;
|
||||
srcs = fonts;
|
||||
sourceRoot = ".";
|
||||
|
||||
dontUnpack = true;
|
||||
|
||||
installPhase = ''
|
||||
install -D $srcs -t $out/share/fonts/truetype/
|
||||
'';
|
||||
|
||||
sha256 = "10shwsl1illdafnc352j439lklrxksip1vlh4jc934cr9qf4c1fz";
|
||||
|
||||
meta = with lib; {
|
||||
description = "truetype monospaced typeface designed for X environments";
|
||||
homepage = "https://b.agaric.net/page/agave";
|
||||
|
|
|
@ -4,25 +4,47 @@
|
|||
, glib
|
||||
, gnome-shell
|
||||
, gnome-themes-extra
|
||||
, jdupes
|
||||
, libxml2
|
||||
, sassc
|
||||
, util-linux
|
||||
, altVariants ? [] # default: normal
|
||||
, colorVariants ? [] # default: all
|
||||
, opacityVariants ? [] # default: all
|
||||
, themeVariants ? [] # default: default (BigSur-like theme)
|
||||
, nautilusSize ? null # default: 200px
|
||||
, panelOpacity ? null # default: 15%
|
||||
, panelSize ? null # default: 32px
|
||||
}:
|
||||
|
||||
let
|
||||
pname = "whitesur-gtk-theme";
|
||||
single = x: lib.optional (x != null) x;
|
||||
|
||||
in
|
||||
lib.checkListOfEnum "${pname}: alt variants" [ "normal" "alt" "all" ] altVariants
|
||||
lib.checkListOfEnum "${pname}: color variants" [ "light" "dark" ] colorVariants
|
||||
lib.checkListOfEnum "${pname}: opacity variants" [ "normal" "solid" ] opacityVariants
|
||||
lib.checkListOfEnum "${pname}: theme variants" [ "default" "blue" "purple" "pink" "red" "orange" "yellow" "green" "grey" "all" ] themeVariants
|
||||
lib.checkListOfEnum "${pname}: nautilus sidebar minimum width" [ "default" "180" "220" "240" "260" "280" ] (single nautilusSize)
|
||||
lib.checkListOfEnum "${pname}: panel opacity" [ "default" "30" "45" "60" "75" ] (single panelOpacity)
|
||||
lib.checkListOfEnum "${pname}: panel size" [ "default" "smaller" "bigger" ] (single panelSize)
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "whitesur-gtk-theme";
|
||||
version = "2021-12-28";
|
||||
version = "2022-02-21";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "vinceliuice";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "0i81aickccfp8fffilhi335hj5ijz2n38yj3zw2fnbwgm667i0fc";
|
||||
sha256 = "1bqgbkx7qhpj9vbqcxb69p67m8ix3avxr81pdpdi56g9gqbnkpfc";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
glib
|
||||
gnome-shell
|
||||
jdupes
|
||||
libxml2
|
||||
sassc
|
||||
util-linux
|
||||
|
@ -48,8 +70,21 @@ stdenv.mkDerivation rec {
|
|||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p $out/share/themes
|
||||
./install.sh --dest $out/share/themes --alt all --theme all
|
||||
|
||||
./install.sh \
|
||||
${toString (map (x: "--alt " + x) altVariants)} \
|
||||
${toString (map (x: "--color " + x) colorVariants)} \
|
||||
${toString (map (x: "--opacity " + x) opacityVariants)} \
|
||||
${toString (map (x: "--theme " + x) themeVariants)} \
|
||||
${lib.optionalString (nautilusSize != null) ("--size " + nautilusSize)} \
|
||||
${lib.optionalString (panelOpacity != null) ("--panel-opacity " + panelOpacity)} \
|
||||
${lib.optionalString (panelSize != null) ("--panel-size " + panelSize)} \
|
||||
--dest $out/share/themes
|
||||
|
||||
jdupes --link-soft --recurse $out/share
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
diff --git a/lld/CMakeLists.txt b/lld/CMakeLists.txt
|
||||
index e1a29b884d17..9d542f8fbfc1 100644
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 9bcc135665d0..d38679ed41e9 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -64,7 +64,7 @@ if(CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
|
||||
|
||||
set(LLVM_MAIN_INCLUDE_DIR ${MAIN_INCLUDE_DIR} CACHE PATH "Path to llvm/include")
|
||||
set(LLVM_BINARY_DIR ${LLVM_OBJ_ROOT} CACHE PATH "Path to LLVM build tree")
|
||||
- set(LLVM_MAIN_SRC_DIR ${MAIN_SRC_DIR} CACHE PATH "Path to LLVM source tree")
|
||||
@@ -74,7 +74,7 @@ if(LLD_BUILT_STANDALONE)
|
||||
|
||||
set(LLVM_MAIN_INCLUDE_DIR "${MAIN_INCLUDE_DIR}" CACHE PATH "Path to llvm/include")
|
||||
set(LLVM_BINARY_DIR "${LLVM_OBJ_ROOT}" CACHE PATH "Path to LLVM build tree")
|
||||
- set(LLVM_MAIN_SRC_DIR "${MAIN_SRC_DIR}" CACHE PATH "Path to LLVM source tree")
|
||||
+ set(LLVM_MAIN_SRC_DIR "${CMAKE_CURRENT_SOURCE_DIR}/../llvm" CACHE PATH "Path to LLVM source tree")
|
||||
|
||||
|
||||
find_program(LLVM_TABLEGEN_EXE "llvm-tblgen" ${LLVM_TOOLS_BINARY_DIR}
|
||||
NO_DEFAULT_PATH)
|
||||
|
|
|
@ -2,24 +2,24 @@
|
|||
, lib
|
||||
, fetchFromGitHub
|
||||
, unstableGitUpdater
|
||||
, dosbox
|
||||
|
||||
# Docs cause an immense increase in build time, up to 2 additional hours
|
||||
, withDocs ? false
|
||||
, dosbox
|
||||
, ghostscript
|
||||
, withGUI ? false
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "open-watcom-v2";
|
||||
version = "unstable-2022-01-18";
|
||||
version = "unstable-2022-02-22";
|
||||
name = "${pname}-unwrapped-${version}";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "open-watcom";
|
||||
repo = "open-watcom-v2";
|
||||
rev = "f09e0c969c45679c048180f2dc6b3dbbe69e42a0";
|
||||
sha256 = "dEjG4L/VVufSAerKcXPUqZ7esz4m8/210ZshVz4SNAA=";
|
||||
rev = "9e25b3d6b8066f09b4f7131a31de1cf2af691e9a";
|
||||
sha256 = "1w336070kmhc6cmn2aqr8vm0fmw3yza2n0w4asvs2kqxjgmbn6i2";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
|
@ -41,8 +41,7 @@ stdenv.mkDerivation rec {
|
|||
--replace '-static' ""
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ ]
|
||||
++ lib.optional (withDocs || withGUI) dosbox
|
||||
nativeBuildInputs = [ dosbox ]
|
||||
++ lib.optional withDocs ghostscript;
|
||||
|
||||
configurePhase = ''
|
||||
|
@ -55,7 +54,7 @@ stdenv.mkDerivation rec {
|
|||
export OWGUINOBUILD=${if withGUI then "0" else "1"}
|
||||
export OWNOBUILD=
|
||||
export OWDISTRBUILD=0
|
||||
export OWDOSBOX=${lib.optionalString (withDocs || withGUI) "${dosbox}/bin/dosbox"}
|
||||
export OWDOSBOX=${dosbox}/bin/dosbox
|
||||
export OWVERBOSE=0
|
||||
export OWRELROOT=$out
|
||||
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
{ lib, stdenv
|
||||
, pantheon
|
||||
, autoconf
|
||||
, automake
|
||||
, libtool
|
||||
{ stdenv
|
||||
, lib
|
||||
, autoreconfHook
|
||||
, gitUpdater
|
||||
, gnome
|
||||
, which
|
||||
, fetchgit
|
||||
|
@ -23,26 +22,24 @@
|
|||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "bamf";
|
||||
version = "0.5.5";
|
||||
version = "0.5.6";
|
||||
|
||||
outputs = [ "out" "dev" "devdoc" ];
|
||||
|
||||
src = fetchgit {
|
||||
url = "https://git.launchpad.net/~unity-team/bamf";
|
||||
rev = "${version}+21.10.20210710-0ubuntu1";
|
||||
sha256 = "0iwz5z5cz9r56pmfjvjd2kcjlk416dw6g38svs33ynssjgsqbdm0";
|
||||
rev = version;
|
||||
sha256 = "7U+2GcuDjPU8quZjkd8bLADGlG++tl6wSo0mUQkjAXQ=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
(python3.withPackages (ps: with ps; [ lxml ])) # Tests
|
||||
autoconf
|
||||
automake
|
||||
autoreconfHook
|
||||
dbus
|
||||
docbook_xsl
|
||||
gnome.gnome-common
|
||||
gobject-introspection
|
||||
gtk-doc
|
||||
libtool
|
||||
pkg-config
|
||||
vala
|
||||
which
|
||||
|
@ -69,22 +66,23 @@ stdenv.mkDerivation rec {
|
|||
"--enable-headless-tests"
|
||||
];
|
||||
|
||||
# fix paths
|
||||
# Fix paths
|
||||
makeFlags = [
|
||||
"INTROSPECTION_GIRDIR=${placeholder "dev"}/share/gir-1.0/"
|
||||
"INTROSPECTION_TYPELIBDIR=${placeholder "out"}/lib/girepository-1.0"
|
||||
];
|
||||
|
||||
preConfigure = ''
|
||||
./autogen.sh
|
||||
'';
|
||||
|
||||
# TODO: Requires /etc/machine-id
|
||||
doCheck = false;
|
||||
|
||||
# glib-2.62 deprecations
|
||||
# Ignore deprecation errors
|
||||
NIX_CFLAGS_COMPILE = "-DGLIB_DISABLE_DEPRECATION_WARNINGS";
|
||||
|
||||
passthru.updateScript = gitUpdater {
|
||||
inherit pname version;
|
||||
ignoredVersions = ".ubuntu.*";
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
description = "Application matching framework";
|
||||
longDescription = ''
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
assert mpiSupport -> mpi != null;
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "highfive";
|
||||
pname = "highfive${lib.optionalString mpiSupport "-mpi"}";
|
||||
version = "2.3.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
|
|
|
@ -10,11 +10,11 @@
|
|||
let
|
||||
inherit (hdf5) mpiSupport mpi;
|
||||
in stdenv.mkDerivation rec {
|
||||
pname = "netcdf";
|
||||
pname = "netcdf" + lib.optionalString mpiSupport "-mpi";
|
||||
version = "4.8.0"; # Remove patch mentioned below on upgrade
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://www.unidata.ucar.edu/downloads/netcdf/ftp/${pname}-c-${version}.tar.gz";
|
||||
url = "https://www.unidata.ucar.edu/downloads/netcdf/ftp/netcdf-c-${version}.tar.gz";
|
||||
sha256 = "1mfn8qi4k0b8pyar3wa8v0npj69c7rhgfdlppdwmq5jqk88kb5k7";
|
||||
};
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "NGT";
|
||||
version = "v1.12.3-alpha";
|
||||
version = "1.12.3-alpha";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "yahoojapan";
|
||||
|
|
|
@ -2,14 +2,14 @@
|
|||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "olm";
|
||||
version = "3.2.9";
|
||||
version = "3.2.10";
|
||||
|
||||
src = fetchFromGitLab {
|
||||
domain = "gitlab.matrix.org";
|
||||
owner = "matrix-org";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "1vcxxnhsskvnkmk5ial31mvbhs1jwriw8ngyhfslbd30fr9ylw08";
|
||||
sha256 = "0v0w98m11r2rqvlrxssnzhqkaxmpbi5s3rkk3csfzhhkpgiv46km";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ cmake ];
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
{ lib, stdenv, fetchFromGitHub, cmake }:
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "rang";
|
||||
version = "v3.1.0";
|
||||
version = "3.1.0";
|
||||
src = fetchFromGitHub {
|
||||
"owner" = "agauniyal";
|
||||
owner = "agauniyal";
|
||||
repo = "rang";
|
||||
"rev" = "cabe04d6d6b05356fa8f9741704924788f0dd762";
|
||||
"sha256" = "0v2pz0l2smagr3j4abjccshg4agaccfz79m5ayvrvqq5d4rlds0s";
|
||||
rev = "cabe04d6d6b05356fa8f9741704924788f0dd762";
|
||||
sha256 = "0v2pz0l2smagr3j4abjccshg4agaccfz79m5ayvrvqq5d4rlds0s";
|
||||
};
|
||||
nativeBuildInputs = [ cmake ];
|
||||
meta = with lib; {
|
||||
|
|
|
@ -10,7 +10,7 @@ let
|
|||
in
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "sqlite";
|
||||
pname = "sqlite${optionalString interactive "-interactive"}";
|
||||
version = "3.38.0";
|
||||
|
||||
# nixpkgs-update: no auto update
|
||||
|
|
|
@ -336,7 +336,7 @@ let
|
|||
|
||||
src = fetchurl {
|
||||
url = "https://registry.npmjs.org/prisma/-/prisma-${version}.tgz";
|
||||
sha512 = "sha512-xLmVyO/L6C4ZdHzHqiJVq3ZfDWSym29x75JcwJx746ps61UcNEg4ozSwN9ud7UjXLntdXe1xDLNOUO1lc7LN5g==";
|
||||
sha512 = "sha512-dAld12vtwdz9Rz01nOjmnXe+vHana5PSog8t0XGgLemKsUVsaupYpr74AHaS3s78SaTS5s2HOghnJF+jn91ZrA==";
|
||||
};
|
||||
postInstall = with pkgs; ''
|
||||
wrapProgram "$out/bin/prisma" \
|
||||
|
|
|
@ -17,30 +17,21 @@
|
|||
|
||||
buildPythonPackage rec {
|
||||
pname = "aioitertools";
|
||||
version = "0.8.0";
|
||||
version = "0.10.0";
|
||||
format = "pyproject";
|
||||
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "8b02facfbc9b0f1867739949a223f3d3267ed8663691cc95abd94e2c1d8c2b46";
|
||||
hash = "sha256-fR0dSgPUYsWghAeH098JjxJYR+DTi4M7MPj4y8RaFCA=";
|
||||
};
|
||||
|
||||
patches = lib.optionals (pythonAtLeast "3.10") [
|
||||
(fetchpatch {
|
||||
# Fix TypeError: wait() got an unexpected keyword argument 'loop'
|
||||
# See https://github.com/omnilib/aioitertools/issues/84
|
||||
url = "https://raw.githubusercontent.com/archlinux/svntogit-community/packages/python-aioitertools/trunk/python310.patch";
|
||||
sha256 = "sha256-F10sduGaLBcxEoP83N/lGpZIlzkM2JTnQnhHKFwc7P0=";
|
||||
})
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
flit-core
|
||||
];
|
||||
|
||||
propagatedBuildInputs = lib.optionals (pythonOlder "3.8") [
|
||||
propagatedBuildInputs = lib.optionals (pythonOlder "3.10") [
|
||||
typing-extensions
|
||||
];
|
||||
|
||||
|
@ -53,7 +44,7 @@ buildPythonPackage rec {
|
|||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Implementation of itertools, builtins, and more for AsyncIO and mixed-type iterables.";
|
||||
description = "Implementation of itertools, builtins, and more for AsyncIO and mixed-type iterables";
|
||||
license = licenses.mit;
|
||||
homepage = "https://pypi.org/project/aioitertools/";
|
||||
maintainers = with maintainers; [ teh ];
|
||||
|
|
|
@ -13,12 +13,12 @@
|
|||
|
||||
buildPythonPackage rec {
|
||||
pname = "bandit";
|
||||
version = "1.7.2";
|
||||
version = "1.7.3";
|
||||
disabled = !isPy3k;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "sha256-bRGt6gIUpDgTiHv+caN3tamVXkyCbI/9NBtJTjqyUmA=";
|
||||
sha256 = "sha256-WHcsqVG/ESndqKKA01FUfegycgv3tcKfrDEDknmAuKY=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
, visualizationSupport ? false }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "binwalk";
|
||||
pname = "binwalk${lib.optionalString visualizationSupport "-full"}";
|
||||
version = "2.3.3";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
|
|
|
@ -1,22 +1,23 @@
|
|||
{ lib
|
||||
, aiohttp
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, pythonOlder
|
||||
, poetry-core
|
||||
, aiohttp
|
||||
, pythonOlder
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "garages-amsterdam";
|
||||
version = "3.2.1";
|
||||
version = "4.0.0";
|
||||
format = "pyproject";
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
disabled = pythonOlder "3.9";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "klaasnicolaas";
|
||||
repo = "garages_amsterdam";
|
||||
rev = "v${version}";
|
||||
sha256 = "16f2742r9p3mrg2nz8lnkgsxabbjga2qnp9vzq59026q6mmfwkm9";
|
||||
sha256 = "sha256-3YSCf5sUnq2+Bt7LA30XeIMg4zsaPF3K5SVzGZ68SbY=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
|
@ -35,7 +36,9 @@ buildPythonPackage rec {
|
|||
# The only test requires network access
|
||||
doCheck = false;
|
||||
|
||||
pythonImportsCheck = [ "garages_amsterdam" ];
|
||||
pythonImportsCheck = [
|
||||
"garages_amsterdam"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python client for getting garage occupancy in Amsterdam";
|
||||
|
|
|
@ -2,13 +2,13 @@
|
|||
|
||||
buildPythonPackage rec {
|
||||
pname = "glfw";
|
||||
version = "2.5.0";
|
||||
version = "2.5.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "FlorianRhiem";
|
||||
repo = "pyGLFW";
|
||||
rev = "v${version}";
|
||||
sha256 = "15kk0zhhja0yqah09wzpg6912zd5bjmk84ab1n5nwryicpg44hqk";
|
||||
sha256 = "sha256-XR6TqIrbCR93Qe9cRMgJ0aT/6ZZFj+6Mz+9GhiMD8lM=";
|
||||
};
|
||||
|
||||
# Patch path to GLFW shared object
|
||||
|
|
|
@ -7,12 +7,12 @@
|
|||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "5.1.1";
|
||||
version = "5.2.0";
|
||||
pname = "gspread";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "d9db8c43d552f541ea072d4727d1e955bc2368b095dd86c5429a845c9d8aed8f";
|
||||
sha256 = "sha256-JRc6wIFGnPnWIVFMZXbGz0bznIJfF4uMueeDdKY3sL8=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ requests google-auth google-auth-oauthlib ];
|
||||
|
|
|
@ -9,7 +9,10 @@
|
|||
, ipython
|
||||
, jupyter-client
|
||||
, ipykernel
|
||||
, packaging
|
||||
, psutil
|
||||
, tornado
|
||||
, tqdm
|
||||
, isPy3k
|
||||
, futures ? null
|
||||
}:
|
||||
|
@ -25,7 +28,7 @@ buildPythonPackage rec {
|
|||
|
||||
buildInputs = [ nose ];
|
||||
|
||||
propagatedBuildInputs = [ python-dateutil ipython_genutils decorator pyzmq ipython jupyter-client ipykernel tornado
|
||||
propagatedBuildInputs = [ python-dateutil ipython_genutils decorator pyzmq ipython jupyter-client ipykernel packaging psutil tornado tqdm
|
||||
] ++ lib.optionals (!isPy3k) [ futures ];
|
||||
|
||||
# Requires access to cluster
|
||||
|
|
|
@ -64,8 +64,15 @@ buildPythonPackage rec {
|
|||
"tests/"
|
||||
];
|
||||
|
||||
# See https://github.com/google/jax/issues/9705.
|
||||
disabledTests = lib.optionals usingMKL [ "test_custom_root_with_aux" ];
|
||||
# See
|
||||
# * https://github.com/google/jax/issues/9705
|
||||
# * https://discourse.nixos.org/t/getting-different-results-for-the-same-build-on-two-equally-configured-machines/17921
|
||||
# * https://github.com/NixOS/nixpkgs/issues/161960
|
||||
disabledTests = lib.optionals usingMKL [
|
||||
"test_custom_linear_solve_cholesky"
|
||||
"test_custom_root_with_aux"
|
||||
"testEigvalsGrad_shape"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"jax"
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
{ buildPythonPackage
|
||||
, lib
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, psutil
|
||||
, pythonOlder
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
|
@ -8,15 +10,25 @@ buildPythonPackage rec {
|
|||
version = "1.5.0";
|
||||
format = "pyproject";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "e13b148008adeb2793cf8b55bcd20fdcec4f763f2d3bf3c45f5e5e5d1df7d228";
|
||||
hash = "sha256-4TsUgAit6yeTz4tVvNIP3OxPdj8tO/PEX15eXR330ig=";
|
||||
};
|
||||
|
||||
meta = {
|
||||
description = "A library to choose unique available network ports.";
|
||||
propagatedBuildInputs = [
|
||||
psutil
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"portpicker"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Library to choose unique available network ports";
|
||||
homepage = "https://github.com/google/python_portpicker";
|
||||
license = lib.licenses.asl20;
|
||||
maintainers = with lib.maintainers; [ danharaj ];
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ danharaj ];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,21 +1,35 @@
|
|||
{ lib, fetchPypi, buildPythonPackage
|
||||
, importlib-metadata, importlib-resources, six, traits
|
||||
{ lib
|
||||
, fetchPypi
|
||||
, buildPythonPackage
|
||||
, importlib-metadata
|
||||
, importlib-resources
|
||||
, traits
|
||||
, pythonOlder
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pyface";
|
||||
version = "7.4.0";
|
||||
version = "7.4.1";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "sha256-r8Awj9dOYPWxh1Ar2JK/nhuY8hAGFO4+6yr9yq7Pb6s=";
|
||||
sha256 = "sha256-UtzzZ5yj5hCjynxLmQSpbGkWiASNtdflKvjlAZ5HrbY=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ importlib-metadata importlib-resources six traits ];
|
||||
propagatedBuildInputs = [
|
||||
importlib-metadata
|
||||
importlib-resources
|
||||
traits
|
||||
];
|
||||
|
||||
doCheck = false; # Needs X server
|
||||
|
||||
pythonImportsCheck = [ "pyface" ];
|
||||
pythonImportsCheck = [
|
||||
"pyface"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Traits-capable windowing framework";
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
, pkg-config
|
||||
, python
|
||||
, dbus-python
|
||||
, packaging
|
||||
, enlightenment
|
||||
}:
|
||||
|
||||
|
@ -11,18 +12,18 @@
|
|||
|
||||
buildPythonPackage rec {
|
||||
pname = "python-efl";
|
||||
version = "1.25.0";
|
||||
version = "1.26.0";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://download.enlightenment.org/rel/bindings/python/${pname}-${version}.tar.xz";
|
||||
sha256 = "0bk161xwlz4dlv56r68xwkm8snzfifaxd1j7w2wcyyk4fgvnvq4r";
|
||||
sha256 = "0dj6f24n33hkpy0bkdclnzpxhvs8vpaxqaf7hkw0di19pjwrq25h";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
|
||||
buildInputs = [ enlightenment.efl ];
|
||||
|
||||
propagatedBuildInputs = [ dbus-python ];
|
||||
propagatedBuildInputs = [ dbus-python packaging ];
|
||||
|
||||
preConfigure = ''
|
||||
NIX_CFLAGS_COMPILE="$(pkg-config --cflags efl evas) $NIX_CFLAGS_COMPILE"
|
||||
|
@ -39,8 +40,8 @@ buildPythonPackage rec {
|
|||
doCheck = false;
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python bindings for EFL and Elementary";
|
||||
homepage = "https://phab.enlightenment.org/w/projects/python_bindings_for_efl/";
|
||||
description = "Python bindings for Enlightenment Foundation Libraries";
|
||||
homepage = "https://github.com/DaveMDS/python-efl";
|
||||
platforms = platforms.linux;
|
||||
license = with licenses; [ gpl3 lgpl3 ];
|
||||
maintainers = with maintainers; [ matejc tstrobel ftrvxmtrx romildo ];
|
||||
|
|
|
@ -2,12 +2,12 @@
|
|||
|
||||
buildPythonPackage rec {
|
||||
pname = "rstcheck";
|
||||
version = "v3.3.1";
|
||||
version = "3.3.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "myint";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-4AhENuT+LtUMCi+aaI/rKa2gHti8sKGLdVGjdRithXI=";
|
||||
};
|
||||
|
||||
|
|
|
@ -1,24 +1,40 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, pytestCheckHook
|
||||
, installShellFiles
|
||||
, pytestCheckHook
|
||||
, pythonAtLeast
|
||||
, pythonOlder
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "xkcdpass";
|
||||
version = "1.19.3";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "c5a2e948746da6fe504e8404284f457d8e98da6df5047c6bb3f71b18882e9d2a";
|
||||
hash = "sha256-xaLpSHRtpv5QToQEKE9FfY6Y2m31BHxrs/cbGIgunSo=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ installShellFiles ];
|
||||
nativeBuildInputs = [
|
||||
installShellFiles
|
||||
];
|
||||
|
||||
checkInputs = [ pytestCheckHook ];
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "xkcdpass" ];
|
||||
pythonImportsCheck = [
|
||||
"xkcdpass"
|
||||
];
|
||||
|
||||
disabledTests = lib.optionals (pythonAtLeast "3.10") [
|
||||
# https://github.com/redacted/XKCD-password-generator/issues/138
|
||||
"test_entropy_printout_valid_input"
|
||||
];
|
||||
|
||||
postInstall = ''
|
||||
installManPage *.?
|
||||
|
@ -27,7 +43,7 @@ buildPythonPackage rec {
|
|||
|
||||
meta = with lib; {
|
||||
description = "Generate secure multiword passwords/passphrases, inspired by XKCD";
|
||||
homepage = "https://pypi.python.org/pypi/xkcdpass/";
|
||||
homepage = "https://github.com/redacted/XKCD-password-generator";
|
||||
license = licenses.bsd3;
|
||||
maintainers = with maintainers; [ peterhoeg ];
|
||||
};
|
||||
|
|
|
@ -7,14 +7,14 @@
|
|||
|
||||
buildPythonPackage rec {
|
||||
pname = "ytmusicapi";
|
||||
version = "0.20.0";
|
||||
version = "0.21.0";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-DvLrytLp28TVFVdkmWg19cC2VRetFcSx7dmsO4HQqVo=";
|
||||
hash = "sha256-JstIHc61TFQEgRHr54N4Doq6ML0EcIcDGTEJ/tbrC2A=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
|
|
|
@ -8,11 +8,11 @@
|
|||
|
||||
buildPythonPackage rec {
|
||||
pname = "zfec";
|
||||
version = "1.5.5";
|
||||
version = "1.5.7.2";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "6033b2f3cc3edacf3f7eeed5f258c1ebf8a1d7e5e35b623db352512ce564e5ca";
|
||||
sha256 = "sha256-TuUZvg3MfaLohIK8/Av5d6Ql4dfoJ4z1u7uNAPiir7Y=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ pyutil ];
|
||||
|
|
|
@ -44,13 +44,13 @@ let
|
|||
in
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "radare2";
|
||||
version = "5.6.2";
|
||||
version = "5.6.4";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "radare";
|
||||
repo = "radare2";
|
||||
rev = version;
|
||||
sha256 = "sha256-R53S2+v0qCY5Q7Uf2gQ4veaOzYN2iE6F00+ERvknD2g=";
|
||||
sha256 = "sha256-rqGlp9fHTF1z8A+DROYfzHXi5xfLMdUWzssGN5uHQmE=";
|
||||
};
|
||||
|
||||
preBuild = ''
|
||||
|
|
|
@ -43,13 +43,13 @@ let
|
|||
in
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "github-runner";
|
||||
version = "2.287.1";
|
||||
version = "2.288.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "actions";
|
||||
repo = "runner";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-4SPrtX3j8blWTYnSkD2Z7IecZvI4xdAqHRJ1lBM0aAo=";
|
||||
hash = "sha256-vl8p+isoK+yczmsMO2YjnmJQW/k0jLgCUbhQa/wG650=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
|
@ -184,6 +184,11 @@ stdenv.mkDerivation rec {
|
|||
"EnsureDotnetsdkPowershellDownloadScriptUpToDate"
|
||||
]
|
||||
++ [ "GitHub.Runner.Common.Tests.Listener.RunnerL0.TestRunOnceHandleUpdateMessage" ]
|
||||
# Tests for trimmed runner packages which aim at reducing the update size. Not relevant for Nix.
|
||||
++ map (x: "GitHub.Runner.Common.Tests.PackagesTrimL0.${x}") [
|
||||
"RunnerLayoutParts_CheckExternalsHash"
|
||||
"RunnerLayoutParts_CheckDotnetRuntimeHash"
|
||||
]
|
||||
++ lib.optionals (stdenv.hostPlatform.system == "aarch64-linux") [
|
||||
# "JavaScript Actions in Alpine containers are only supported on x64 Linux runners. Detected Linux Arm64"
|
||||
"GitHub.Runner.Common.Tests.Worker.StepHostL0.DetermineNodeRuntimeVersionInAlpineContainerAsync"
|
||||
|
|
|
@ -10,19 +10,19 @@
|
|||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "prisma-engines";
|
||||
version = "3.8.0";
|
||||
version = "3.10.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "prisma";
|
||||
repo = "prisma-engines";
|
||||
rev = version;
|
||||
sha256 = "sha256-pP5gNWRucr2rJqBPBt4Y/akf7tABFWhmr3EWC3/kj+g=";
|
||||
sha256 = "sha256-0m0RjIasEGB9QxZc7wKCMLnxHXkSlvCDA2QWa87mRRs=";
|
||||
};
|
||||
|
||||
# Use system openssl.
|
||||
OPENSSL_NO_VENDOR = 1;
|
||||
|
||||
cargoSha256 = "sha256-F105SOFWEhFVGMmPOEdBZwhNHCYkRh1HI7fESzL2uQw=";
|
||||
cargoSha256 = "sha256-KNQa+wLLl4abz48QKYkWu7A+FTGIyB+1EWAnLuWpJwc=";
|
||||
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
|
||||
|
|
|
@ -2,16 +2,16 @@
|
|||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "just";
|
||||
version = "1.0.0";
|
||||
version = "1.0.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "casey";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "sha256-Q5ROUXOeqZfIZdrYwP3uaCy+Nh1FggJRUaNF0mMN7d4=";
|
||||
sha256 = "sha256-ssc6djhSk0xV4jdlTmehWX6UMBPAuebtYlzWRZ/32mM=";
|
||||
};
|
||||
|
||||
cargoSha256 = "sha256-sCijb9/Of38IebulGmdqSewBRrOCH4RzFopFC0cOPrI=";
|
||||
cargoSha256 = "sha256-ynYK37nCfIiy1CHBEQ/vMHOAPY/pp/lF/tSl9MJD7fY=";
|
||||
|
||||
nativeBuildInputs = [ installShellFiles ];
|
||||
buildInputs = lib.optionals stdenv.isDarwin [ libiconv ];
|
||||
|
|
|
@ -1,23 +1,17 @@
|
|||
{ lib, stdenv, fetchsvn, wrapQtAppsHook, qtbase, qttools, qmake, bison, flex, ... }:
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "qtspim";
|
||||
version = "9.1.22";
|
||||
version = "9.1.23";
|
||||
|
||||
src = fetchsvn {
|
||||
url = "https://svn.code.sf.net/p/spimsimulator/code/";
|
||||
rev = "r739";
|
||||
sha256 = "1kazfgrbmi4xq7nrkmnqw1280rhdyc1hmr82flrsa3g1b1rlmj1s";
|
||||
rev = "r749";
|
||||
sha256 = "0iazl7mlcilrdbw8gb98v868a8ldw2lmkn1xs8hnfvr93l6aj0rp";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
cd QtSpim
|
||||
|
||||
# Patches from https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=qtspim
|
||||
sed -i 's/zero_imm/is_zero_imm/g' parser_yacc.cpp
|
||||
sed -i 's/^int data_dir/bool data_dir/g' parser_yacc.cpp
|
||||
sed -i 's/^int text_dir/bool text_dir/g' parser_yacc.cpp
|
||||
sed -i 's/^int parse_error_occurred/bool parse_error_occurred/g' parser_yacc.cpp
|
||||
|
||||
substituteInPlace QtSpim.pro --replace /usr/lib/qtspim/lib $out/lib
|
||||
substituteInPlace menu.cpp \
|
||||
--replace /usr/lib/qtspim/bin/assistant ${qttools.dev}/bin/assistant \
|
||||
|
|
|
@ -3,12 +3,12 @@
|
|||
|
||||
buildGoPackage rec {
|
||||
pname = "packet";
|
||||
version = "v2.2.2";
|
||||
version = "2.2.2";
|
||||
|
||||
goPackagePath = "github.com/ebsarr/packet";
|
||||
|
||||
src = fetchgit {
|
||||
rev = version;
|
||||
rev = "v${version}";
|
||||
url = "https://github.com/ebsarr/packet";
|
||||
sha256 = "18n8f2rlab4icb28k1b9gnh30zy382v792x07fmcdqq4nkw6wvwf";
|
||||
};
|
||||
|
|
|
@ -64,11 +64,11 @@ let
|
|||
'';
|
||||
|
||||
desktopItem = makeDesktopItem {
|
||||
name = "Scene Builder";
|
||||
name = "scenebuilder";
|
||||
exec = "scenebuilder";
|
||||
icon = "scenebuilder";
|
||||
comment = "A visual, drag'n'drop, layout tool for designing JavaFX application user interfaces.";
|
||||
desktopName = pname;
|
||||
desktopName = "Scene Builder";
|
||||
mimeTypes = [ "application/java" "application/java-vm" "application/java-archive" ];
|
||||
categories = [ "Development" ];
|
||||
};
|
||||
|
|
|
@ -1,19 +1,25 @@
|
|||
{ stdenv, lib, fetchurl, writeText, php, makeWrapper }:
|
||||
{ stdenv
|
||||
, lib
|
||||
, fetchurl
|
||||
, formats
|
||||
, installShellFiles
|
||||
, makeWrapper
|
||||
, php
|
||||
}:
|
||||
|
||||
let
|
||||
version = "2.5.0";
|
||||
version = "2.6.0";
|
||||
|
||||
completion = fetchurl {
|
||||
url = "https://raw.githubusercontent.com/wp-cli/wp-cli/v${version}/utils/wp-completion.bash";
|
||||
sha256 = "sha256-RDygYQzK6NLWrOug7EqnkpuH7Wz1T2Zq/tGNZjoYo5U=";
|
||||
hash = "sha256-RDygYQzK6NLWrOug7EqnkpuH7Wz1T2Zq/tGNZjoYo5U=";
|
||||
};
|
||||
|
||||
ini = writeText "php.ini" ''
|
||||
[PHP]
|
||||
memory_limit = -1 ; no limit as composer uses a lot of memory
|
||||
ini = (formats.ini { }).generate "php.ini" {
|
||||
PHP.memory_limit = -1; # no limit as composer uses a lot of memory
|
||||
Phar."phar.readonly" = "Off";
|
||||
};
|
||||
|
||||
[Phar]
|
||||
phar.readonly = Off
|
||||
'';
|
||||
in
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "wp-cli";
|
||||
|
@ -21,19 +27,18 @@ stdenv.mkDerivation rec {
|
|||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/wp-cli/wp-cli/releases/download/v${version}/${pname}-${version}.phar";
|
||||
sha256 = "sha256-vghT6fRD84SFZgcIcdNE6K2B6x4V0V3PkyS0p14nJ4k=";
|
||||
hash = "sha256-0WZSjKtgvIIpwGcp5wc4OPu6aNaytXRQTLAniDXIeIg=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
nativeBuildInputs = [ installShellFiles makeWrapper ];
|
||||
|
||||
buildCommand = ''
|
||||
dir=$out/share/wp-cli
|
||||
mkdir -p $out/bin $dir
|
||||
|
||||
install -Dm444 ${src} $dir/wp-cli
|
||||
install -Dm444 ${ini} $dir/php.ini
|
||||
install -Dm444 ${completion} $out/share/bash-completion/completions/wp
|
||||
installShellCompletion --bash --name wp ${completion}
|
||||
|
||||
mkdir -p $out/bin
|
||||
makeWrapper ${lib.getBin php}/bin/php $out/bin/wp \
|
||||
--add-flags "-c $dir/php.ini" \
|
||||
--add-flags "-f $dir/wp-cli"
|
||||
|
|
|
@ -2,16 +2,16 @@
|
|||
|
||||
buildGoModule rec {
|
||||
pname = "yq-go";
|
||||
version = "4.20.2";
|
||||
version = "4.21.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "mikefarah";
|
||||
repo = "yq";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-vhHT9re35aT+TUYhl4rxv4PE/sd7Vp1PoFbS8s5lWLE=";
|
||||
sha256 = "sha256-283xe7FVHYSsRl4cZD7WDzIW1gqNAFsNrWYJkthZheU=";
|
||||
};
|
||||
|
||||
vendorSha256 = "sha256-samz70Dybu/Xf9+ftgIKgd2pyQcXw6Ybs/0oJN47IFE=";
|
||||
vendorSha256 = "sha256-F11FnDYJ59aKrdRXDPpKlhX52yQXdaN1sblSkVI2j9w=";
|
||||
|
||||
doCheck = false;
|
||||
|
||||
|
|
|
@ -2,13 +2,13 @@
|
|||
|
||||
buildGoModule rec {
|
||||
pname = "flyctl";
|
||||
version = "0.0.300";
|
||||
version = "0.0.301";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "superfly";
|
||||
repo = "flyctl";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-hwFnS8GLqGS28AdBgpIn2gRCKgJQSALDVLh5QdObV6g=";
|
||||
sha256 = "sha256-UwouKnUfEcYpwtLXxwe93mHzVvj/+72FSQ0OW55oztE=";
|
||||
};
|
||||
|
||||
preBuild = ''
|
||||
|
@ -17,7 +17,7 @@ buildGoModule rec {
|
|||
|
||||
subPackages = [ "." ];
|
||||
|
||||
vendorSha256 = "sha256-o5c3wbETEwnQ7IH8YM0xHSCXTnWTvZ5kvqRqoA3QkGc=";
|
||||
vendorSha256 = "sha256-VKX/Wt7CQy3w4Zv51M/IF1RIPpn7nTCL1T6jJ+oxti4=";
|
||||
|
||||
doCheck = false;
|
||||
|
||||
|
|
|
@ -11,13 +11,13 @@
|
|||
|
||||
let
|
||||
desktopItem = makeDesktopItem {
|
||||
name = "Domination";
|
||||
name = "domination";
|
||||
desktopName = "Domination";
|
||||
exec = "domination";
|
||||
icon = "domination";
|
||||
};
|
||||
editorDesktopItem = makeDesktopItem {
|
||||
name = "Domination Map Editor";
|
||||
name = "domination-map-editor";
|
||||
desktopName = "Domination Map Editor";
|
||||
exec = "domination-map-editor";
|
||||
icon = "domination";
|
||||
|
|
|
@ -5,7 +5,7 @@ let
|
|||
version = "2.9.3";
|
||||
|
||||
desktopItem = makeDesktopItem {
|
||||
name = "Lunar Client";
|
||||
name = "lunar-client";
|
||||
exec = "lunar-client";
|
||||
icon = "lunarclient";
|
||||
comment = "Minecraft 1.7, 1.8, 1.12, 1.15, and 1.16 Client";
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
{ lib, stdenv, fetchFromGitHub, pam, systemd }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
version = "v13";
|
||||
version = "13";
|
||||
pname = "physlock";
|
||||
src = fetchFromGitHub {
|
||||
owner = "muennich";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
rev = "v${version}";
|
||||
sha256 = "1mz4xxjip5ldiw9jgfq9zvqb6w10bcjfx6939w1appqg8f521a7s";
|
||||
};
|
||||
|
||||
|
|
|
@ -14,12 +14,15 @@ stdenv.mkDerivation rec {
|
|||
sha256 = "sha256-aTi+EogY1aDWYq3anjRkjz1mzINVfUPQbOPHthxrvS4=";
|
||||
};
|
||||
|
||||
buildPhase = ''
|
||||
runHook preBuild
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace lsiutil.c \
|
||||
--replace /sbin/modprobe "${kmod}/bin/modprobe" \
|
||||
--replace /bin/mknod "${coreutils}/bin/mknod"
|
||||
'';
|
||||
|
||||
buildPhase = ''
|
||||
runHook preBuild
|
||||
|
||||
gcc -Wall -O lsiutil.c -o lsiutil
|
||||
|
||||
runHook postBuild
|
||||
|
|
|
@ -14,6 +14,15 @@ rec {
|
|||
# The description needs to be overwritten for recursive types
|
||||
type = ...;
|
||||
|
||||
# Utility functions for convenience, or special interactions with the
|
||||
# format (optional)
|
||||
lib = {
|
||||
exampleFunction = ...
|
||||
# Types specific to the format (optional)
|
||||
types = { ... };
|
||||
...
|
||||
};
|
||||
|
||||
# generate :: Name -> Value -> Path
|
||||
# A function for generating a file with a value of such a type
|
||||
generate = ...;
|
||||
|
@ -147,4 +156,202 @@ rec {
|
|||
'';
|
||||
|
||||
};
|
||||
|
||||
/* For configurations of Elixir project, like config.exs or runtime.exs
|
||||
|
||||
Most Elixir project are configured using the [Config] Elixir DSL
|
||||
|
||||
Since Elixir has more types than Nix, we need a way to map Nix types to
|
||||
more than 1 Elixir type. To that end, this format provides its own library,
|
||||
and its own set of types.
|
||||
|
||||
To be more detailed, a Nix attribute set could correspond in Elixir to a
|
||||
[Keyword list] (the more common type), or it could correspond to a [Map].
|
||||
|
||||
A Nix string could correspond in Elixir to a [String] (also called
|
||||
"binary"), an [Atom], or a list of chars (usually discouraged).
|
||||
|
||||
A Nix array could correspond in Elixir to a [List] or a [Tuple].
|
||||
|
||||
Some more types exists, like records, regexes, but since they are less used,
|
||||
we can leave the `mkRaw` function as an escape hatch.
|
||||
|
||||
For more information on how to use this format in modules, please refer to
|
||||
the Elixir section of the Nixos documentation.
|
||||
|
||||
TODO: special Elixir values doesn't show up nicely in the documentation
|
||||
|
||||
[Config]: <https://hexdocs.pm/elixir/Config.html>
|
||||
[Keyword list]: <https://hexdocs.pm/elixir/Keyword.html>
|
||||
[Map]: <https://hexdocs.pm/elixir/Map.html>
|
||||
[String]: <https://hexdocs.pm/elixir/String.html>
|
||||
[Atom]: <https://hexdocs.pm/elixir/Atom.html>
|
||||
[List]: <https://hexdocs.pm/elixir/List.html>
|
||||
[Tuple]: <https://hexdocs.pm/elixir/Tuple.html>
|
||||
*/
|
||||
elixirConf = { elixir ? pkgs.elixir }:
|
||||
with lib; let
|
||||
toElixir = value: with builtins;
|
||||
if value == null then "nil" else
|
||||
if value == true then "true" else
|
||||
if value == false then "false" else
|
||||
if isInt value || isFloat value then toString value else
|
||||
if isString value then string value else
|
||||
if isAttrs value then attrs value else
|
||||
if isList value then list value else
|
||||
abort "formats.elixirConf: should never happen (value = ${value})";
|
||||
|
||||
escapeElixir = escape [ "\\" "#" "\"" ];
|
||||
string = value: "\"${escapeElixir value}\"";
|
||||
|
||||
attrs = set:
|
||||
if set ? _elixirType then specialType set
|
||||
else
|
||||
let
|
||||
toKeyword = name: value: "${name}: ${toElixir value}";
|
||||
keywordList = concatStringsSep ", " (mapAttrsToList toKeyword set);
|
||||
in
|
||||
"[" + keywordList + "]";
|
||||
|
||||
listContent = values: concatStringsSep ", " (map toElixir values);
|
||||
|
||||
list = values: "[" + (listContent values) + "]";
|
||||
|
||||
specialType = { value, _elixirType }:
|
||||
if _elixirType == "raw" then value else
|
||||
if _elixirType == "atom" then value else
|
||||
if _elixirType == "map" then elixirMap value else
|
||||
if _elixirType == "tuple" then tuple value else
|
||||
abort "formats.elixirConf: should never happen (_elixirType = ${_elixirType})";
|
||||
|
||||
elixirMap = set:
|
||||
let
|
||||
toEntry = name: value: "${toElixir name} => ${toElixir value}";
|
||||
entries = concatStringsSep ", " (mapAttrsToList toEntry set);
|
||||
in
|
||||
"%{${entries}}";
|
||||
|
||||
tuple = values: "{${listContent values}}";
|
||||
|
||||
toConf = values:
|
||||
let
|
||||
keyConfig = rootKey: key: value:
|
||||
"config ${rootKey}, ${key}, ${toElixir value}";
|
||||
keyConfigs = rootKey: values: mapAttrsToList (keyConfig rootKey) values;
|
||||
rootConfigs = flatten (mapAttrsToList keyConfigs values);
|
||||
in
|
||||
''
|
||||
import Config
|
||||
|
||||
${concatStringsSep "\n" rootConfigs}
|
||||
'';
|
||||
in
|
||||
{
|
||||
type = with lib.types; let
|
||||
valueType = nullOr
|
||||
(oneOf [
|
||||
bool
|
||||
int
|
||||
float
|
||||
str
|
||||
(attrsOf valueType)
|
||||
(listOf valueType)
|
||||
]) // {
|
||||
description = "Elixir value";
|
||||
};
|
||||
in
|
||||
attrsOf (attrsOf (valueType));
|
||||
|
||||
lib =
|
||||
let
|
||||
mkRaw = value: {
|
||||
inherit value;
|
||||
_elixirType = "raw";
|
||||
};
|
||||
|
||||
in
|
||||
{
|
||||
inherit mkRaw;
|
||||
|
||||
/* Fetch an environment variable at runtime, with optional fallback
|
||||
*/
|
||||
mkGetEnv = { envVariable, fallback ? null }:
|
||||
mkRaw "System.get_env(${toElixir envVariable}, ${toElixir fallback})";
|
||||
|
||||
/* Make an Elixir atom.
|
||||
|
||||
Note: lowercase atoms still need to be prefixed by ':'
|
||||
*/
|
||||
mkAtom = value: {
|
||||
inherit value;
|
||||
_elixirType = "atom";
|
||||
};
|
||||
|
||||
/* Make an Elixir tuple out of a list.
|
||||
*/
|
||||
mkTuple = value: {
|
||||
inherit value;
|
||||
_elixirType = "tuple";
|
||||
};
|
||||
|
||||
/* Make an Elixir map out of an attribute set.
|
||||
*/
|
||||
mkMap = value: {
|
||||
inherit value;
|
||||
_elixirType = "map";
|
||||
};
|
||||
|
||||
/* Contains Elixir types. Every type it exports can also be replaced
|
||||
by raw Elixir code (i.e. every type is `either type rawElixir`).
|
||||
|
||||
It also reexports standard types, wrapping them so that they can
|
||||
also be raw Elixir.
|
||||
*/
|
||||
types = with lib.types; let
|
||||
isElixirType = type: x: (x._elixirType or "") == type;
|
||||
|
||||
rawElixir = mkOptionType {
|
||||
name = "rawElixir";
|
||||
description = "raw elixir";
|
||||
check = isElixirType "raw";
|
||||
};
|
||||
|
||||
elixirOr = other: either other rawElixir;
|
||||
in
|
||||
{
|
||||
inherit rawElixir elixirOr;
|
||||
|
||||
atom = elixirOr (mkOptionType {
|
||||
name = "elixirAtom";
|
||||
description = "elixir atom";
|
||||
check = isElixirType "atom";
|
||||
});
|
||||
|
||||
tuple = elixirOr (mkOptionType {
|
||||
name = "elixirTuple";
|
||||
description = "elixir tuple";
|
||||
check = isElixirType "tuple";
|
||||
});
|
||||
|
||||
map = elixirOr (mkOptionType {
|
||||
name = "elixirMap";
|
||||
description = "elixir map";
|
||||
check = isElixirType "map";
|
||||
});
|
||||
# Wrap standard types, since anything in the Elixir configuration
|
||||
# can be raw Elixir
|
||||
} // lib.mapAttrs (_name: type: elixirOr type) lib.types;
|
||||
};
|
||||
|
||||
generate = name: value: pkgs.runCommandNoCC name
|
||||
{
|
||||
value = toConf value;
|
||||
passAsFile = [ "value" ];
|
||||
nativeBuildInputs = [ elixir ];
|
||||
} ''
|
||||
cp "$valuePath" "$out"
|
||||
mix format "$out"
|
||||
'';
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
@ -13,7 +13,11 @@ stdenv.mkDerivation rec {
|
|||
buildInputs = [ readline libssh ];
|
||||
|
||||
patches = [
|
||||
(./. + "/dont-create-sysconfdir-${builtins.substring 0 1 version}.patch")
|
||||
./dont-create-sysconfdir-2.patch
|
||||
(fetchurl {
|
||||
url = "https://gitlab.nic.cz/labs/bird/-/commit/fcb4dd0c831339c4374ace17d8f2ae6ebfeed279.patch";
|
||||
sha256 = "sha256-PEgpRnOGLa1orHJDEHlblnVhBVv7XOKPR70M1wUMxMQ=";
|
||||
})
|
||||
];
|
||||
|
||||
CPP="${stdenv.cc.targetPrefix}cpp -E";
|
||||
|
|
|
@ -1,6 +0,0 @@
|
|||
--- a/tools/Makefile.in
|
||||
+++ b/tools/Makefile.in
|
||||
@@ -68,2 +68,2 @@
|
||||
install: all
|
||||
- $(INSTALL) -d $(DESTDIR)/$(sbindir) $(DESTDIR)/$(sysconfdir) $(DESTDIR)/$(runstatedir)
|
||||
+ $(INSTALL) -d $(DESTDIR)/$(sbindir) $(DESTDIR)/$(sysconfdir)
|
|
@ -1,4 +1,4 @@
|
|||
{ lib, stdenv, fetchurl, libcap, openssl, pam }:
|
||||
{ lib, stdenv, fetchurl, libcap, libseccomp, openssl, pam, nixosTests }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "vsftpd";
|
||||
|
@ -9,7 +9,7 @@ stdenv.mkDerivation rec {
|
|||
sha256 = "sha256-JrYCrkVLC6bZnvRKCba54N+n9nIoEGc23x8njHC8kdM=";
|
||||
};
|
||||
|
||||
buildInputs = [ libcap openssl pam ];
|
||||
buildInputs = [ libcap openssl libseccomp pam ];
|
||||
|
||||
patches = [ ./CVE-2015-1419.patch ];
|
||||
|
||||
|
@ -30,10 +30,14 @@ stdenv.mkDerivation rec {
|
|||
"CC=${stdenv.cc.targetPrefix}cc"
|
||||
];
|
||||
|
||||
NIX_LDFLAGS = "-lcrypt -lssl -lcrypto -lpam -lcap";
|
||||
NIX_LDFLAGS = "-lcrypt -lssl -lcrypto -lpam -lcap -lseccomp";
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
passthru = {
|
||||
tests = { inherit (nixosTests) vsftpd; };
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
description = "A very secure FTP daemon";
|
||||
license = licenses.gpl2;
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
}:
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "roon-server";
|
||||
version = "1.8-898";
|
||||
version = "1.8-903";
|
||||
|
||||
src =
|
||||
let
|
||||
|
@ -23,7 +23,7 @@ stdenv.mkDerivation rec {
|
|||
in
|
||||
fetchurl {
|
||||
url = "http://download.roonlabs.com/builds/RoonServer_linuxx64_${urlVersion}.tar.bz2";
|
||||
sha256 = "sha256-khp2E5BYb7bGEW6xfCKEqYDqAdElOFLbAkaHjILfyqo=";
|
||||
sha256 = "sha256-FkB3sh1uwOctBOAW7eO8HFNr9a9RG3Yq4hKKscYYER4=";
|
||||
};
|
||||
|
||||
dontConfigure = true;
|
||||
|
|
|
@ -4,17 +4,16 @@
|
|||
, nixosTests
|
||||
}:
|
||||
|
||||
let
|
||||
version = "v2.3.0";
|
||||
buildGoPackage rec {
|
||||
pname = "pebble";
|
||||
in buildGoPackage {
|
||||
inherit pname version;
|
||||
version = "2.3.0";
|
||||
|
||||
goPackagePath = "github.com/letsencrypt/${pname}";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "letsencrypt";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
rev = "v${version}";
|
||||
sha256 = "1piwzzfqsdx6s2niczzp4mf4r3qn9nfdgpn7882g52cmmm0vzks2";
|
||||
};
|
||||
|
||||
|
|
|
@ -5,16 +5,16 @@
|
|||
|
||||
buildGoModule rec {
|
||||
pname = "trivy";
|
||||
version = "0.24.0";
|
||||
version = "0.24.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "aquasecurity";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-kpM/9bRUpcqF7dXlCS01Fn8TBfeW9Rr92pBd6w6HA30=";
|
||||
sha256 = "sha256-/XkHvXzF7SG5niIknd+wh1Uc0ZbfrklgTkZigjz3aNY=";
|
||||
};
|
||||
|
||||
vendorSha256 = "sha256-lLIlPzmXdz7kY7EEb+l4hUvM7y+1pDNK06/0lB0g2SM=";
|
||||
vendorSha256 = "sha256-C3JpjDXQ6sUnz9ixO3w2aP3G122nYHezYrNW/FZqlJQ=";
|
||||
|
||||
excludedPackages = "misc";
|
||||
|
||||
|
|
|
@ -14,15 +14,15 @@ let
|
|||
inherit (lib) last splitString;
|
||||
|
||||
pname = "winbox";
|
||||
version = "3.34";
|
||||
version = "3.35";
|
||||
name = "${pname}-${version}";
|
||||
|
||||
executable = fetchurl (if use64 then {
|
||||
url = "https://download.mikrotik.com/winbox/${version}/${pname}64.exe";
|
||||
sha256 = "1zr5qvdnr98xhwlhjikdnx3l5zyx6qnvxqy9p2hrayi0w4w5wmba";
|
||||
sha256 = "0jigjs4paci6h897hl1046ks5f812jfb2ihnp78lbah0294shjnj";
|
||||
} else {
|
||||
url = "https://download.mikrotik.com/winbox/${version}/${pname}.exe";
|
||||
sha256 = "1d5zif0f4xfiipjs281xwa3f3blfxbgzqppv3gg3rh5ivxwvaf6g";
|
||||
sha256 = "1a3cjhvh2z4n767aqqkv3a7wlda34ssgx9acigdcszgvbksbav1f";
|
||||
});
|
||||
# This is from the winbox AUR package:
|
||||
# https://aur.archlinux.org/cgit/aur.git/tree/winbox64?h=winbox64&id=8edd93792af84e87592e8645ca09e9795931e60e
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "snapdragon-profiler";
|
||||
version = "v2021.2";
|
||||
version = "2021.2";
|
||||
|
||||
src = archive;
|
||||
|
||||
|
|
|
@ -1,12 +1,11 @@
|
|||
{ lib, stdenv, fetchurl, qt4, qmake4Hook, unzip, libGLU, makeWrapper }:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "structure-synth";
|
||||
version = "v1.5";
|
||||
version = "1.5.0";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/structuresynth/StructureSynth-Source-v1.5.0.zip";
|
||||
url = "mirror://sourceforge/structuresynth/StructureSynth-Source-v${version}.zip";
|
||||
sha256 = "1kiammx46719az6jzrav8yrwz82nk4m72ybj0kpbnvp9wfl3swbb";
|
||||
};
|
||||
|
||||
|
|
|
@ -9,19 +9,19 @@
|
|||
|
||||
buildGoModule rec {
|
||||
pname = "remote-touchpad";
|
||||
version = "1.1.0";
|
||||
version = "1.2.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "unrud";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-XyE8N+YVwfgxToKkhpe8zJ0e3HFDpKt7cfERxWCfbfU=";
|
||||
sha256 = "sha256-GjXcQyv55yJSAFeNNB+YeCVWav7vMGo/d1FCPoujYjA=";
|
||||
};
|
||||
|
||||
buildInputs = [ libX11 libXi libXt libXtst ];
|
||||
tags = [ "portal,x11" ];
|
||||
|
||||
vendorSha256 = "sha256-zTx38kW/ylXXML73C2sFQciV2y3+qbO0S/ZdkiEh5Qs=";
|
||||
vendorSha256 = "sha256-WG8OjtfVemtmHkrMg4O0oofsjtFKmIvcmCn9AYAGIrc=";
|
||||
|
||||
meta = with lib; {
|
||||
description = "Control mouse and keyboard from the webbrowser of a smartphone.";
|
||||
|
|
|
@ -1,15 +1,14 @@
|
|||
{ lib, stdenv, fetchurl, bison, flex, libffi, coreutils }:
|
||||
{ lib, stdenv, fetchurl, libffi, coreutils }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "txr";
|
||||
version = "273";
|
||||
version = "274";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://www.kylheku.com/cgit/txr/snapshot/${pname}-${version}.tar.bz2";
|
||||
sha256 = "sha256-l0o60NktIsKn720kO8xzySQBMAVrfYhhWZ8L5K8QrUg=";
|
||||
sha256 = "sha256-bWgz0kmPLN0V0rkFRiCqxkBjhN8FV9fL+Vu8GSw9Ja4=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ bison flex ];
|
||||
buildInputs = [ libffi ];
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue