Merge staging-next into staging

This commit is contained in:
github-actions[bot] 2022-03-27 18:01:40 +00:00 committed by GitHub
commit 36198fe197
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
192 changed files with 5829 additions and 4478 deletions

View file

@ -49,7 +49,7 @@ jobs:
github_token: ${{ secrets.GITHUB_TOKEN }} github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Comment on failure - name: Comment on failure
uses: peter-evans/create-or-update-comment@v1 uses: peter-evans/create-or-update-comment@v2
if: ${{ failure() }} if: ${{ failure() }}
with: with:
issue-number: 105153 issue-number: 105153

View file

@ -43,7 +43,7 @@ jobs:
github_token: ${{ secrets.GITHUB_TOKEN }} github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Comment on failure - name: Comment on failure
uses: peter-evans/create-or-update-comment@v1 uses: peter-evans/create-or-update-comment@v2
if: ${{ failure() }} if: ${{ failure() }}
with: with:
issue-number: 105153 issue-number: 105153

View file

@ -39,7 +39,7 @@ jobs:
title: ${{ steps.setup.outputs.title }} title: ${{ steps.setup.outputs.title }}
token: ${{ secrets.GITHUB_TOKEN }} token: ${{ secrets.GITHUB_TOKEN }}
- name: comment on failure - name: comment on failure
uses: peter-evans/create-or-update-comment@v1 uses: peter-evans/create-or-update-comment@v2
if: ${{ failure() }} if: ${{ failure() }}
with: with:
issue-number: 153416 issue-number: 153416

View file

@ -389,6 +389,11 @@ in mkLicense lset) ({
free = false; free = false;
}; };
generaluser = {
fullName = "GeneralUser GS License v2.0";
url = "http://www.schristiancollins.com/generaluser.php"; # license included in sources
};
gpl1Only = { gpl1Only = {
spdxId = "GPL-1.0-only"; spdxId = "GPL-1.0-only";
fullName = "GNU General Public License v1.0 only"; fullName = "GNU General Public License v1.0 only";
@ -607,6 +612,11 @@ in mkLicense lset) ({
fullName = "Enlightenment License (e16)"; fullName = "Enlightenment License (e16)";
}; };
mit0 = {
spdxId = "MIT-0";
fullName = "MIT No Attribution";
};
mpl10 = { mpl10 = {
spdxId = "MPL-1.0"; spdxId = "MPL-1.0";
fullName = "Mozilla Public License 1.0"; fullName = "Mozilla Public License 1.0";

View file

@ -9944,6 +9944,12 @@
fingerprint = "48AD DE10 F27B AFB4 7BB0 CCAF 2D25 95A0 0D08 ACE0"; fingerprint = "48AD DE10 F27B AFB4 7BB0 CCAF 2D25 95A0 0D08 ACE0";
}]; }];
}; };
ppenguin = {
name = "Jeroen Versteeg";
email = "hieronymusv@gmail.com";
github = "ppenguin";
githubId = 17690377;
};
ppom = { ppom = {
name = "Paco Pompeani"; name = "Paco Pompeani";
email = "paco@ecomail.io"; email = "paco@ecomail.io";

View file

@ -1613,6 +1613,12 @@
warning. warning.
</para> </para>
</listitem> </listitem>
<listitem>
<para>
<literal>services.autorandr</literal> now allows for adding
hooks and profiles declaratively.
</para>
</listitem>
<listitem> <listitem>
<para> <para>
The <literal>pomerium-cli</literal> command has been moved out The <literal>pomerium-cli</literal> command has been moved out

View file

@ -571,6 +571,8 @@ In addition to numerous new and upgraded packages, this release has the followin
Reason is that the old name has been deprecated upstream. Reason is that the old name has been deprecated upstream.
Using the old option name will still work, but produce a warning. Using the old option name will still work, but produce a warning.
- `services.autorandr` now allows for adding hooks and profiles declaratively.
- The `pomerium-cli` command has been moved out of the `pomerium` package into - The `pomerium-cli` command has been moved out of the `pomerium` package into
the `pomerium-cli` package, following upstream's repository split. If you are the `pomerium-cli` package, following upstream's repository split. If you are
using the `pomerium-cli` command, you should now install the `pomerium-cli` using the `pomerium-cli` command, you should now install the `pomerium-cli`

View file

@ -47,8 +47,8 @@ in
enable = mkOption { enable = mkOption {
type = types.bool; type = types.bool;
default = false; default = !(config.environment.etc ? "resolv.conf");
internal = true; defaultText = literalExpression ''!(config.environment.etc ? "resolv.conf")'';
description = '' description = ''
DNS configuration is managed by resolvconf. DNS configuration is managed by resolvconf.
''; '';
@ -110,8 +110,6 @@ in
config = mkMerge [ config = mkMerge [
{ {
networking.resolvconf.enable = !(config.environment.etc ? "resolv.conf");
environment.etc."resolvconf.conf".text = environment.etc."resolvconf.conf".text =
if !cfg.enable then if !cfg.enable then
# Force-stop any attempts to use resolvconf # Force-stop any attempts to use resolvconf

View file

@ -153,7 +153,7 @@ in {
type = types.separatedString " "; type = types.separatedString " ";
default = "-Xmx2048M -Xms2048M"; default = "-Xmx2048M -Xms2048M";
# Example options from https://minecraft.gamepedia.com/Tutorials/Server_startup_script # Example options from https://minecraft.gamepedia.com/Tutorials/Server_startup_script
example = "-Xmx2048M -Xms4092M -XX:+UseG1GC -XX:+CMSIncrementalPacing " example = "-Xms4092M -Xmx4092M -XX:+UseG1GC -XX:+CMSIncrementalPacing "
+ "-XX:+CMSClassUnloadingEnabled -XX:ParallelGCThreads=2 " + "-XX:+CMSClassUnloadingEnabled -XX:ParallelGCThreads=2 "
+ "-XX:MinHeapFreeRatio=5 -XX:MaxHeapFreeRatio=10"; + "-XX:MinHeapFreeRatio=5 -XX:MaxHeapFreeRatio=10";
description = "JVM options for the Minecraft server."; description = "JVM options for the Minecraft server.";

View file

@ -5,6 +5,243 @@ with lib;
let let
cfg = config.services.autorandr; cfg = config.services.autorandr;
hookType = types.lines;
matrixOf = n: m: elemType:
mkOptionType rec {
name = "matrixOf";
description =
"${toString n}×${toString m} matrix of ${elemType.description}s";
check = xss:
let listOfSize = l: xs: isList xs && length xs == l;
in listOfSize n xss
&& all (xs: listOfSize m xs && all elemType.check xs) xss;
merge = mergeOneOption;
getSubOptions = prefix: elemType.getSubOptions (prefix ++ [ "*" "*" ]);
getSubModules = elemType.getSubModules;
substSubModules = mod: matrixOf n m (elemType.substSubModules mod);
functor = (defaultFunctor name) // { wrapped = elemType; };
};
profileModule = types.submodule {
options = {
fingerprint = mkOption {
type = types.attrsOf types.str;
description = ''
Output name to EDID mapping.
Use <code>autorandr --fingerprint</code> to get current setup values.
'';
default = { };
};
config = mkOption {
type = types.attrsOf configModule;
description = "Per output profile configuration.";
default = { };
};
hooks = mkOption {
type = hooksModule;
description = "Profile hook scripts.";
default = { };
};
};
};
configModule = types.submodule {
options = {
enable = mkOption {
type = types.bool;
description = "Whether to enable the output.";
default = true;
};
crtc = mkOption {
type = types.nullOr types.ints.unsigned;
description = "Output video display controller.";
default = null;
example = 0;
};
primary = mkOption {
type = types.bool;
description = "Whether output should be marked as primary";
default = false;
};
position = mkOption {
type = types.str;
description = "Output position";
default = "";
example = "5760x0";
};
mode = mkOption {
type = types.str;
description = "Output resolution.";
default = "";
example = "3840x2160";
};
rate = mkOption {
type = types.str;
description = "Output framerate.";
default = "";
example = "60.00";
};
gamma = mkOption {
type = types.str;
description = "Output gamma configuration.";
default = "";
example = "1.0:0.909:0.833";
};
rotate = mkOption {
type = types.nullOr (types.enum [ "normal" "left" "right" "inverted" ]);
description = "Output rotate configuration.";
default = null;
example = "left";
};
transform = mkOption {
type = types.nullOr (matrixOf 3 3 types.float);
default = null;
example = literalExpression ''
[
[ 0.6 0.0 0.0 ]
[ 0.0 0.6 0.0 ]
[ 0.0 0.0 1.0 ]
]
'';
description = ''
Refer to
<citerefentry>
<refentrytitle>xrandr</refentrytitle>
<manvolnum>1</manvolnum>
</citerefentry>
for the documentation of the transform matrix.
'';
};
dpi = mkOption {
type = types.nullOr types.ints.positive;
description = "Output DPI configuration.";
default = null;
example = 96;
};
scale = mkOption {
type = types.nullOr (types.submodule {
options = {
method = mkOption {
type = types.enum [ "factor" "pixel" ];
description = "Output scaling method.";
default = "factor";
example = "pixel";
};
x = mkOption {
type = types.either types.float types.ints.positive;
description = "Horizontal scaling factor/pixels.";
};
y = mkOption {
type = types.either types.float types.ints.positive;
description = "Vertical scaling factor/pixels.";
};
};
});
description = ''
Output scale configuration.
</para><para>
Either configure by pixels or a scaling factor. When using pixel method the
<citerefentry>
<refentrytitle>xrandr</refentrytitle>
<manvolnum>1</manvolnum>
</citerefentry>
option
<parameter class="command">--scale-from</parameter>
will be used; when using factor method the option
<parameter class="command">--scale</parameter>
will be used.
</para><para>
This option is a shortcut version of the transform option and they are mutually
exclusive.
'';
default = null;
example = literalExpression ''
{
x = 1.25;
y = 1.25;
}
'';
};
};
};
hooksModule = types.submodule {
options = {
postswitch = mkOption {
type = types.attrsOf hookType;
description = "Postswitch hook executed after mode switch.";
default = { };
};
preswitch = mkOption {
type = types.attrsOf hookType;
description = "Preswitch hook executed before mode switch.";
default = { };
};
predetect = mkOption {
type = types.attrsOf hookType;
description = ''
Predetect hook executed before autorandr attempts to run xrandr.
'';
default = { };
};
};
};
hookToFile = folder: name: hook:
nameValuePair "xdg/autorandr/${folder}/${name}" {
source = "${pkgs.writeShellScriptBin "hook" hook}/bin/hook";
};
profileToFiles = name: profile:
with profile;
mkMerge ([
{
"xdg/autorandr/${name}/setup".text = concatStringsSep "\n"
(mapAttrsToList fingerprintToString fingerprint);
"xdg/autorandr/${name}/config".text =
concatStringsSep "\n" (mapAttrsToList configToString profile.config);
}
(mapAttrs' (hookToFile "${name}/postswitch.d") hooks.postswitch)
(mapAttrs' (hookToFile "${name}/preswitch.d") hooks.preswitch)
(mapAttrs' (hookToFile "${name}/predetect.d") hooks.predetect)
]);
fingerprintToString = name: edid: "${name} ${edid}";
configToString = name: config:
if config.enable then
concatStringsSep "\n" ([ "output ${name}" ]
++ optional (config.position != "") "pos ${config.position}"
++ optional (config.crtc != null) "crtc ${toString config.crtc}"
++ optional config.primary "primary"
++ optional (config.dpi != null) "dpi ${toString config.dpi}"
++ optional (config.gamma != "") "gamma ${config.gamma}"
++ optional (config.mode != "") "mode ${config.mode}"
++ optional (config.rate != "") "rate ${config.rate}"
++ optional (config.rotate != null) "rotate ${config.rotate}"
++ optional (config.transform != null) ("transform "
+ concatMapStringsSep "," toString (flatten config.transform))
++ optional (config.scale != null)
((if config.scale.method == "factor" then "scale" else "scale-from")
+ " ${toString config.scale.x}x${toString config.scale.y}"))
else ''
output ${name}
off
'';
in { in {
@ -22,6 +259,67 @@ in {
for further reference. for further reference.
''; '';
}; };
hooks = mkOption {
type = hooksModule;
description = "Global hook scripts";
default = { };
example = ''
{
postswitch = {
"notify-i3" = "''${pkgs.i3}/bin/i3-msg restart";
"change-background" = readFile ./change-background.sh;
"change-dpi" = '''
case "$AUTORANDR_CURRENT_PROFILE" in
default)
DPI=120
;;
home)
DPI=192
;;
work)
DPI=144
;;
*)
echo "Unknown profle: $AUTORANDR_CURRENT_PROFILE"
exit 1
esac
echo "Xft.dpi: $DPI" | ''${pkgs.xorg.xrdb}/bin/xrdb -merge
'''
};
}
'';
};
profiles = mkOption {
type = types.attrsOf profileModule;
description = "Autorandr profiles specification.";
default = { };
example = literalExpression ''
{
"work" = {
fingerprint = {
eDP1 = "<EDID>";
DP1 = "<EDID>";
};
config = {
eDP1.enable = false;
DP1 = {
enable = true;
crtc = 0;
primary = true;
position = "0x0";
mode = "3840x2160";
gamma = "1.0:0.909:0.833";
rate = "60.00";
rotate = "left";
};
};
hooks.postswitch = readFile ./work-postswitch.sh;
};
}
'';
};
}; };
}; };
@ -30,7 +328,15 @@ in {
services.udev.packages = [ pkgs.autorandr ]; services.udev.packages = [ pkgs.autorandr ];
environment.systemPackages = [ pkgs.autorandr ]; environment = {
systemPackages = [ pkgs.autorandr ];
etc = mkMerge ([
(mapAttrs' (hookToFile "postswitch.d") cfg.hooks.postswitch)
(mapAttrs' (hookToFile "preswitch.d") cfg.hooks.preswitch)
(mapAttrs' (hookToFile "predetect.d") cfg.hooks.predetect)
(mkMerge (mapAttrsToList profileToFiles cfg.profiles))
]);
};
systemd.services.autorandr = { systemd.services.autorandr = {
wantedBy = [ "sleep.target" ]; wantedBy = [ "sleep.target" ];
@ -49,5 +355,5 @@ in {
}; };
meta.maintainers = with maintainers; [ ]; meta.maintainers = with maintainers; [ alexnortung ];
} }

View file

@ -472,6 +472,7 @@ in
seafile = handleTest ./seafile.nix {}; seafile = handleTest ./seafile.nix {};
searx = handleTest ./searx.nix {}; searx = handleTest ./searx.nix {};
service-runner = handleTest ./service-runner.nix {}; service-runner = handleTest ./service-runner.nix {};
sfxr-qt = handleTest ./sfxr-qt.nix {};
shadow = handleTest ./shadow.nix {}; shadow = handleTest ./shadow.nix {};
shadowsocks = handleTest ./shadowsocks {}; shadowsocks = handleTest ./shadowsocks {};
shattered-pixel-dungeon = handleTest ./shattered-pixel-dungeon.nix {}; shattered-pixel-dungeon = handleTest ./shattered-pixel-dungeon.nix {};

View file

@ -24,6 +24,7 @@ import ./make-test-python.nix ({ pkgs, lib, ...} : {
services.xserver.desktopManager.gnome.enable = true; services.xserver.desktopManager.gnome.enable = true;
services.xserver.desktopManager.gnome.debug = true; services.xserver.desktopManager.gnome.debug = true;
services.xserver.displayManager.defaultSession = "gnome-xorg"; services.xserver.displayManager.defaultSession = "gnome-xorg";
programs.gnome-terminal.enable = true;
systemd.user.services = { systemd.user.services = {
"org.gnome.Shell@x11" = { "org.gnome.Shell@x11" = {

View file

@ -22,6 +22,7 @@ import ./make-test-python.nix ({ pkgs, lib, ...} : {
services.xserver.desktopManager.gnome.enable = true; services.xserver.desktopManager.gnome.enable = true;
services.xserver.desktopManager.gnome.debug = true; services.xserver.desktopManager.gnome.debug = true;
programs.gnome-terminal.enable = true;
environment.systemPackages = [ environment.systemPackages = [
(pkgs.makeAutostartItem { (pkgs.makeAutostartItem {

32
nixos/tests/sfxr-qt.nix Normal file
View file

@ -0,0 +1,32 @@
import ./make-test-python.nix ({ pkgs, ... }: {
name = "sfxr-qt";
meta = with pkgs.lib.maintainers; {
maintainers = [ fgaz ];
};
machine = { config, pkgs, ... }: {
imports = [
./common/x11.nix
];
services.xserver.enable = true;
sound.enable = true;
environment.systemPackages = [ pkgs.sfxr-qt ];
};
enableOCR = true;
testScript =
''
machine.wait_for_x()
# Add a dummy sound card, or the program won't start
machine.execute("modprobe snd-dummy")
machine.execute("sfxr-qt >&2 &")
machine.wait_for_window(r"sfxr")
machine.sleep(10)
machine.wait_for_text("requency")
machine.screenshot("screen")
'';
})

View file

@ -1,24 +1,46 @@
{ lib, stdenv, alsa-lib, boost, dbus-glib, fetchsvn, ganv, glibmm { lib
, gtkmm2, libjack2, pkg-config, python2, wafHook , stdenv
, fetchFromGitLab
, alsa-lib
, boost
, dbus-glib
, ganv
, glibmm
, gtkmm2
, libjack2
, pkg-config
, python3
, wafHook
}: }:
stdenv.mkDerivation { stdenv.mkDerivation rec {
pname = "patchage"; pname = "patchage";
version = "1.0.1"; version = "1.0.4";
src = fetchsvn {
url = "http://svn.drobilla.net/lad/trunk/patchage/"; src = fetchFromGitLab {
rev = "5821"; owner = "drobilla";
sha256 = "1ar64l0sg468qzxj7i6ppgfqjpm92awcp5lzskamrf3ln17lrgj7"; repo = pname;
rev = "v${version}";
hash = "sha256-feQXACsn2i2pJXs0EA9tIbtpl9Lxx5K4G7eG5VWuDV0=";
fetchSubmodules = true;
}; };
buildInputs = [ buildInputs = [
alsa-lib boost dbus-glib ganv glibmm gtkmm2 libjack2 alsa-lib
pkg-config python2 wafHook boost
dbus-glib
ganv
glibmm
gtkmm2
libjack2
pkg-config
python3
wafHook
]; ];
meta = { meta = {
description = "Modular patch bay for Jack and ALSA systems"; description = "Modular patch bay for Jack and ALSA systems";
homepage = "http://non.tuxfamily.org"; homepage = "https://drobilla.net/software/patchage.html";
license = lib.licenses.lgpl3; license = lib.licenses.lgpl3;
platforms = lib.platforms.linux; platforms = lib.platforms.linux;
maintainers = [ lib.maintainers.nico202 ]; maintainers = [ lib.maintainers.nico202 ];

View file

@ -1,6 +1,7 @@
{ lib { lib
, mkDerivation , mkDerivation
, fetchFromGitHub , fetchFromGitHub
, fetchpatch
, cmake , cmake
, extra-cmake-modules , extra-cmake-modules
, qtbase , qtbase
@ -8,17 +9,19 @@
, SDL , SDL
, python3 , python3
, catch2 , catch2
, callPackage
, nixosTests
}: }:
mkDerivation rec { mkDerivation rec {
pname = "sfxr-qt"; pname = "sfxr-qt";
version = "1.4.0"; version = "1.5.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "agateau"; owner = "agateau";
repo = "sfxr-qt"; repo = "sfxr-qt";
rev = version; rev = version;
sha256 = "sha256-Mn+wcwu70BwsTLFlc12sOOe6U1AJ8hR7bCIPlPnCooE="; sha256 = "sha256-Ce5NJe1f+C4pPmtenHYvtkxste+nPuxJoB+N7K2nyRo=";
fetchSubmodules = true; fetchSubmodules = true;
}; };
@ -26,6 +29,13 @@ mkDerivation rec {
cp ${catch2}/include/catch2/catch.hpp 3rdparty/catch2/single_include/catch2/catch.hpp cp ${catch2}/include/catch2/catch.hpp 3rdparty/catch2/single_include/catch2/catch.hpp
''; '';
# Remove on next release
patches = [(fetchpatch {
name = "sfxr-qr-missing-qpainterpath-include";
url = "https://github.com/agateau/sfxr-qt/commit/ef051f473654052112b647df987eb263e38faf47.patch";
sha256 = "sha256-bqMnxHUzdS5oG/2hfr5MvkpwrtZW+GTN5fS2WpV2W2c=";
})];
nativeBuildInputs = [ nativeBuildInputs = [
cmake cmake
extra-cmake-modules extra-cmake-modules
@ -40,6 +50,11 @@ mkDerivation rec {
doCheck = true; doCheck = true;
passthru.tests = {
export-square-wave = callPackage ./test-export-square-wave {};
sfxr-qt-starts = nixosTests.sfxr-qt;
};
meta = with lib; { meta = with lib; {
homepage = "https://github.com/agateau/sfxr-qt"; homepage = "https://github.com/agateau/sfxr-qt";
description = "A sound effect generator, QtQuick port of sfxr"; description = "A sound effect generator, QtQuick port of sfxr";

View file

@ -0,0 +1,6 @@
{ runCommand, sfxr-qt }:
runCommand "sfxr-qt-test-export-square-wave" ''
mkdir $out
${sfxr-qt}/bin/sfxr-qt --export --output $out/output.wav ${./input.sfxj}
''

View file

@ -0,0 +1,29 @@
{
"properties": {
"attackTime": 0,
"baseFrequency": 1,
"changeAmount": 0,
"changeSpeed": 0,
"decayTime": 1,
"deltaSlide": 0,
"dutySweep": 0,
"hpFilterCutoff": 0,
"hpFilterCutoffSweep": 0,
"lpFilterCutoff": 1,
"lpFilterCutoffSweep": 0,
"lpFilterResonance": 0,
"minFrequency": 0,
"phaserOffset": 0,
"phaserSweep": 0,
"repeatSpeed": 0,
"slide": 0,
"squareDuty": 0,
"sustainPunch": 0,
"sustainTime": 1,
"vibratoDepth": 0,
"vibratoSpeed": 0,
"volume": 1,
"waveForm": "Square"
},
"version": 1
}

View file

@ -1,6 +1,7 @@
{ lib { lib
, stdenv , stdenv
, fetchFromGitLab , fetchFromGitLab
, fetchpatch
, rustPlatform , rustPlatform
, substituteAll , substituteAll
, desktop-file-utils , desktop-file-utils
@ -40,6 +41,13 @@ stdenv.mkDerivation rec {
src = ./borg-path.patch; src = ./borg-path.patch;
borg = "${borgbackup}/bin/borg"; borg = "${borgbackup}/bin/borg";
}) })
# Fix build with meson 0.61, can be removed on next release.
# https://gitlab.gnome.org/World/pika-backup/-/issues/156
# https://github.com/mesonbuild/meson/issues/9441
(fetchpatch {
url = "https://gitlab.gnome.org/World/pika-backup/-/commit/54be149c88fd69fb9e74b7362fe7182863237869.patch";
sha256 = "sha256-Tffxo5hlf/gSkp1GfyL4eHthX49tuTq6B+S53N8oA2M=";
})
]; ];
postPatch = '' postPatch = ''
@ -73,5 +81,6 @@ stdenv.mkDerivation rec {
changelog = "https://gitlab.gnome.org/World/pika-backup/-/blob/v${version}/CHANGELOG.md"; changelog = "https://gitlab.gnome.org/World/pika-backup/-/blob/v${version}/CHANGELOG.md";
license = licenses.gpl3Plus; license = licenses.gpl3Plus;
maintainers = with maintainers; [ dotlambda ]; maintainers = with maintainers; [ dotlambda ];
platforms = platforms.linux;
}; };
} }

View file

@ -13,14 +13,14 @@ let
in stdenv.mkDerivation rec { in stdenv.mkDerivation rec {
pname = "apostrophe"; pname = "apostrophe";
version = "2.5"; version = "2.6.1";
src = fetchFromGitLab { src = fetchFromGitLab {
owner = "World"; owner = "World";
repo = pname; repo = pname;
domain = "gitlab.gnome.org"; domain = "gitlab.gnome.org";
rev = "v${version}"; rev = "v${version}";
sha256 = "06yfiflmj3ip7ppcz41nb3xpgb5ggw5h74w0v87yaqqkq7qh31lp"; sha256 = "awaXXSUiEIzOAj9Zw8K961HuIKsLFi3QKETUTTIaTjk=";
}; };
nativeBuildInputs = [ meson ninja pkg-config desktop-file-utils nativeBuildInputs = [ meson ninja pkg-config desktop-file-utils

View file

@ -429,10 +429,10 @@
elpaBuild { elpaBuild {
pname = "buffer-env"; pname = "buffer-env";
ename = "buffer-env"; ename = "buffer-env";
version = "0.2"; version = "0.3";
src = fetchurl { src = fetchurl {
url = "https://elpa.gnu.org/packages/buffer-env-0.2.tar"; url = "https://elpa.gnu.org/packages/buffer-env-0.3.tar";
sha256 = "1420qln8ww43d6gs70cnxab6lf10dhmk5yk29pwsvjk86afhwhwf"; sha256 = "0h92pia258fndihnwmnak10ix00dmfanadnsnzbdah3q64416qhz";
}; };
packageRequires = [ emacs ]; packageRequires = [ emacs ];
meta = { meta = {
@ -1206,10 +1206,10 @@
elpaBuild { elpaBuild {
pname = "ebdb"; pname = "ebdb";
ename = "ebdb"; ename = "ebdb";
version = "0.8.12"; version = "0.8.14";
src = fetchurl { src = fetchurl {
url = "https://elpa.gnu.org/packages/ebdb-0.8.12.tar"; url = "https://elpa.gnu.org/packages/ebdb-0.8.14.tar";
sha256 = "1k53crdmaw6lzvprsmpdfvg96ck54bzs4z1d4q9x890anglxq5m6"; sha256 = "0h7yva7p4b4lapi7pwcibf75nqmazjf3r67ibnkc8l9salfhml25";
}; };
packageRequires = [ emacs seq ]; packageRequires = [ emacs seq ];
meta = { meta = {
@ -1266,10 +1266,10 @@
elpaBuild { elpaBuild {
pname = "eev"; pname = "eev";
ename = "eev"; ename = "eev";
version = "20220316"; version = "20220324";
src = fetchurl { src = fetchurl {
url = "https://elpa.gnu.org/packages/eev-20220316.tar"; url = "https://elpa.gnu.org/packages/eev-20220324.tar";
sha256 = "1ax487ca2rsq6ck2g0694fq3z7a89dy4pcns15wd7ygkf3a4sykf"; sha256 = "0x1fhjj7g96xmp8pnj3k23xi61nfzaj04bzx050qjc1dvdg8gpfa";
}; };
packageRequires = [ emacs ]; packageRequires = [ emacs ];
meta = { meta = {
@ -1324,10 +1324,10 @@
elpaBuild { elpaBuild {
pname = "eldoc"; pname = "eldoc";
ename = "eldoc"; ename = "eldoc";
version = "1.11.0"; version = "1.11.1";
src = fetchurl { src = fetchurl {
url = "https://elpa.gnu.org/packages/eldoc-1.11.0.el"; url = "https://elpa.gnu.org/packages/eldoc-1.11.1.tar";
sha256 = "1py9l1vl7s90y5kfpglhy11jswam2gcrqap09h6wb5ldnyb8cgq2"; sha256 = "065clc07nrgp56cgynqhq3fmnwd64ccg2jxzikzb0f2zkn10vc90";
}; };
packageRequires = [ emacs ]; packageRequires = [ emacs ];
meta = { meta = {
@ -2073,10 +2073,10 @@
elpaBuild { elpaBuild {
pname = "isearch-mb"; pname = "isearch-mb";
ename = "isearch-mb"; ename = "isearch-mb";
version = "0.4"; version = "0.5";
src = fetchurl { src = fetchurl {
url = "https://elpa.gnu.org/packages/isearch-mb-0.4.tar"; url = "https://elpa.gnu.org/packages/isearch-mb-0.5.tar";
sha256 = "11q9sdi6l795hspi7hr621bbra66pxsgrkry95k7wxjkmibcbsxr"; sha256 = "0fah8dmh9jv05i93ccn9dvl7qmfy32vwxqdzkf1v8gr1plsyjyx7";
}; };
packageRequires = [ emacs ]; packageRequires = [ emacs ];
meta = { meta = {
@ -3295,10 +3295,10 @@
elpaBuild { elpaBuild {
pname = "phps-mode"; pname = "phps-mode";
ename = "phps-mode"; ename = "phps-mode";
version = "0.4.19"; version = "0.4.20";
src = fetchurl { src = fetchurl {
url = "https://elpa.gnu.org/packages/phps-mode-0.4.19.tar"; url = "https://elpa.gnu.org/packages/phps-mode-0.4.20.tar";
sha256 = "1l9ivg6x084r235jpd90diaa4v29r1kyfsblzsb8blskb9ka5b56"; sha256 = "0xb4i3s6yira1kfqwrs72ajvpqc6pw7gqlxmfmdhyyvib6p93l6m";
}; };
packageRequires = [ emacs ]; packageRequires = [ emacs ];
meta = { meta = {
@ -3396,6 +3396,21 @@
license = lib.licenses.free; license = lib.licenses.free;
}; };
}) {}; }) {};
pulsar = callPackage ({ elpaBuild, emacs, fetchurl, lib }:
elpaBuild {
pname = "pulsar";
ename = "pulsar";
version = "0.2.0";
src = fetchurl {
url = "https://elpa.gnu.org/packages/pulsar-0.2.0.tar";
sha256 = "0vil6gv7w6d77hksc2pbrwjdd8dp3ka4kf5kihx04r95032pky62";
};
packageRequires = [ emacs ];
meta = {
homepage = "https://elpa.gnu.org/packages/pulsar.html";
license = lib.licenses.free;
};
}) {};
pyim = callPackage ({ async, elpaBuild, emacs, fetchurl, lib, xr }: pyim = callPackage ({ async, elpaBuild, emacs, fetchurl, lib, xr }:
elpaBuild { elpaBuild {
pname = "pyim"; pname = "pyim";
@ -3725,10 +3740,10 @@
elpaBuild { elpaBuild {
pname = "repology"; pname = "repology";
ename = "repology"; ename = "repology";
version = "1.2.2"; version = "1.2.3";
src = fetchurl { src = fetchurl {
url = "https://elpa.gnu.org/packages/repology-1.2.2.tar"; url = "https://elpa.gnu.org/packages/repology-1.2.3.tar";
sha256 = "0ggb0zgz24hs5andhyrlpqm0gda0gf1wynzkarj4z7gpk5p9wrpr"; sha256 = "1ngx23b7dilyps20nznrrn867kbxyn6nryf4p1sy5m576hkw18kn";
}; };
packageRequires = [ emacs ]; packageRequires = [ emacs ];
meta = { meta = {
@ -4700,10 +4715,10 @@
elpaBuild { elpaBuild {
pname = "vertico-posframe"; pname = "vertico-posframe";
ename = "vertico-posframe"; ename = "vertico-posframe";
version = "0.5.2"; version = "0.5.3";
src = fetchurl { src = fetchurl {
url = "https://elpa.gnu.org/packages/vertico-posframe-0.5.2.tar"; url = "https://elpa.gnu.org/packages/vertico-posframe-0.5.3.tar";
sha256 = "0gzvm0la706kg3aqgrd6crz6353sp47dnpxdj9l2avb31avyqmv9"; sha256 = "12jcb4im1ys2s0wbv9nfmgpcrz037zagd677qjm8hz8fn29xdh6n";
}; };
packageRequires = [ emacs posframe vertico ]; packageRequires = [ emacs posframe vertico ];
meta = { meta = {

View file

@ -2,10 +2,11 @@
# Updating # Updating
To update the list of packages from MELPA, To update the list of packages from ELPA,
1. Run `./update-elpa`. 1. Run `./update-elpa`.
2. Check for evaluation errors: 2. Check for evaluation errors:
# "../../../../../" points to the default.nix from root of Nixpkgs tree
env NIXPKGS_ALLOW_BROKEN=1 nix-instantiate ../../../../../ -A emacs.pkgs.elpaPackages env NIXPKGS_ALLOW_BROKEN=1 nix-instantiate ../../../../../ -A emacs.pkgs.elpaPackages
3. Run `git commit -m "elpa-packages $(date -Idate)" -- elpa-generated.nix` 3. Run `git commit -m "elpa-packages $(date -Idate)" -- elpa-generated.nix`

View file

@ -6,6 +6,7 @@ To update the list of packages from MELPA,
1. Run `./update-melpa` 1. Run `./update-melpa`
2. Check for evaluation errors: 2. Check for evaluation errors:
# "../../../../../" points to the default.nix from root of Nixpkgs tree
env NIXPKGS_ALLOW_BROKEN=1 nix-instantiate --show-trace ../../../../../ -A emacs.pkgs.melpaStablePackages env NIXPKGS_ALLOW_BROKEN=1 nix-instantiate --show-trace ../../../../../ -A emacs.pkgs.melpaStablePackages
env NIXPKGS_ALLOW_BROKEN=1 nix-instantiate --show-trace ../../../../../ -A emacs.pkgs.melpaPackages env NIXPKGS_ALLOW_BROKEN=1 nix-instantiate --show-trace ../../../../../ -A emacs.pkgs.melpaPackages
3. Run `git commit -m "melpa-packages $(date -Idate)" recipes-archive-melpa.json` 3. Run `git commit -m "melpa-packages $(date -Idate)" recipes-archive-melpa.json`

View file

@ -712,10 +712,10 @@
elpaBuild { elpaBuild {
pname = "geiser"; pname = "geiser";
ename = "geiser"; ename = "geiser";
version = "0.23"; version = "0.23.2";
src = fetchurl { src = fetchurl {
url = "https://elpa.nongnu.org/nongnu/geiser-0.23.tar"; url = "https://elpa.nongnu.org/nongnu/geiser-0.23.2.tar";
sha256 = "1g82jaldq4rxiyhnzyqf82scys1545djc3y2nn9ih292g8rwqqms"; sha256 = "1rdz13rjfp8j2ik3vbw1jvacjri3abghlq6aqfvkd7vwm21h30ih";
}; };
packageRequires = [ emacs project transient ]; packageRequires = [ emacs project transient ];
meta = { meta = {
@ -802,10 +802,10 @@
elpaBuild { elpaBuild {
pname = "geiser-guile"; pname = "geiser-guile";
ename = "geiser-guile"; ename = "geiser-guile";
version = "0.23"; version = "0.23.2";
src = fetchurl { src = fetchurl {
url = "https://elpa.nongnu.org/nongnu/geiser-guile-0.23.tar"; url = "https://elpa.nongnu.org/nongnu/geiser-guile-0.23.2.tar";
sha256 = "0fxn15kpljkdj1vvrv51232km49z2sbr6q9ghpvqwkgi0z9khxz6"; sha256 = "1z2khagg425y5cfja694zxrj3lyw3awsmqd86b2hpqhrylrb8jaa";
}; };
packageRequires = [ emacs geiser ]; packageRequires = [ emacs geiser ];
meta = { meta = {
@ -1063,10 +1063,10 @@
elpaBuild { elpaBuild {
pname = "helm"; pname = "helm";
ename = "helm"; ename = "helm";
version = "3.8.4"; version = "3.8.5";
src = fetchurl { src = fetchurl {
url = "https://elpa.nongnu.org/nongnu/helm-3.8.4.tar"; url = "https://elpa.nongnu.org/nongnu/helm-3.8.5.tar";
sha256 = "0yc7ijap3g68w7npgwymzlp5bcawk3lhnp0004m03zfdbxhmkq0z"; sha256 = "1h71qcik375zhkk4rgcxj6ffnzpns2lvzwq82yfhmmhzrrxhds0z";
}; };
packageRequires = [ helm-core popup ]; packageRequires = [ helm-core popup ];
meta = { meta = {
@ -1078,10 +1078,10 @@
elpaBuild { elpaBuild {
pname = "helm-core"; pname = "helm-core";
ename = "helm-core"; ename = "helm-core";
version = "3.8.4"; version = "3.8.5";
src = fetchurl { src = fetchurl {
url = "https://elpa.nongnu.org/nongnu/helm-core-3.8.4.tar"; url = "https://elpa.nongnu.org/nongnu/helm-core-3.8.5.tar";
sha256 = "0a1liapy345nlqjgxbzad0mkdbs4g6619cqplwiyh89x0lm0jprx"; sha256 = "0117y2gazm8h5fxj23166a53w4r68r1mscgardk0y6xd6lz73yz9";
}; };
packageRequires = [ async emacs ]; packageRequires = [ async emacs ];
meta = { meta = {

View file

@ -6,7 +6,8 @@ To update the list of packages from nongnu (ELPA),
1. Run `./update-nongnu`. 1. Run `./update-nongnu`.
2. Check for evaluation errors: 2. Check for evaluation errors:
env NIXPKGS_ALLOW_BROKEN=1 nix-instantiate ../../../../.. -A emacs.pkgs.nongnuPackages # "../../../../../" points to the default.nix from root of Nixpkgs tree
env NIXPKGS_ALLOW_BROKEN=1 nix-instantiate ../../../../../ -A emacs.pkgs.nongnuPackages
3. Run `git commit -m "nongnu-packages $(date -Idate)" -- nongnu-generated.nix` 3. Run `git commit -m "nongnu-packages $(date -Idate)" -- nongnu-generated.nix`
*/ */

View file

@ -2,21 +2,29 @@
trivialBuild { trivialBuild {
pname = "plz"; pname = "plz";
version = "unstable-2021-08-22"; version = "0.pre+date=2021-08-22";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "alphapapa"; owner = "alphapapa";
repo = "plz.el"; repo = "plz.el";
rev = "7e456638a651bab3a814e3ea81742dd917509cbb"; rev = "7e456638a651bab3a814e3ea81742dd917509cbb";
sha256 = "sha256-8kn9ax1AVF6f9iCTqvVeJZihs03pYAhLjUDooG/ubxY="; hash = "sha256-8kn9ax1AVF6f9iCTqvVeJZihs03pYAhLjUDooG/ubxY=";
}; };
postPatch = '' postPatch = ''
substituteInPlace ./plz.el --replace 'plz-curl-program "curl"' 'plz-curl-program "${curl}/bin/curl"' substituteInPlace ./plz.el \
--replace 'plz-curl-program "curl"' 'plz-curl-program "${curl}/bin/curl"'
''; '';
meta = { meta = {
description = "plz is an HTTP library for Emacs"; description = "An HTTP library for Emacs";
longDescription = ''
plz is an HTTP library for Emacs. It uses curl as a backend, which avoids
some of the issues with using Emacss built-in url library. It supports
both synchronous and asynchronous requests. Its API is intended to be
simple, natural, and expressive. Its code is intended to be simple and
well-organized. Every feature is tested against httpbin.org.
'';
license = lib.licenses.gpl3Only; license = lib.licenses.gpl3Only;
platforms = lib.platforms.all; platforms = lib.platforms.all;
}; };

View file

@ -8,22 +8,22 @@
, autoPatchelfHook , autoPatchelfHook
, gsettings-desktop-schemas , gsettings-desktop-schemas
, gtk3 , gtk3
, wrapGAppsHook , makeWrapper
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "pinegrow"; pname = "pinegrow";
version = "6.4"; version = "6.5";
src = fetchurl { src = fetchurl {
url = "https://download.pinegrow.com/PinegrowLinux64.${version}.zip"; url = "https://download.pinegrow.com/PinegrowLinux64.${version}.zip";
sha256 = "0i8sg4criimrqmz0g68b8xcwcrb362ssid5jazswpa6hhwj6s5n4"; sha256 = "1l7cf5jgidpykaf68mzf92kywl1vxwl3fg43ibgr2rg4cnl1g82b";
}; };
nativeBuildInputs = [ nativeBuildInputs = [
unzip unzip
autoPatchelfHook autoPatchelfHook
wrapGAppsHook makeWrapper
]; ];
buildInputs = [ buildInputs = [
@ -34,6 +34,11 @@ stdenv.mkDerivation rec {
gtk3 gtk3
]; ];
wrapProgramFlags = [
"--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ gcc-unwrapped.lib gtk3 udev ]}"
"--prefix PATH : ${lib.makeBinPath [ stdenv.cc ]}"
];
sourceRoot = "."; sourceRoot = ".";
dontUnpack = true; dontUnpack = true;
@ -57,7 +62,7 @@ stdenv.mkDerivation rec {
preFixup = '' preFixup = ''
export XDG_DATA_DIRS=${gsettings-desktop-schemas}/share/gsettings-schemas/${gsettings-desktop-schemas.name}:${gtk3}/share/gsettings-schemas/${gtk3.name}:$XDG_DATA_DIRS 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 ]} wrapProgram "$out/opt/pinegrow/PinegrowLibrary" ''${wrapProgramFlags[@]}
''; '';
meta = with lib; { meta = with lib; {

View file

@ -2673,6 +2673,18 @@ final: prev:
meta.homepage = "https://github.com/phaazon/hop.nvim/"; meta.homepage = "https://github.com/phaazon/hop.nvim/";
}; };
hotpot-nvim = buildVimPluginFrom2Nix {
pname = "hotpot.nvim";
version = "2022-03-23";
src = fetchFromGitHub {
owner = "rktjmp";
repo = "hotpot.nvim";
rev = "72704e1914648774a4fb42f57ca411d689e08ae6";
sha256 = "1dh6i2asqrhxc1irnhr46drn8ksj7xq81m6ankvy1gj8bkc74dmp";
};
meta.homepage = "https://github.com/rktjmp/hotpot.nvim/";
};
i3config-vim = buildVimPluginFrom2Nix { i3config-vim = buildVimPluginFrom2Nix {
pname = "i3config.vim"; pname = "i3config.vim";
version = "2021-06-23"; version = "2021-06-23";

View file

@ -693,6 +693,7 @@ rhysd/vim-operator-surround
RishabhRD/nvim-lsputils RishabhRD/nvim-lsputils
RishabhRD/popfix RishabhRD/popfix
rktjmp/fwatch.nvim rktjmp/fwatch.nvim
rktjmp/hotpot.nvim
rktjmp/lush.nvim rktjmp/lush.nvim
rmagatti/auto-session rmagatti/auto-session
rmagatti/goto-preview rmagatti/goto-preview

View file

@ -5,21 +5,22 @@ let
${stdenv.glibc}/lib/ld-linux${optionalString stdenv.is64bit "-x86-64"}.so.2 \ ${stdenv.glibc}/lib/ld-linux${optionalString stdenv.is64bit "-x86-64"}.so.2 \
${file} ${file}
''; '';
system = stdenv.hostPlatform.system;
in in
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "brscan5"; pname = "brscan5";
version = "1.2.7-0"; version = "1.2.9-0";
src = { src = {
"i686-linux" = fetchurl { "i686-linux" = fetchurl {
url = "https://download.brother.com/welcome/dlf104034/${pname}-${version}.i386.deb"; url = "https://download.brother.com/welcome/dlf104034/${pname}-${version}.i386.deb";
sha256 = "647d06f629c22408d25be7c0bf49a4b1c7280bf78a27aa2cde6c3e3fa8b6807a"; sha256 = "ac23c9a435818955e7882ab06380adf346203ff4e45f384b40e84b8b29642f07";
}; };
"x86_64-linux" = fetchurl { "x86_64-linux" = fetchurl {
url = "https://download.brother.com/welcome/dlf104033/${pname}-${version}.amd64.deb"; url = "https://download.brother.com/welcome/dlf104033/${pname}-${version}.amd64.deb";
sha256 = "867bd88ab0d90f8e9391dc8127385095127e533cb6bd2d5d13449df602b165ae"; sha256 = "4ec23ff4b457323ae778e871a0f1abcc1848ea105af17850b57f7dcaddcfd96d";
}; };
}."${stdenv.hostPlatform.system}"; }."${system}" or (throw "Unsupported system: ${system}");
unpackPhase = '' unpackPhase = ''
ar x $src ar x $src
@ -30,21 +31,28 @@ stdenv.mkDerivation rec {
buildInputs = [ libusb1 avahi-compat stdenv.cc.cc glib ]; buildInputs = [ libusb1 avahi-compat stdenv.cc.cc glib ];
dontBuild = true; dontBuild = true;
postPatch = '' postPatch =
${myPatchElf "opt/brother/scanner/brscan5/brsaneconfig5"} let
${myPatchElf "opt/brother/scanner/brscan5/brscan_cnetconfig"} patchOffsetBytes =
${myPatchElf "opt/brother/scanner/brscan5/brscan_gnetconfig"} if system == "x86_64-linux" then 84632
else if system == "i686-linux" then 77396
else throw "Unsupported system: ${system}";
in
''
${myPatchElf "opt/brother/scanner/brscan5/brsaneconfig5"}
${myPatchElf "opt/brother/scanner/brscan5/brscan_cnetconfig"}
${myPatchElf "opt/brother/scanner/brscan5/brscan_gnetconfig"}
for a in opt/brother/scanner/brscan5/*.so.* opt/brother/scanner/brscan5/brscan_[cg]netconfig; do for file in opt/brother/scanner/brscan5/*.so.* opt/brother/scanner/brscan5/brscan_[cg]netconfig; do
if ! test -L $a; then if ! test -L $file; then
patchelf --set-rpath ${lib.makeLibraryPath buildInputs} $a patchelf --set-rpath ${lib.makeLibraryPath buildInputs} $file
fi fi
done done
# driver is hardcoded to look in /opt/brother/scanner/brscan5/models for model metadata. # driver is hardcoded to look in /opt/brother/scanner/brscan5/models for model metadata.
# patch it to look in /etc/opt/brother/scanner/models instead, so nixos environment.etc can make it available # patch it to look in /etc/opt/brother/scanner/models instead, so nixos environment.etc can make it available
printf '/etc/opt/brother/scanner/models\x00' | dd of=opt/brother/scanner/brscan5/libsane-brother5.so.1.0.7 bs=1 seek=84632 conv=notrunc printf '/etc/opt/brother/scanner/models\x00' | dd of=opt/brother/scanner/brscan5/libsane-brother5.so.1.0.7 bs=1 seek=${toString patchOffsetBytes} conv=notrunc
''; '';
installPhase = with lib; '' installPhase = with lib; ''
runHook preInstall runHook preInstall

View file

@ -13,12 +13,12 @@
let font-droid = nerdfonts.override { fonts = [ "DroidSansMono" ]; }; let font-droid = nerdfonts.override { fonts = [ "DroidSansMono" ]; };
in stdenv.mkDerivation rec { in stdenv.mkDerivation rec {
pname = "koreader"; pname = "koreader";
version = "2022.03"; version = "2022.03.1";
src = fetchurl { src = fetchurl {
url = url =
"https://github.com/koreader/koreader/releases/download/v${version}/koreader-${version}-amd64.deb"; "https://github.com/koreader/koreader/releases/download/v${version}/koreader-${version}-amd64.deb";
sha256 = "sha256-xR92sCeP7wcYukUGxoG9LQyk4k/qkmnxqmjY4Umt05I="; sha256 = "sha256-ZoqITWPR60G4xY9InrtIY9rCWUk0PidGFZokHLWl5ps=";
}; };
sourceRoot = "."; sourceRoot = ".";

View file

@ -2,11 +2,11 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "logseq"; pname = "logseq";
version = "0.6.3"; version = "0.6.5";
src = fetchurl { src = fetchurl {
url = "https://github.com/logseq/logseq/releases/download/${version}/logseq-linux-x64-${version}.AppImage"; url = "https://github.com/logseq/logseq/releases/download/${version}/logseq-linux-x64-${version}.AppImage";
sha256 = "o3tBHk7bauNczz6lPS3lV0mpYEaBa0lh/mAJKJM2eWU="; sha256 = "WKROcCv0IzRnQd74j5Iget5jlfyDbeJ/PXgZmSNrSsQ=";
name = "${pname}-${version}.AppImage"; name = "${pname}-${version}.AppImage";
}; };

View file

@ -0,0 +1,91 @@
{ lib
, mkDerivation
, stdenv
, fetchFromGitHub
, cmake
, ninja
, pkg-config
, which
, python3
, rsync
, makeWrapper
, qtbase
, qtsvg
, libGLU
, libGL
, zlib
, icu
, freetype
}:
mkDerivation rec {
pname = "organicmaps";
version = "2022.03.23-4-android";
src = fetchFromGitHub {
owner = "organicmaps";
repo = "organicmaps";
rev = version;
sha256 = "sha256-4VBsHq8z/odD7Nrk9e0sYMEBBLeTAHsWsdgPIN1KVZo=";
fetchSubmodules = true;
};
postPatch = ''
# Disable certificate check. It's dependent on time
echo "exit 0" > tools/unix/check_cert.sh
# crude fix for https://github.com/organicmaps/organicmaps/issues/1862
echo "echo ${lib.replaceStrings ["." "-" "android"] ["" "" ""] version}" > tools/unix/version.sh
'';
nativeBuildInputs = [
cmake
ninja
pkg-config
which
python3
rsync
makeWrapper
];
# Most dependencies are vendored
buildInputs = [
qtbase
qtsvg
libGLU
libGL
zlib
icu
freetype
];
# Yes, this is PRE configure. The configure phase uses cmake
preConfigure = ''
bash ./configure.sh
'';
postInstall = ''
install -Dm755 OMaps $out/bin/OMaps
# Tell the program that the read-only and the read-write data locations
# are different, and create the read-write one.
wrapProgram $out/bin/OMaps \
--add-flags "-resources_path $out/share/organicmaps/data" \
--add-flags '-data_path "''${XDG_DATA_HOME:-''${HOME}/.local/share}/OMaps"' \
--run 'mkdir -p "''${XDG_DATA_HOME:-''${HOME}/.local/share}/OMaps"'
mkdir -p $out/share/organicmaps
cp -r ../data $out/share/organicmaps/data
install -Dm644 ../qt/res/logo.png $out/share/icons/hicolor/96x96/apps/organicmaps.png
install -Dm644 ../qt/res/OrganicMaps.desktop $out/share/applications/OrganicMaps.desktop
'';
meta = with lib; {
homepage = "https://organicmaps.app/";
description = "Detailed Offline Maps for Travellers, Tourists, Hikers and Cyclists";
license = licenses.asl20;
maintainers = with maintainers; [ fgaz ];
platforms = platforms.all;
mainProgram = "OMaps";
broken = stdenv.isDarwin; # "invalid application of 'sizeof' to a function type"
};
}

View file

@ -91,11 +91,11 @@ in
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "brave"; pname = "brave";
version = "1.36.116"; version = "1.36.122";
src = fetchurl { src = fetchurl {
url = "https://github.com/brave/brave-browser/releases/download/v${version}/brave-browser_${version}_amd64.deb"; url = "https://github.com/brave/brave-browser/releases/download/v${version}/brave-browser_${version}_amd64.deb";
sha256 = "whGV0VgCm6JSyrcFQTKbM35b/qLQdBmChTrYuyC+OlI="; sha256 = "aBHoEu1egRPMpeUBgRl2V5J3op1Ju+CvprG14dIWc8M=";
}; };
dontConfigure = true; dontConfigure = true;

View file

@ -23,7 +23,7 @@
, libusb1, re2 , libusb1, re2
, ffmpeg, libxslt, libxml2 , ffmpeg, libxslt, libxml2
, nasm , nasm
, nspr, nss, systemd , nspr, nss
, util-linux, alsa-lib , util-linux, alsa-lib
, bison, gperf, libkrb5 , bison, gperf, libkrb5
, glib, gtk3, dbus-glib , glib, gtk3, dbus-glib
@ -47,6 +47,8 @@
, ungoogled ? false, ungoogled-chromium , ungoogled ? false, ungoogled-chromium
# Optional dependencies: # Optional dependencies:
, libgcrypt ? null # gnomeSupport || cupsSupport , libgcrypt ? null # gnomeSupport || cupsSupport
, systemdSupport ? stdenv.isLinux
, systemd
}: }:
buildFun: buildFun:
@ -139,7 +141,7 @@ let
libusb1 re2 libusb1 re2
ffmpeg libxslt libxml2 ffmpeg libxslt libxml2
nasm nasm
nspr nss systemd nspr nss
util-linux alsa-lib util-linux alsa-lib
bison gperf libkrb5 bison gperf libkrb5
glib gtk3 dbus-glib glib gtk3 dbus-glib
@ -151,7 +153,8 @@ let
libdrm wayland mesa.drivers libxkbcommon libdrm wayland mesa.drivers libxkbcommon
curl curl
libepoxy libepoxy
] ++ optionals gnomeSupport [ gnome2.GConf libgcrypt ] ] ++ optional systemdSupport systemd
++ optionals gnomeSupport [ gnome2.GConf libgcrypt ]
++ optional gnomeKeyringSupport libgnome-keyring3 ++ optional gnomeKeyringSupport libgnome-keyring3
++ optionals cupsSupport [ libgcrypt cups ] ++ optionals cupsSupport [ libgcrypt cups ]
++ optional pulseSupport libpulseaudio; ++ optional pulseSupport libpulseaudio;
@ -204,9 +207,10 @@ let
sed -i -e 's@"\(#!\)\?.*xdg-@"\1${xdg-utils}/bin/xdg-@' \ sed -i -e 's@"\(#!\)\?.*xdg-@"\1${xdg-utils}/bin/xdg-@' \
chrome/browser/shell_integration_linux.cc chrome/browser/shell_integration_linux.cc
'' + lib.optionalString systemdSupport ''
sed -i -e '/lib_loader.*Load/s!"\(libudev\.so\)!"${lib.getLib systemd}/lib/\1!' \ sed -i -e '/lib_loader.*Load/s!"\(libudev\.so\)!"${lib.getLib systemd}/lib/\1!' \
device/udev_linux/udev?_loader.cc device/udev_linux/udev?_loader.cc
'' + ''
sed -i -e '/libpci_loader.*Load/s!"\(libpci\.so\)!"${pciutils}/lib/\1!' \ sed -i -e '/libpci_loader.*Load/s!"\(libpci\.so\)!"${pciutils}/lib/\1!' \
gpu/config/gpu_info_collector_linux.cc gpu/config/gpu_info_collector_linux.cc

View file

@ -50,11 +50,11 @@ let
in stdenv.mkDerivation rec { in stdenv.mkDerivation rec {
pname = "opera"; pname = "opera";
version = "84.0.4316.31"; version = "84.0.4316.42";
src = fetchurl { src = fetchurl {
url = "${mirror}/${version}/linux/${pname}-stable_${version}_amd64.deb"; url = "${mirror}/${version}/linux/${pname}-stable_${version}_amd64.deb";
sha256 = "sha256-ypSnarhtJNQn3yOtydjmf6WmHAYbOfMg3xatCxTfIMY="; sha256 = "sha256-ZjVuw30YfHQ69BVxPvIde6VuOcqtnXrGwhZpA26vLpw=";
}; };
unpackCmd = "${dpkg}/bin/dpkg-deb -x $curSrc ."; unpackCmd = "${dpkg}/bin/dpkg-deb -x $curSrc .";

View file

@ -2,13 +2,13 @@
mkYarnPackage rec { mkYarnPackage rec {
pname = "vieb"; pname = "vieb";
version = "6.2.0"; version = "7.1.2";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "Jelmerro"; owner = "Jelmerro";
repo = pname; repo = pname;
rev = version; rev = version;
sha256 = "sha256-FuaN9iUxR5Y6SnNmuegmNJXn1BYKgcobquTL3thuByM="; sha256 = "sha256-4LGg3w/rleTyHJd4867dog+/fIXhtKbYgF1bYKwoh/I=";
}; };
packageJSON = ./package.json; packageJSON = ./package.json;

View file

@ -1,7 +1,7 @@
{ {
"name": "vieb", "name": "vieb",
"productName": "Vieb", "productName": "Vieb",
"version": "5.3.0", "version": "7.1.2",
"description": "Vim Inspired Electron Browser", "description": "Vim Inspired Electron Browser",
"main": "app/index.js", "main": "app/index.js",
"scripts": { "scripts": {
@ -14,7 +14,7 @@
"fix": "eslint --fix app .eslintrc.js build.js", "fix": "eslint --fix app .eslintrc.js build.js",
"lint": "eslint app .eslintrc.js build.js", "lint": "eslint app .eslintrc.js build.js",
"start": "electron app", "start": "electron app",
"test": "jest --testEnvironment jsdom --coverage --collectCoverageFrom 'app/**/*.js' -u && npm run lint && echo 'All good :)'" "test": "TZ=UTC jest --testEnvironment jsdom --coverage --collectCoverageFrom 'app/**/*.js' -u && npm run lint && echo 'All good :)'"
}, },
"repository": "https://github.com/Jelmerro/Vieb", "repository": "https://github.com/Jelmerro/Vieb",
"homepage": "https://vieb.dev", "homepage": "https://vieb.dev",
@ -28,23 +28,18 @@
"email": "Jelmerro@users.noreply.github.com", "email": "Jelmerro@users.noreply.github.com",
"license": "GPL-3.0-or-later", "license": "GPL-3.0-or-later",
"devDependencies": { "devDependencies": {
"archiver": "5.3.0", "electron": "17.0.1",
"electron": "13.1.4", "electron-builder": "22.14.13",
"electron-builder": "22.11.7", "eslint": "8.9.0",
"eslint": "7.29.0", "eslint-plugin-sort-keys": "2.3.5",
"eslint-plugin-compat": "3.9.0", "jest": "27.5.1",
"eslint-plugin-sort-keys-fix": "1.1.1", "jest-environment-jsdom": "27.5.1"
"jest": "27.0.6",
"jest-environment-jsdom": "27.0.6"
}, },
"dependencies": { "dependencies": {
"7zip-bin": "5.1.1", "7zip-bin": "5.1.1",
"@cliqz/adblocker-electron": "1.22.2", "@cliqz/adblocker-electron": "1.23.6",
"@cliqz/adblocker-electron-preload": "1.22.2", "@cliqz/adblocker-electron-preload": "1.23.6",
"is-svg": "4.3.1", "is-svg": "4.3.2",
"rimraf": "3.0.2" "rimraf": "3.0.2"
}, }
"browserslist": [
"last 2 Chrome versions"
]
} }

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -2,13 +2,13 @@
buildGoModule rec { buildGoModule rec {
pname = "cloudflared"; pname = "cloudflared";
version = "2022.3.1"; version = "2022.3.4";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "cloudflare"; owner = "cloudflare";
repo = "cloudflared"; repo = "cloudflared";
rev = version; rev = version;
hash = "sha256-iVg+AXSBO+caeYxUR41infCvsCTZkJTf7K0oZnOQmnY="; hash = "sha256-W3XA3AOzuyHlFCps2ne4Fh2X+E48inJT4QrDJLOeD5M=";
}; };
vendorSha256 = null; vendorSha256 = null;

View file

@ -2,13 +2,13 @@
buildGoModule rec { buildGoModule rec {
pname = "driftctl"; pname = "driftctl";
version = "0.24.0"; version = "0.25.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "snyk"; owner = "snyk";
repo = "driftctl"; repo = "driftctl";
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-jKaJqmJMOz+2pWXTgVtnJbYbikdTfW8nWQJKWVxqv5I="; sha256 = "sha256-opR1NkMGptZilSPVZ7yNjYBBjnOXxrqAFCYzQ1tNS78=";
}; };
vendorSha256 = "sha256-I0OCRhUvuaF4k5qqPaV6R24mrd9AG5GgQCCF6yodK0E="; vendorSha256 = "sha256-I0OCRhUvuaF4k5qqPaV6R24mrd9AG5GgQCCF6yodK0E=";

View file

@ -0,0 +1,32 @@
{ lib, buildGoModule, fetchFromGitHub, testVersion, ocm }:
buildGoModule rec {
pname = "ocm";
version = "0.1.62";
src = fetchFromGitHub {
owner = "openshift-online";
repo = "ocm-cli";
rev = "v${version}";
sha256 = "0kv0zcx6wdlyid37ygzg05xyyk77ybd2qcdgbswjv6crcjh1xdrd";
};
vendorSha256 = "sha256-nXUrbF9mcHy8G7c+ktQixBmmf6x066gpuaZ0eUsJQwc=";
# Tests expect the binary to be located in the root directory.
preCheck = ''
ln -s $GOPATH/bin/ocm ocm
'';
passthru.tests.version = testVersion {
package = ocm;
command = "ocm version";
};
meta = with lib; {
description = "CLI for the Red Hat OpenShift Cluster Manager";
license = licenses.asl20;
homepage = "https://github.com/openshift-online/ocm-cli";
maintainers = with maintainers; [ stehessel ];
};
}

View file

@ -0,0 +1,27 @@
{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "pluto";
version = "5.6.0";
src = fetchFromGitHub {
owner = "FairwindsOps";
repo = "pluto";
rev = "v${version}";
sha256 = "0nr8h8vg8ifgibgw80rs4mk63bj3qhmd37lfjc89iyml4g6p9mwr";
};
vendorSha256 = "08x5mzypg66s54apkd7hhj6bi5pgbch9if2dbr58ksd3arkji2pv";
ldflags = [
"-w" "-s"
"-X main.version=v${version}"
];
meta = with lib; {
homepage = "https://github.com/FairwindsOps/pluto";
description = "Find deprecated Kubernetes apiVersions";
license = licenses.asl20;
maintainers = with maintainers; [ peterromfeldhk ];
};
}

View file

@ -6,15 +6,17 @@
buildGoModule rec { buildGoModule rec {
pname = "gmailctl"; pname = "gmailctl";
version = "0.10.0"; version = "unstable-2022-03-24";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "mbrt"; owner = "mbrt";
repo = "gmailctl"; repo = "gmailctl";
rev = "v${version}"; rev = "484bb689866987580e0576165180ef06375a543f";
sha256 = "sha256-JuE8+OW+qM6tir4A25tN2GTXQIkcKVE4uKbZNSTcNlA="; sha256 = "sha256-hIoS64QEDJ1qq3KJ2H8HjgQl8SxuIo+xz7Ot8CdjjQA=";
}; };
vendorSha256 = "sha256-KWM20a38jZ3/a45313kxY2LaCQyiNMEdfdIV78phrBo=";
nativeBuildInputs = [ nativeBuildInputs = [
installShellFiles installShellFiles
]; ];
@ -26,8 +28,6 @@ buildGoModule rec {
--zsh <($out/bin/gmailctl completion zsh) --zsh <($out/bin/gmailctl completion zsh)
''; '';
vendorSha256 = "sha256-nAczO439tRiQU9f9LbJVENJiURVRnBAInwUp699RxOY=";
doCheck = false; doCheck = false;
meta = with lib; { meta = with lib; {

View file

@ -10,16 +10,16 @@
buildGoModule rec { buildGoModule rec {
pname = "gotktrix"; pname = "gotktrix";
version = "0.1.1"; version = "0.1.2";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "diamondburned"; owner = "diamondburned";
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-9feKg/rnkWdJRolHBQ5WT6Rl3xTFe82M8HyxJK3VuN4="; sha256 = "sha256-K+q0sykdOMnAWypOXnwTU5oTokpYw61CTsAW1gIvGSQ=";
}; };
vendorSha256 = "sha256-eO/2MvWOVCeeCsiU2mSwgSEVlSbCXOp8qHyoG0lmk+Q="; vendorSha256 = "sha256-Br9KgUoN01yoGujgbj5UEoB57K87oEH/o40rrRtIZVY=";
buildInputs = [ buildInputs = [
gtk4 gtk4

View file

@ -13,7 +13,7 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "termius"; pname = "termius";
version = "7.34.1"; version = "7.36.1";
src = fetchurl { src = fetchurl {
# find the latest version with # find the latest version with
@ -22,8 +22,8 @@ stdenv.mkDerivation rec {
# curl -H 'X-Ubuntu-Series: 16' https://api.snapcraft.io/api/v1/snaps/details/termius-app | jq '.download_url' -r # curl -H 'X-Ubuntu-Series: 16' https://api.snapcraft.io/api/v1/snaps/details/termius-app | jq '.download_url' -r
# and the sha512 with # and the sha512 with
# curl -H 'X-Ubuntu-Series: 16' https://api.snapcraft.io/api/v1/snaps/details/termius-app | jq '.download_sha512' -r # curl -H 'X-Ubuntu-Series: 16' https://api.snapcraft.io/api/v1/snaps/details/termius-app | jq '.download_sha512' -r
url = "https://api.snapcraft.io/api/v1/snaps/download/WkTBXwoX81rBe3s3OTt3EiiLKBx2QhuS_101.snap"; url = "https://api.snapcraft.io/api/v1/snaps/download/WkTBXwoX81rBe3s3OTt3EiiLKBx2QhuS_107.snap";
sha512 = "7fdd82535fd288277b01fedde4739dc97782236fbf25372efa56114bba676c21277ed96b32a1d46ac86af19925b14935818af50985d43a1307639530db044af4"; sha512 = "ef8514bdd0e6761a9bc7bf6b0b72d95c661905798c1507af932bd38a1e0c96713f71140b0d91454c3da5f3b97a0c8143b32918294eea2e46a7dca8faabda57e6";
}; };
desktopItem = makeDesktopItem { desktopItem = makeDesktopItem {
@ -55,15 +55,7 @@ stdenv.mkDerivation rec {
runHook preInstall runHook preInstall
cd squashfs-root cd squashfs-root
mkdir -p $out/opt/termius mkdir -p $out/opt/termius
cp -r \ cp -r ./ $out/opt/termius
icudtl.dat \
libffmpeg.so \
locales \
resources \
resources.pak \
termius-app \
v8_context_snapshot.bin \
$out/opt/termius
mkdir -p "$out/share/applications" "$out/share/pixmaps/termius-app.png" mkdir -p "$out/share/applications" "$out/share/pixmaps/termius-app.png"
cp "${desktopItem}/share/applications/"* "$out/share/applications" cp "${desktopItem}/share/applications/"* "$out/share/applications"

View file

@ -48,5 +48,6 @@ stdenv.mkDerivation rec {
license = licenses.lgpl21; license = licenses.lgpl21;
maintainers = with maintainers; [ mvs ]; maintainers = with maintainers; [ mvs ];
platforms = platforms.unix; platforms = platforms.unix;
broken = stdenv.isDarwin; # see https://github.com/NixOS/nixpkgs/issues/165422
}; };
} }

View file

@ -0,0 +1,49 @@
{ stdenv
, lib
, cmake
, fetchFromGitHub
, pkg-config
, fftwFloat
, mbedtls
, boost
, lksctp-tools
, libconfig
, pcsclite
, uhd
, soapysdr
, libbladeRF
}:
stdenv.mkDerivation rec {
pname = "srsran";
version = "21.10";
src = fetchFromGitHub {
owner = "srsran";
repo = "srsran";
rev = "release_${builtins.replaceStrings ["."] ["_"] version}";
sha256 = "sha256-uJv8khevp7g2p4zT6bkrut67kvMu+fuL1VHDDit0viw=";
};
nativeBuildInputs = [ cmake pkg-config ];
buildInputs = [
fftwFloat
mbedtls
boost
libconfig
lksctp-tools
pcsclite
uhd
soapysdr
libbladeRF
];
meta = with lib; {
homepage = "https://www.srslte.com/";
description = "Open-source 4G and 5G software radio suite.";
license = licenses.agpl3;
platforms = with platforms; linux ;
maintainers = with maintainers; [ hexagonal-sun ];
};
}

View file

@ -3,45 +3,45 @@
{ {
"kicad" = { "kicad" = {
kicadVersion = { kicadVersion = {
version = "6.0.2"; version = "6.0.4";
src = { src = {
rev = "378541a8ebe8a691b61c8ed1b4012c71343acfbb"; rev = "6f826c9f35a3dc9a104bb24a0a89a2e04b2d9721";
sha256 = "1lcl25zkqkyj5rvw9rad3n7bklpg10kmhmhkyyrgg8ql7di6wa0f"; sha256 = "0lki59ws0ncqkp9wxrhyni1ck2sx5z07mmpkjg0d9jpkync9hx9y";
}; };
}; };
libVersion = { libVersion = {
version = "6.0.2"; version = "6.0.4";
libSources = { libSources = {
symbols.rev = "80a176076a8f3785a4cd64e55ec87f27f6fcc163"; symbols.rev = "9d00fbb9373571e54d9f29985b21a03d862795a4";
symbols.sha256 = "1f57wv5b95iqd64k8ab82fvxnh5q890v7bzclmn019gl6ikisxj5"; symbols.sha256 = "12lyc187337bf2frl3jvwqdwwnd69f7l414k3kxhccs3sa2mcf1y";
templates.rev = "c9a51b852eacc3e64639548032b50edd80ddb27c"; templates.rev = "c4f4fe4b821e062a3ddd275f9313d5d81ff8f8d7";
templates.sha256 = "13h9ly6amiwm7zkwa2fd9730kh295ls8j95fszlfjp9rczv2yyzm"; templates.sha256 = "13h9ly6amiwm7zkwa2fd9730kh295ls8j95fszlfjp9rczv2yyzm";
footprints.rev = "c81b399054b0d3842094d7e8dfe08eb04310573a"; footprints.rev = "c48d3dfcfa6ce58ec11e10b7a74878bb69fae580";
footprints.sha256 = "1xmnq2731v2afan1d08xb1qqgl5xd01v5jphi6cdmw28ri555cna"; footprints.sha256 = "0px2g9jansky0rvc0bdjylbmv8xwhc0q63g88hd2nzbknqli9f1y";
packages3d.rev = "75175a21b720c59a26efce9a8c6dba3d032392a9"; packages3d.rev = "b1de0b5c3edc16999602b809a05017da62ff52cc";
packages3d.sha256 = "10zf8hp85ksi84cbiczsksn0ygvri4ffsa126v73nnkx6irw6nkk"; packages3d.sha256 = "0ms9py93qyihxrhh9wm2ziycmdn88m36r8adx22ynjnxixw1f9ja";
}; };
}; };
}; };
"kicad-unstable" = { "kicad-unstable" = {
kicadVersion = { kicadVersion = {
version = "2022-01-13"; version = "2022-03-19";
src = { src = {
rev = "33a4c9b08e040a17daefae9069fdf834063555b4"; rev = "58c146a7c00ee64ca07cacbcc594121f40aa2aeb";
sha256 = "1ma0i0vgvdsjrmlfzdi34byly7n1vsaynwp9f1hny4s1m53nirha"; sha256 = "0gcbl11pq0dgp590hdwsh5np7spixk5kgva0v8mx9rqd374z4bdm";
}; };
}; };
libVersion = { libVersion = {
version = "2022-01-13"; version = "2022-03-19";
libSources = { libSources = {
symbols.rev = "e3b198d827817b79fb8a6df07f0cfc1cb9140edf"; symbols.rev = "9b8d3163450172a7f368462c6d005841ad199144";
symbols.sha256 = "1azjx1bmxaz8bniyw75lq60mc8hvay00jn9qdc2zp7isy3c9ibp0"; symbols.sha256 = "12lyc187337bf2frl3jvwqdwwnd69f7l414k3kxhccs3sa2mcf1y";
templates.rev = "a27d83f0a20f0be0c1ab04b139a0c518da51a5d4"; templates.rev = "a27d83f0a20f0be0c1ab04b139a0c518da51a5d4";
templates.sha256 = "13h9ly6amiwm7zkwa2fd9730kh295ls8j95fszlfjp9rczv2yyzm"; templates.sha256 = "13h9ly6amiwm7zkwa2fd9730kh295ls8j95fszlfjp9rczv2yyzm";
footprints.rev = "a939c691f1c515d6830e54cf035a420de3e5a92c"; footprints.rev = "c871df2c81a894bc5e91d2d517b76884d5a918aa";
footprints.sha256 = "13g6y1l95znz6ixc4dpqsxp3icrzs951xpabnzr5znw42577gm9j"; footprints.sha256 = "0px2g9jansky0rvc0bdjylbmv8xwhc0q63g88hd2nzbknqli9f1y";
packages3d.rev = "196a26294d8e501b0e8b06c1df1abae0ebe23051"; packages3d.rev = "6ff98426fd51d53c55bc48025d66d3d0b0c5df92";
packages3d.sha256 = "0ywlk00dfwv7hc494finmazdh3g1yx0ir7bvnd8zp6cq4ql0nwl4"; packages3d.sha256 = "0ms9py93qyihxrhh9wm2ziycmdn88m36r8adx22ynjnxixw1f9ja";
}; };
}; };
}; };

View file

@ -14,11 +14,11 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "ngspice"; pname = "ngspice";
version = "34"; version = "36";
src = fetchurl { src = fetchurl {
url = "mirror://sourceforge/ngspice/ngspice-${version}.tar.gz"; url = "mirror://sourceforge/ngspice/ngspice-${version}.tar.gz";
sha256 = "sha256-ImP//GaUdUlyr3By7wHP5irHkIANrWUbwpC/yueb17U="; sha256 = "sha256-T4GCh++6JFNBBGY1t1eugfh5VJsyakMWtfbml6pRf4w=";
}; };
nativeBuildInputs = [ flex bison ]; nativeBuildInputs = [ flex bison ];

View file

@ -1,5 +1,5 @@
{ stdenv { lib
, lib , callPackage
, fetchFromGitHub , fetchFromGitHub
, fetchpatch , fetchpatch
, cmake , cmake
@ -14,13 +14,37 @@
, sqlite , sqlite
, gtest , gtest
, lit , lit
# Build KLEE in debug mode. Defaults to false.
, debug ? false , debug ? false
# Include debug info in the build. Defaults to true.
, includeDebugInfo ? true
# Enable KLEE asserts. Defaults to true, since LLVM is built with them.
, asserts ? true
# Build the KLEE runtime in debug mode. Defaults to true, as this improves
# stack traces of the software under test.
, debugRuntime ? true
# Enable runtime asserts. Default false.
, runtimeAsserts ? false
# Extra klee-uclibc config.
, extraKleeuClibcConfig ? {}
}: }:
let let
# Python used for KLEE tests.
kleePython = python3.withPackages (ps: with ps; [ tabulate ]); kleePython = python3.withPackages (ps: with ps; [ tabulate ]);
# The klee-uclibc derivation.
kleeuClibc = callPackage ./klee-uclibc.nix {
inherit clang_9 llvmPackages_9 extraKleeuClibcConfig debugRuntime runtimeAsserts;
};
in in
stdenv.mkDerivation rec { clang_9.stdenv.mkDerivation rec {
pname = "klee"; pname = "klee";
version = "2.2"; version = "2.2";
src = fetchFromGitHub { src = fetchFromGitHub {
@ -30,11 +54,12 @@ stdenv.mkDerivation rec {
sha256 = "Ar3BKfADjJvvP0dI9+x/l3RDs8ncx4jmO7ol4MgOr4M="; sha256 = "Ar3BKfADjJvvP0dI9+x/l3RDs8ncx4jmO7ol4MgOr4M=";
}; };
buildInputs = [ buildInputs = [
llvmPackages_9.llvm clang_9 z3 stp cryptominisat llvmPackages_9.llvm
z3 stp cryptominisat
gperftools sqlite gperftools sqlite
]; ];
nativeBuildInputs = [ nativeBuildInputs = [
cmake cmake clang_9
]; ];
checkInputs = [ checkInputs = [
gtest gtest
@ -46,14 +71,17 @@ stdenv.mkDerivation rec {
]; ];
cmakeFlags = let cmakeFlags = let
buildType = if debug then "Debug" else "Release"; onOff = val: if val then "ON" else "OFF";
in in [
[ "-DCMAKE_BUILD_TYPE=${if debug then "Debug" else if !debug && includeDebugInfo then "RelWithDebInfo" else "MinSizeRel"}"
"-DCMAKE_BUILD_TYPE=${buildType}" "-DKLEE_RUNTIME_BUILD_TYPE=${if debugRuntime then "Debug" else "Release"}"
"-DKLEE_RUNTIME_BUILD_TYPE=${buildType}" "-DKLEE_ENABLE_TIMESTAMP=${onOff false}"
"-DENABLE_POSIX_RUNTIME=ON" "-DENABLE_KLEE_UCLIBC=${onOff true}"
"-DENABLE_UNIT_TESTS=ON" "-DKLEE_UCLIBC_PATH=${kleeuClibc}"
"-DENABLE_SYSTEM_TESTS=ON" "-DENABLE_KLEE_ASSERTS=${onOff asserts}"
"-DENABLE_POSIX_RUNTIME=${onOff true}"
"-DENABLE_UNIT_TESTS=${onOff true}"
"-DENABLE_SYSTEM_TESTS=${onOff true}"
"-DGTEST_SRC_DIR=${gtest.src}" "-DGTEST_SRC_DIR=${gtest.src}"
"-DGTEST_INCLUDE_DIR=${gtest.src}/googletest/include" "-DGTEST_INCLUDE_DIR=${gtest.src}/googletest/include"
"-Wno-dev" "-Wno-dev"
@ -66,21 +94,40 @@ stdenv.mkDerivation rec {
patchShebangs . patchShebangs .
''; '';
/* This patch is currently necessary for the unit test suite to run correctly.
* See https://www.mail-archive.com/klee-dev@imperial.ac.uk/msg03136.html
* and https://github.com/klee/klee/pull/1458 for more information.
*/
patches = map fetchpatch [ patches = map fetchpatch [
/* This patch is currently necessary for the unit test suite to run correctly.
* See https://www.mail-archive.com/klee-dev@imperial.ac.uk/msg03136.html
* and https://github.com/klee/klee/pull/1458 for more information.
*/
{ {
name = "fix-gtest"; name = "fix-gtest";
sha256 = "F+/6videwJZz4sDF9lnV4B8lMx6W11KFJ0Q8t1qUDf4="; sha256 = "F+/6videwJZz4sDF9lnV4B8lMx6W11KFJ0Q8t1qUDf4=";
url = "https://github.com/klee/klee/pull/1458.patch"; url = "https://github.com/klee/klee/pull/1458.patch";
} }
# This patch fixes test compile issues with glibc 2.33+.
{
name = "fix-glibc-2.33";
sha256 = "PzxqtFyLy9KF1eA9AAKg1tu+ggRdvu7leuvXifayIcc=";
url = "https://github.com/klee/klee/pull/1385.patch";
}
# /etc/mtab doesn't exist in the Nix build sandbox.
{
name = "fix-etc-mtab-in-tests";
sha256 = "2Yb/rJA791esNNqq8uAXV+MML4YXIjPKkHBOufvyRoQ=";
url = "https://github.com/klee/klee/pull/1471.patch";
}
]; ];
doCheck = true; doCheck = true;
checkTarget = "check"; checkTarget = "check";
passthru = {
# Let the user depend on `klee.uclibc` for klee-uclibc
uclibc = kleeuClibc;
};
meta = with lib; { meta = with lib; {
description = "A symbolic virtual machine built on top of LLVM"; description = "A symbolic virtual machine built on top of LLVM";
longDescription = '' longDescription = ''

View file

@ -0,0 +1,98 @@
{ lib
, fetchurl
, fetchFromGitHub
, which
, linuxHeaders
, clang_9
, llvmPackages_9
, python3
, debugRuntime ? true
, runtimeAsserts ? false
, extraKleeuClibcConfig ? {}
}:
let
localeSrcBase = "uClibc-locale-030818.tgz";
localeSrc = fetchurl {
url = "http://www.uclibc.org/downloads/${localeSrcBase}";
sha256 = "xDYr4xijjxjZjcz0YtItlbq5LwVUi7k/ZSmP6a+uvVc=";
};
resolvedExtraKleeuClibcConfig = lib.mapAttrsToList (name: value: "${name}=${value}") (extraKleeuClibcConfig // {
"UCLIBC_DOWNLOAD_PREGENERATED_LOCALE_DATA" = "n";
"RUNTIME_PREFIX" = "/";
"DEVEL_PREFIX" = "/";
});
in
clang_9.stdenv.mkDerivation rec {
pname = "klee-uclibc";
version = "1.2";
src = fetchFromGitHub {
owner = "klee";
repo = "klee-uclibc";
rev = "klee_uclibc_v${version}";
sha256 = "qdrGMw+2XwpDsfxdv6swnoaoACcF5a/RWgUxUYbtPrI=";
};
nativeBuildInputs = [
clang_9
llvmPackages_9.llvm
python3
which
];
# Some uClibc sources depend on Linux headers.
UCLIBC_KERNEL_HEADERS = "${linuxHeaders}/include";
# HACK: needed for cross-compile.
# See https://www.mail-archive.com/klee-dev@imperial.ac.uk/msg03141.html
KLEE_CFLAGS = "-idirafter ${clang_9}/resource-root/include";
prePatch = ''
patchShebangs ./configure
patchShebangs ./extra
'';
# klee-uclibc configure does not support --prefix, so we override configurePhase entirely
configurePhase = ''
./configure ${lib.escapeShellArgs (
["--make-llvm-lib"]
++ lib.optional (!debugRuntime) "--enable-release"
++ lib.optional runtimeAsserts "--enable-assertions"
)}
# Set all the configs we care about.
configs=(
PREFIX=$out
)
for value in ${lib.escapeShellArgs resolvedExtraKleeuClibcConfig}; do
configs+=("$value")
done
for configFile in .config .config.cmd; do
for config in "''${configs[@]}"; do
prefix="''${config%%=*}="
if grep -q "$prefix" "$configFile"; then
sed -i "s"'\001'"''${prefix}"'\001'"#''${prefix}"'\001'"g" "$configFile"
fi
echo "$config" >> "$configFile"
done
done
'';
# Link the locale source into the correct place
preBuild = ''
ln -sf ${localeSrc} extra/locale/${localeSrcBase}
'';
makeFlags = ["HAVE_DOT_CONFIG=y"];
meta = with lib; {
description = "A modified version of uClibc for KLEE.";
longDescription = ''
klee-uclibc is a bitcode build of uClibc meant for compatibility with the
KLEE symbolic virtual machine.
'';
homepage = "https://klee.github.io/";
license = licenses.lgpl3;
maintainers = with maintainers; [ numinit ];
};
}

View file

@ -2,12 +2,11 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "got"; pname = "got";
version = "0.67"; version = "0.68.1";
src = fetchurl { src = fetchurl {
url = url = "https://gameoftrees.org/releases/portable/got-portable-${version}.tar.gz";
"https://gameoftrees.org/releases/portable/got-portable-${version}.tar.gz"; sha256 = "122wignzrhsw00mfnh7mxcxvjyp9rk73yxzfyvmg7f5kmb0hng35";
sha256 = "sha256-37Ncljw2tibVRrynDlbxk7d5IS+5QypNFvKIkZ5JvME=";
}; };
nativeBuildInputs = [ pkg-config ]; nativeBuildInputs = [ pkg-config ];

View file

@ -1,6 +1,6 @@
{ lib, stdenv, fetchurl, qt4, pkg-config, boost, expat, cairo, python2Packages, { lib, stdenv, fetchurl, qt4, pkg-config, boost, expat, cairo, python2Packages,
cmake, flex, bison, pango, librsvg, librevenge, libxml2, libcdr, libzip, cmake, flex, bison, pango, librsvg, librevenge, libxml2, libcdr, libzip,
poppler, imagemagick, openexr, ffmpeg_3, opencolorio_1, openimageio, poppler, imagemagick, openexr, ffmpeg, opencolorio_1, openimageio,
qmake4Hook, libpng, libGL, lndir, libraw, openjpeg, libwebp, fetchFromGitHub }: qmake4Hook, libpng, libGL, lndir, libraw, openjpeg, libwebp, fetchFromGitHub }:
let let
@ -74,7 +74,7 @@ let
sha256 = "OQg6a5wNy9TFFySjmgd1subvXRxY/ZnSOCkaoUo+ZaA="; sha256 = "OQg6a5wNy9TFFySjmgd1subvXRxY/ZnSOCkaoUo+ZaA=";
nativeBuildInputs = [ pkg-config ]; nativeBuildInputs = [ pkg-config ];
buildInputs = [ buildInputs = [
libpng ffmpeg_3 openexr opencolorio_1 openimageio boost libGL libpng ffmpeg openexr opencolorio_1 openimageio boost libGL
seexpr libraw openjpeg libwebp seexpr libraw openjpeg libwebp
]; ];
}) })
@ -135,5 +135,6 @@ stdenv.mkDerivation {
license = lib.licenses.gpl2; license = lib.licenses.gpl2;
maintainers = [ maintainers.puffnfresh ]; maintainers = [ maintainers.puffnfresh ];
platforms = platforms.linux; platforms = platforms.linux;
broken = true; # Last evaluated on Hydra on 2021-05-18
}; };
} }

View file

@ -8,16 +8,16 @@
buildGoModule rec { buildGoModule rec {
pname = "lima"; pname = "lima";
version = "0.9.1"; version = "0.9.2";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "lima-vm"; owner = "lima-vm";
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-Y15oYAdq+bsG2qD/ZTqXHgkelAdQF4SnOE79gDhlNGE="; sha256 = "sha256-GS/mzBoVL78U7vMxkbnQfb89U640w8YdA8YhPH4Iwrc=";
}; };
vendorSha256 = "sha256-66CcLWG45vZwM2LVc1xsjJYyxefGEBW4fY3wo1ESQUM="; vendorSha256 = "sha256-funVyM0RhDzGQPyzsABzXu3ETPYJwRosqkQreGBADZc=";
nativeBuildInputs = [ makeWrapper installShellFiles ]; nativeBuildInputs = [ makeWrapper installShellFiles ];

View file

@ -1,15 +1,28 @@
{ lib, fetchFromGitHub, python3, python3Packages, mypy, glib, pango, pkg-config, xcbutilcursor }: { lib
, fetchFromGitHub
, python3
, python3Packages
, mypy
, glib
, pango
, pkg-config
, libinput
, libxkbcommon
, wayland
, wlroots
, xcbutilcursor
}:
let let
unwrapped = python3Packages.buildPythonPackage rec { unwrapped = python3Packages.buildPythonPackage rec {
pname = "qtile"; pname = "qtile";
version = "0.20.0"; version = "0.21.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "qtile"; owner = "qtile";
repo = "qtile"; repo = "qtile";
rev = "v${version}"; rev = "v${version}";
sha256 = "TRmul3t//izJRdViTvxFz29JZeGYsWc7WsJjagQ35nw="; sha256 = "3QCI1TZIh1LcWuklVQkqgR1MQphi6CzZKc1UZcytV0k=";
}; };
patches = [ patches = [
@ -48,6 +61,13 @@ let
xkbcommon xkbcommon
]; ];
buildInputs = [
libinput
wayland
wlroots
libxkbcommon
];
# for `qtile check`, needs `stubtest` and `mypy` commands # for `qtile check`, needs `stubtest` and `mypy` commands
makeWrapperArgs = [ makeWrapperArgs = [
"--suffix PATH : ${lib.makeBinPath [ mypy ]}" "--suffix PATH : ${lib.makeBinPath [ mypy ]}"

View file

@ -1,14 +1,14 @@
{ lib, stdenv, fetchFromGitHub, gtk3, breeze-icons, pantheon, gnome-icon-theme, hicolor-icon-theme }: { lib, stdenvNoCC, fetchFromGitHub, gtk3, breeze-icons, pantheon, gnome-icon-theme, hicolor-icon-theme }:
stdenv.mkDerivation rec { stdenvNoCC.mkDerivation rec {
pname = "flat-remix-icon-theme"; pname = "flat-remix-icon-theme";
version = "20211106"; version = "20220304";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "daniruiz"; owner = "daniruiz";
repo = "flat-remix"; repo = "flat-remix";
rev = version; rev = version;
sha256 = "1dlz88bg764zzd0s3yqci4m1awhwdrrql9l9plsjjzgdx9r7ndmf"; sha256 = "sha256-SE3e3lPGLw6gONVQD8Joj6KNnXC/UygT0fy0AgH8us8=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [
@ -36,7 +36,8 @@ stdenv.mkDerivation rec {
meta = with lib; { meta = with lib; {
description = "Flat remix is a pretty simple icon theme inspired on material design"; description = "Flat remix is a pretty simple icon theme inspired on material design";
homepage = "https://drasite.com/flat-remix"; homepage = "https://drasite.com/flat-remix";
license = with licenses; [ gpl3 ]; license = with licenses; [ gpl3Only ];
# breeze-icons and pantheon.elementary-icon-theme dependencies are restricted to linux
platforms = platforms.linux; platforms = platforms.linux;
maintainers = with maintainers; [ mschneider ]; maintainers = with maintainers; [ mschneider ];
}; };

View file

@ -1,12 +1,12 @@
{ lib, stdenv, fetchurl, gtk3, gnome, hicolor-icon-theme }: { lib, stdenvNoCC, fetchurl, gtk3, gnome, hicolor-icon-theme }:
stdenv.mkDerivation rec { stdenvNoCC.mkDerivation rec {
pname = "humanity-icon-theme"; pname = "humanity-icon-theme";
version = "0.6.15"; version = "0.6.16";
src = fetchurl { src = fetchurl {
url = "https://launchpad.net/ubuntu/+archive/primary/+files/${pname}_${version}.tar.xz"; url = "https://launchpad.net/ubuntu/+archive/primary/+files/${pname}_${version}.tar.xz";
sha256 = "19ja47468s3jfabvakq9wknyfclfr31a9vd11p3mhapfq8jv9g4x"; sha256 = "sha256-AyHl4zMyFE2/5Cui3Y/SB1yEUuyafDdybFPrafo4Ki0=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [

View file

@ -0,0 +1,25 @@
{ lib, stdenv, fetchzip }:
stdenv.mkDerivation rec {
pname = "generaluser";
version = "1.471";
# we can't use fetchurl since stdenv does not handle unpacking *.zip's by default.
src = fetchzip {
# Linked on http://www.schristiancollins.com/generaluser.php:
url = "https://www.dropbox.com/s/4x27l49kxcwamp5/GeneralUser_GS_${version}.zip";
sha256 = "sha256-lwUlWubXiVZ8fijKuNF54YQjT0uigjNAbjKaNjmC51s=";
};
installPhase = ''
install -Dm644 GeneralUser*.sf2 $out/share/soundfonts/GeneralUser-GS.sf2
'';
meta = with lib; {
description = "a SoundFont bank featuring 259 instrument presets and 11 drum kits";
homepage = "http://www.schristiancollins.com/generaluser.php";
license = licenses.generaluser;
platforms = platforms.all;
maintainers = with maintainers; [ ckie ];
};
}

View file

@ -1,14 +1,25 @@
{ lib, stdenv, fetchFromGitHub, meson, ninja, pkg-config, sassc, gdk-pixbuf, librsvg, gtk-engine-murrine }: { lib
, stdenv
, fetchFromGitHub
, meson
, ninja
, pkg-config
, sassc
, gdk-pixbuf
, librsvg
, gtk-engine-murrine
, gitUpdater
}:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "greybird"; pname = "greybird";
version = "3.22.15"; version = "3.23.1";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "shimmerproject"; owner = "shimmerproject";
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
sha256 = "1fk66fxy2lif9ngazlgkpsziw216i4b1ld2zm97cadf7n97376g9"; sha256 = "hfi2TBRrZTSN43tYKMPvb/dWwwUE7RakKTMBziHnCWA=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [
@ -27,6 +38,8 @@ stdenv.mkDerivation rec {
gtk-engine-murrine gtk-engine-murrine
]; ];
passthru.updateScript = gitUpdater { inherit pname version; rev-prefix = "v"; };
meta = with lib; { meta = with lib; {
description = "Grey and blue theme from the Shimmer Project for GTK-based environments"; description = "Grey and blue theme from the Shimmer Project for GTK-based environments";
homepage = "https://github.com/shimmerproject/Greybird"; homepage = "https://github.com/shimmerproject/Greybird";

View file

@ -61,6 +61,16 @@ super: lib.trivial.pipe super [
''; '';
})) }))
(patchExtension "screen-autorotate@kosmospredanie.yandex.ru" (old: {
# Requires gjs
# https://github.com/NixOS/nixpkgs/issues/164865
postPatch = ''
for file in *.js; do
substituteInPlace $file --replace "gjs" "${gjs}/bin/gjs"
done
'';
}))
(patchExtension "shell-volume-mixer@derhofbauer.at" (old: { (patchExtension "shell-volume-mixer@derhofbauer.at" (old: {
patches = [ patches = [
(substituteAll { (substituteAll {

View file

@ -1,25 +1,34 @@
{ lib, stdenv, fetchurl, fetchpatch, pkg-config, intltool, dbus-glib, gtk2, libical, libnotify, tzdata { lib
, popt, libxfce4ui, xfce4-panel, withPanelPlugin ? true, wrapGAppsHook, xfce }: , mkXfceDerivation
, dbus-glib
, gtk3
, libical
, libnotify
, libxfce4ui
, popt
, tzdata
, xfce4-panel
, withPanelPlugin ? true
}:
assert withPanelPlugin -> libxfce4ui != null && xfce4-panel != null; mkXfceDerivation {
category = "apps";
let
inherit (lib) optionals;
in
stdenv.mkDerivation rec {
pname = "orage"; pname = "orage";
version = "4.12.1"; version = "4.16.0";
odd-unstable = false;
sha256 = "sha256-Q2vTjfhbhG7TrkGeU5oVBB+UvrV5QFtl372wgHU4cxw=";
src = fetchurl { buildInputs = [
url = "https://archive.xfce.org/src/apps/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.bz2"; dbus-glib
sha256 = "sha256-PPmqRBroPIaIhl+CIXAlzfPrqhUszkVxd3uMKqjdkGI="; gtk3
}; libical
libnotify
nativeBuildInputs = [ pkg-config intltool wrapGAppsHook ]; libxfce4ui
popt
buildInputs = [ dbus-glib gtk2 libical libnotify popt ] ]
++ optionals withPanelPlugin [ libxfce4ui xfce4-panel ]; ++ lib.optionals withPanelPlugin [
xfce4-panel
];
postPatch = '' postPatch = ''
substituteInPlace src/parameters.c --replace "/usr/share/zoneinfo" "${tzdata}/share/zoneinfo" substituteInPlace src/parameters.c --replace "/usr/share/zoneinfo" "${tzdata}/share/zoneinfo"
@ -27,27 +36,13 @@ stdenv.mkDerivation rec {
substituteInPlace tz_convert/tz_convert.c --replace "/usr/share/zoneinfo" "${tzdata}/share/zoneinfo" substituteInPlace tz_convert/tz_convert.c --replace "/usr/share/zoneinfo" "${tzdata}/share/zoneinfo"
''; '';
postConfigure = "rm -rf libical"; # ensure pkgs.libical is used instead of one included in the orage sources postConfigure = ''
# ensure pkgs.libical is used instead of one included in the orage sources
patches = [ rm -rf libical
# Fix build with libical 3.0 '';
(fetchpatch {
name = "fix-libical3.patch";
url = "https://aur.archlinux.org/cgit/aur.git/plain/libical3.patch?h=orage-4.10";
sha256 = "sha256-bsnQMGmeo4mRNGM/7UYXez2bNopXMHRFX7VFVg0IGtE=";
})
];
passthru.updateScript = xfce.archiveUpdater {
category = "apps";
inherit pname version;
};
meta = with lib; { meta = with lib; {
description = "Simple calendar application with reminders"; description = "Simple calendar application for Xfce";
homepage = "https://git.xfce.org/archive/orage/";
license = licenses.gpl2Plus;
platforms = platforms.linux;
maintainers = with maintainers; [ ] ++ teams.xfce.members; maintainers = with maintainers; [ ] ++ teams.xfce.members;
}; };
} }

View file

@ -11,13 +11,13 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "guile-ssh"; pname = "guile-ssh";
version = "0.15.0"; version = "0.15.1";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "artyom-poptsov"; owner = "artyom-poptsov";
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-dcG3Q1K1/CxrMeEUWSZ3Qu57Aesalydg4UjkIqg1NJ0="; sha256 = "sha256-+BhyaBieqMwTgsSLci3HJdCrNQmfPN/jK2Od5DQs9n8=";
}; };
configureFlags = [ "--with-guilesitedir=\${out}/share/guile/site" ]; configureFlags = [ "--with-guilesitedir=\${out}/share/guile/site" ];

View file

@ -2,13 +2,13 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "janet"; pname = "janet";
version = "1.20.0"; version = "1.21.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "janet-lang"; owner = "janet-lang";
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-mCeOaTbOQej4Uza9fg+xop77z31SQ3sO09dZK8SVAyU="; sha256 = "sha256-chVnD5mxnA50yEL65KUYJwpkZ4jPWiLVHHXeeFxtHBo=";
}; };
# This release fails the test suite on darwin, remove when debugged. # This release fails the test suite on darwin, remove when debugged.

View file

@ -1,20 +1,30 @@
{ lib, stdenv, fetchFromGitHub, sqlite, readline, asciidoc, SDL, SDL_gfx }: { lib
, stdenv
, fetchFromGitHub
let , asciidoc
makeSDLFlags = map (p: "-I${lib.getDev p}/include/SDL"); , pkg-config
, inetutils
in stdenv.mkDerivation rec { , sqlite
, readline
, SDL
, SDL_gfx
}:
stdenv.mkDerivation rec {
pname = "jimtcl"; pname = "jimtcl";
version = "0.79"; version = "0.81";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "msteveb"; owner = "msteveb";
repo = "jimtcl"; repo = "jimtcl";
rev = version; rev = version;
sha256 = "1k88hz0v3bi19xdvlp0i9nsx38imzwpjh632w7326zwbv2wldf0h"; sha256 = "sha256-OpM9y7fQ+18qxl3/5wUCrNA9qiCdA0vTHqLYSw2lvJs=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [
pkg-config
asciidoc asciidoc
]; ];
@ -35,8 +45,6 @@ in stdenv.mkDerivation rec {
"--ipv6" "--ipv6"
]; ];
NIX_CFLAGS_COMPILE = toString (makeSDLFlags [ SDL SDL_gfx ]);
enableParallelBuilding = true; enableParallelBuilding = true;
doCheck = true; doCheck = true;
@ -45,6 +53,9 @@ in stdenv.mkDerivation rec {
rm tests/exec2.test rm tests/exec2.test
''; '';
# test posix-1.6 needs the "hostname" command
checkInputs = [ inetutils ];
postInstall = '' postInstall = ''
ln -sr $out/lib/libjim.so.${version} $out/lib/libjim.so ln -sr $out/lib/libjim.so.${version} $out/lib/libjim.so
''; '';
@ -54,6 +65,6 @@ in stdenv.mkDerivation rec {
homepage = "http://jim.tcl.tk/"; homepage = "http://jim.tcl.tk/";
license = lib.licenses.bsd2; license = lib.licenses.bsd2;
platforms = lib.platforms.all; platforms = lib.platforms.all;
maintainers = with lib.maintainers; [ dbohdan vrthra ]; maintainers = with lib.maintainers; [ dbohdan fgaz vrthra ];
}; };
} }

View file

@ -1,35 +1,52 @@
{ lib { lib
, stdenv , stdenv
, fetchFromGitHub , fetchFromGitHub
, nix-update-script
, cmake , cmake
, python3 , python3
, gtest
, withAnimation ? true , withAnimation ? true
, withTranscoder ? true , withTranscoder ? true
, eigen
, ghc_filesystem
, tinygltf
}: }:
let let
cmakeBool = b: if b then "ON" else "OFF"; cmakeBool = b: if b then "ON" else "OFF";
in in
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
version = "1.5.0"; version = "1.5.2";
pname = "draco"; pname = "draco";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "google"; owner = "google";
repo = "draco"; repo = "draco";
rev = version; rev = version;
hash = "sha256-BoJg2lZBPVVm6Nc0XK8QSISpe+B8tpgRg9PFncN4+fY="; sha256 = "sha256-o6KQJFrnxx2kz6g3vXk1w435OmaJhAJjzsKM/gmVJ2M=";
fetchSubmodules = true; fetchSubmodules = true;
}; };
buildInputs = [ gtest ]
++ lib.optionals withTranscoder [ eigen ghc_filesystem tinygltf ];
nativeBuildInputs = [ cmake python3 ]; nativeBuildInputs = [ cmake python3 ];
cmakeFlags = [ cmakeFlags = [
"-DDRACO_ANIMATION_ENCODING=${cmakeBool withAnimation}" "-DDRACO_ANIMATION_ENCODING=${cmakeBool withAnimation}"
"-DDRACO_TRANSCODER_SUPPORTED=${cmakeBool withTranscoder}" "-DDRACO_GOOGLETEST_PATH=${gtest}"
"-DBUILD_SHARED_LIBS=${cmakeBool true}" "-DBUILD_SHARED_LIBS=${cmakeBool true}"
"-DDRACO_TRANSCODER_SUPPORTED=${cmakeBool withTranscoder}"
] ++ lib.optionals withTranscoder [
"-DDRACO_EIGEN_PATH=${eigen}/include/eigen3"
"-DDRACO_FILESYSTEM_PATH=${ghc_filesystem}"
"-DDRACO_TINYGLTF_PATH=${tinygltf}"
]; ];
passthru.updateScript = nix-update-script {
attrPath = pname;
};
meta = with lib; { meta = with lib; {
description = "Library for compressing and decompressing 3D geometric meshes and point clouds"; description = "Library for compressing and decompressing 3D geometric meshes and point clouds";
homepage = "https://google.github.io/draco/"; homepage = "https://google.github.io/draco/";

View file

@ -1,37 +0,0 @@
{ lib, stdenv, fetchFromGitHub, pkg-config, libsixel, yasm
}:
stdenv.mkDerivation {
pname = "ffmpeg-sixel";
version = "nightly-2.3.x";
src = fetchFromGitHub {
owner = "saitoha";
repo = "FFmpeg-SIXEL";
rev = "8566fdb8b7516b54aed58f329dc216e06fc10052";
sha256 = "00s2lggfdj2ibpngpyqqg7360p7yb69ys1ppg59yvv0m0mxk5x3k";
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [
libsixel
yasm
];
configurePhase = ''
./configure --enable-libsixel --prefix=$out
'';
postInstall = ''
mv $out/bin/ffmpeg $out/bin/ffmpeg-sixel
'';
meta = with lib; {
description = "A complete, cross-platform solution to record, convert and stream audio and video, extended to support console graphics";
homepage = "http://www.ffmpeg.org/";
license = licenses.lgpl3;
platforms = platforms.linux;
maintainers = with maintainers; [ vrthra ];
};
}

View file

@ -1,15 +0,0 @@
{ callPackage
# Darwin frameworks
, Cocoa, CoreMedia
, ...
}@args:
callPackage ./generic.nix (rec {
version = branch;
branch = "3.4.8";
sha256 = "1d0r4yja2dkkyhdwx1migq46gsrcbajiv66263a5sq5bfr9dqkch";
darwinFrameworks = [ Cocoa CoreMedia ];
knownVulnerabilities = [
"CVE-2021-30123"
];
} // args)

View file

@ -1,6 +1,6 @@
{ lib, stdenv, buildPackages, fetchurl, pkg-config, addOpenGLRunpath, perl, texinfo, yasm { lib, stdenv, buildPackages, fetchurl, pkg-config, addOpenGLRunpath, perl, texinfo, yasm
, alsa-lib, bzip2, fontconfig, freetype, gnutls, libiconv, lame, libass, libogg , alsa-lib, bzip2, fontconfig, freetype, gnutls, libiconv, lame, libass, libogg
, libssh, libtheora, libva, libdrm, libvorbis, libvpx, xz, libpulseaudio, soxr , libssh, libtheora, libva, libdrm, libvorbis, libvpx, xz, soxr
, x264, x265, xvidcore, zimg, zlib, libopus, speex, nv-codec-headers, dav1d , x264, x265, xvidcore, zimg, zlib, libopus, speex, nv-codec-headers, dav1d
, srt ? null , srt ? null
, openglSupport ? false, libGLU ? null, libGL ? null , openglSupport ? false, libGLU ? null, libGL ? null
@ -19,7 +19,10 @@
, Cocoa, darwinFrameworks ? [ Cocoa ] , Cocoa, darwinFrameworks ? [ Cocoa ]
# Inherit generics # Inherit generics
, branch, sha256, version, patches ? [], knownVulnerabilities ? [] , branch, sha256, version, patches ? [], knownVulnerabilities ? []
, doCheck ? true, ... , doCheck ? true
, pulseaudioSupport ? stdenv.isLinux
, libpulseaudio
, ...
}: }:
/* Maintainer notes: /* Maintainer notes:
@ -149,7 +152,7 @@ stdenv.mkDerivation rec {
(ifMinVer "2.2" (enableFeature openglSupport "opengl")) (ifMinVer "2.2" (enableFeature openglSupport "opengl"))
(ifMinVer "4.2" (enableFeature libmfxSupport "libmfx")) (ifMinVer "4.2" (enableFeature libmfxSupport "libmfx"))
(ifMinVer "4.2" (enableFeature libaomSupport "libaom")) (ifMinVer "4.2" (enableFeature libaomSupport "libaom"))
(disDarwinOrArmFix (ifMinVer "0.9" "--enable-libpulse") "0.9" "--disable-libpulse") (disDarwinOrArmFix (ifMinVer "0.9" (lib.optionalString pulseaudioSupport "--enable-libpulse")) "0.9" "--disable-libpulse")
(ifMinVer "2.5" (if sdlSupport && reqMin "3.2" then "--enable-sdl2" else if sdlSupport then "--enable-sdl" else null)) # autodetected before 2.5, SDL1 support removed in 3.2 for SDL2 (ifMinVer "2.5" (if sdlSupport && reqMin "3.2" then "--enable-sdl2" else if sdlSupport then "--enable-sdl" else null)) # autodetected before 2.5, SDL1 support removed in 3.2 for SDL2
(ifMinVer "1.2" "--enable-libsoxr") (ifMinVer "1.2" "--enable-libsoxr")
"--enable-libx264" "--enable-libx264"
@ -182,7 +185,7 @@ stdenv.mkDerivation rec {
++ optional libmfxSupport intel-media-sdk ++ optional libmfxSupport intel-media-sdk
++ optional libaomSupport libaom ++ optional libaomSupport libaom
++ optional vpxSupport libvpx ++ optional vpxSupport libvpx
++ optionals (!isDarwin && !isAarch32) [ libpulseaudio ] # Need to be fixed on Darwin and ARM ++ optionals (!isDarwin && !isAarch32 && pulseaudioSupport) [ libpulseaudio ] # Need to be fixed on Darwin and ARM
++ optional ((isLinux || isFreeBSD) && !isAarch32) libva ++ optional ((isLinux || isFreeBSD) && !isAarch32) libva
++ optional ((isLinux || isFreeBSD) && !isAarch32) libdrm ++ optional ((isLinux || isFreeBSD) && !isAarch32) libdrm
++ optional isLinux alsa-lib ++ optional isLinux alsa-lib

View file

@ -12,7 +12,7 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "glib-testing"; pname = "glib-testing";
version = "0.1.0"; version = "0.1.1";
outputs = [ "out" "dev" "devdoc" "installedTests" ]; outputs = [ "out" "dev" "devdoc" "installedTests" ];
@ -21,7 +21,7 @@ stdenv.mkDerivation rec {
owner = "pwithnall"; owner = "pwithnall";
repo = "libglib-testing"; repo = "libglib-testing";
rev = version; rev = version;
sha256 = "0xmycsrlqyji6sc2i4wvp2gxf3897z65a57ygihfnpjpyl7zlwkr"; sha256 = "U3epLDdLES7MA71z7Q1WXMjzySTFERWBU0u8poObbEo=";
}; };
patches = [ patches = [

View file

@ -54,6 +54,14 @@ stdenv.mkDerivation rec {
patches = optionals stdenv.isDarwin [ patches = optionals stdenv.isDarwin [
./darwin-compilation.patch ./darwin-compilation.patch
# Fix Inkscape compilation with clang++
# https://gitlab.gnome.org/GNOME/glib/-/issues/2625
(fetchpatch {
url = "https://gitlab.gnome.org/GNOME/glib/-/commit/97d39b745ff1f621424f68a41ce0a7c5bb554c87.patch";
sha256 = "wftuyf3ExFfrISngCQpEUpIGfHCCLXeYv/PEb/TE6a8=";
revert = true;
})
] ++ optionals stdenv.hostPlatform.isMusl [ ] ++ optionals stdenv.hostPlatform.isMusl [
./quark_init_on_demand.patch ./quark_init_on_demand.patch
./gobject_init_on_demand.patch ./gobject_init_on_demand.patch

View file

@ -202,6 +202,9 @@ stdenv.mkDerivation rec {
for f in $dev/bin/gtk4-encode-symbolic-svg; do for f in $dev/bin/gtk4-encode-symbolic-svg; do
wrapProgram $f --prefix XDG_DATA_DIRS : "${shared-mime-info}/share" wrapProgram $f --prefix XDG_DATA_DIRS : "${shared-mime-info}/share"
done done
'' + lib.optionalString broadwaySupport ''
# Broadway daemon
moveToOutput bin/gtk4-broadwayd "$out"
''; '';
# Wrap demos # Wrap demos

View file

@ -21,6 +21,12 @@
, gtk-doc , gtk-doc
, docbook-xsl-nons , docbook-xsl-nons
, docbook_xml_dtd_43 , docbook_xml_dtd_43
# for passthru.tests
, gimp
, gtk3
, gtk4
, mapnik
, qt5
}: }:
let let
@ -99,6 +105,11 @@ stdenv.mkDerivation {
''} ''}
''; '';
passthru.tests = {
inherit gimp gtk3 gtk4 mapnik;
inherit (qt5) qtbase;
};
meta = with lib; { meta = with lib; {
description = "An OpenType text shaping engine"; description = "An OpenType text shaping engine";
homepage = "https://harfbuzz.github.io/"; homepage = "https://harfbuzz.github.io/";

View file

@ -6,13 +6,13 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "intel-gmmlib"; pname = "intel-gmmlib";
version = "22.1.1"; version = "22.1.2";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "intel"; owner = "intel";
repo = "gmmlib"; repo = "gmmlib";
rev = "intel-gmmlib-${version}"; rev = "intel-gmmlib-${version}";
sha256 = "sha256-eU6ztYYcFPeADFBqmDFqyqVGlxdTV1N5pnIg6rjoALg="; sha256 = "sha256-5exS0B2iRbmFkKtoHzL4NnZ7L3DaukthUYkoj2tpZuE=";
}; };
nativeBuildInputs = [ cmake ]; nativeBuildInputs = [ cmake ];

View file

@ -6,6 +6,9 @@
# builds fine on windows, but libarchive has trouble linking windows # builds fine on windows, but libarchive has trouble linking windows
# things it depends on for some reason. # things it depends on for some reason.
xarSupport ? stdenv.hostPlatform.isUnix, xarSupport ? stdenv.hostPlatform.isUnix,
# for passthru.tests
cmake, nix, samba
}: }:
assert xarSupport -> libxml2 != null; assert xarSupport -> libxml2 != null;
@ -49,6 +52,10 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true; enableParallelBuilding = true;
passthru.tests = {
inherit cmake nix samba;
};
meta = { meta = {
description = "Multi-format archive and compression library"; description = "Multi-format archive and compression library";
longDescription = '' longDescription = ''

View file

@ -9,6 +9,16 @@
, libjpeg , libjpeg
, xz , xz
, zlib , zlib
# for passthru.tests
, libgeotiff
, python3Packages
, imagemagick
, graphicsmagick
, gdal
, openimageio
, freeimage
, imlib
}: }:
#FIXME: fix aarch64-darwin build and get rid of ./aarch64-darwin.nix #FIXME: fix aarch64-darwin build and get rid of ./aarch64-darwin.nix
@ -69,6 +79,11 @@ stdenv.mkDerivation rec {
doCheck = true; doCheck = true;
passthru.tests = {
inherit libgeotiff imagemagick graphicsmagick gdal openimageio freeimage imlib;
inherit (python3Packages) pillow imread;
};
meta = with lib; { meta = with lib; {
description = "Library and utilities for working with the TIFF image file format"; description = "Library and utilities for working with the TIFF image file format";
homepage = "https://libtiff.gitlab.io/libtiff"; homepage = "https://libtiff.gitlab.io/libtiff";

View file

@ -19,7 +19,7 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "malcontent"; pname = "malcontent";
version = "0.10.3"; version = "0.10.4";
outputs = [ "bin" "out" "lib" "pam" "dev" "man" "installedTests" ]; outputs = [ "bin" "out" "lib" "pam" "dev" "man" "installedTests" ];
@ -28,7 +28,7 @@ stdenv.mkDerivation rec {
owner = "pwithnall"; owner = "pwithnall";
repo = pname; repo = pname;
rev = version; rev = version;
sha256 = "sha256-SA4QyzV/aNUmyr9BYTsemx5x7S6WpxdTBK6zmVMkwh4="; sha256 = "sha256-s2wQLb3tCfO3p8yYG8Nc6pu+y2TLfrmo7Ug1LgDLEdw=";
}; };
patches = [ patches = [

View file

@ -1,10 +1,10 @@
{ lib, stdenv, fetchurl }: { lib, stdenv, fetchurl }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "matio"; pname = "matio";
version = "1.5.21"; version = "1.5.22";
src = fetchurl { src = fetchurl {
url = "mirror://sourceforge/matio/${pname}-${version}.tar.gz"; url = "mirror://sourceforge/matio/${pname}-${version}.tar.gz";
sha256 = "sha256-IYCRd+VYOefJTa2nRO5Vwd6n11fdqriWBXdtUBIvsGU="; sha256 = "sha256-gMPR4iLhFXaLV7feZAo30O58t6O9A52z6pQecfxSBMM=";
}; };
meta = with lib; { meta = with lib; {

View file

@ -0,0 +1,32 @@
{ lib
, stdenv
, fetchFromGitHub
, nix-update-script
, cmake
}:
stdenv.mkDerivation rec {
version = "2.5.0";
pname = "tinygltf";
src = fetchFromGitHub {
owner = "syoyo";
repo = "tinygltf";
rev = "v${version}";
sha256 = "sha256-Pw4iNJs0bKALVPFBYUJe5/WjHxdffungCKfJFJEpDas=";
};
nativeBuildInputs = [ cmake ];
passthru.updateScript = nix-update-script {
attrPath = pname;
};
meta = with lib; {
description = "Header only C++11 tiny glTF 2.0 library";
homepage = "https://github.com/syoyo/tinygltf";
license = licenses.mit;
maintainers = with maintainers; [ jansol ];
platforms = platforms.all;
};
}

View file

@ -61,7 +61,8 @@ stdenv.mkDerivation rec {
patchExecutable() { patchExecutable() {
patchInterpreter "$1" patchInterpreter "$1"
wrapProgram "$out/libexec/genymotion/$1" \ wrapProgram "$out/libexec/genymotion/$1" \
--set "LD_LIBRARY_PATH" "${libPath}" --set "LD_LIBRARY_PATH" "${libPath}" \
--unset "QML2_IMPORT_PATH"
} }
patchTool() { patchTool() {

View file

@ -6,13 +6,13 @@ buildDunePackage rec {
minimumOCamlVersion = "4.05"; minimumOCamlVersion = "4.05";
pname = "asn1-combinators"; pname = "asn1-combinators";
version = "0.2.5"; version = "0.2.6";
useDune2 = true; useDune2 = true;
src = fetchurl { src = fetchurl {
url = "https://github.com/mirleft/ocaml-asn1-combinators/releases/download/v${version}/asn1-combinators-v${version}.tbz"; url = "https://github.com/mirleft/ocaml-asn1-combinators/releases/download/v${version}/asn1-combinators-v${version}.tbz";
sha256 = "1pbcdwm12hnfpd1jv2b7cjfkj5r7h61xp2gr8dysb8waa455kwln"; sha256 = "sha256-ASreDYhp72IQY3UsHPjqAm9rxwL+0Q35r1ZojikbGpE=";
}; };
propagatedBuildInputs = [ cstruct zarith bigarray-compat stdlib-shims ptime ]; propagatedBuildInputs = [ cstruct zarith bigarray-compat stdlib-shims ptime ];

View file

@ -2,7 +2,7 @@
buildDunePackage rec { buildDunePackage rec {
pname = "bigarray-compat"; pname = "bigarray-compat";
version = "1.0.0"; version = "1.1.0";
useDune2 = true; useDune2 = true;
@ -12,7 +12,7 @@ buildDunePackage rec {
owner = "mirage"; owner = "mirage";
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
sha256 = "06j1dwlpisxshdd0nab4n4x266gg1s1n8na16lpgw3fvcznwnimz"; sha256 = "sha256-2JVopggK2JuXWEPu8qn12F1jQIJ9OV89XY1rHtUqLkI=";
}; };
meta = { meta = {

View file

@ -2,13 +2,13 @@
buildDunePackage rec { buildDunePackage rec {
pname = "bisect_ppx"; pname = "bisect_ppx";
version = "2.6.1"; version = "2.8.1";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "aantron"; owner = "aantron";
repo = "bisect_ppx"; repo = "bisect_ppx";
rev = version; rev = version;
sha256 = "sha256-YeLDlH3mUbVEY4OmzlrvSwVUav3uMtSsTFlOsQKnz84="; sha256 = "sha256-pOeeSxzUF1jXQjA71atSZALdgQ2NB9qpKo5iaDnPwhQ=";
}; };
minimumOCamlVersion = "4.08"; minimumOCamlVersion = "4.08";

View file

@ -4,11 +4,11 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "ocaml${ocaml.version}-bos"; pname = "ocaml${ocaml.version}-bos";
version = "0.2.0"; version = "0.2.1";
src = fetchurl { src = fetchurl {
url = "https://erratique.ch/software/bos/releases/bos-${version}.tbz"; url = "https://erratique.ch/software/bos/releases/bos-${version}.tbz";
sha256 = "1s10iqx8rgnxr5n93lf4blwirjf8nlm272yg5sipr7lsr35v49wc"; sha256 = "sha256-2NYueGsQ1pfgRXIFqO7eqifrzJDxhV8Y3xkMrC49jzc=";
}; };
nativeBuildInputs = [ ocaml findlib ocamlbuild topkg ]; nativeBuildInputs = [ ocaml findlib ocamlbuild topkg ];

View file

@ -1,25 +0,0 @@
{ lib, buildOcaml, fetchFromGitHub, type_conv, camlp4 }:
buildOcaml rec {
pname = "comparelib";
version = "113.00.00";
minimumSupportedOcamlVersion = "4.00";
src = fetchFromGitHub {
owner = "janestreet";
repo = "comparelib";
rev = version;
sha256 = "sha256-gtJvXAUxiIt/L9bCzS+8wHcCQ+QpBubwcjDcyN0K2MA=";
};
buildInputs = [ camlp4 ];
propagatedBuildInputs = [ type_conv ];
meta = with lib; {
homepage = "https://github.com/janestreet/comparelib";
description = "Syntax extension for deriving \"compare\" functions automatically";
license = licenses.asl20;
maintainers = [ maintainers.ericbmerritt ];
};
}

View file

@ -2,7 +2,7 @@
buildDunePackage rec { buildDunePackage rec {
pname = "directories"; pname = "directories";
version = "0.2"; version = "0.5";
useDune2 = true; useDune2 = true;
minimumOCamlVersion = "4.07"; minimumOCamlVersion = "4.07";
@ -11,7 +11,7 @@ buildDunePackage rec {
owner = "ocamlpro"; owner = "ocamlpro";
repo = pname; repo = pname;
rev = version; rev = version;
sha256 = "0s7ginh0g0fhw8xf9v58cx99a8q9jqsf4i0p134m5qzf84qpjwff"; sha256 = "sha256-31CGhmmfOORJ1ewgp+IU+p1+f2kfX/W+lxK7EGU62vc=";
}; };
meta = { meta = {

View file

@ -2,13 +2,13 @@
buildDunePackage rec { buildDunePackage rec {
pname = "duration"; pname = "duration";
version = "0.1.3"; version = "0.2.0";
useDune2 = true; useDune2 = true;
src = fetchurl { src = fetchurl {
url = "https://github.com/hannesm/duration/releases/download/${version}/duration-${version}.tbz"; url = "https://github.com/hannesm/duration/releases/download/${version}/duration-${version}.tbz";
sha256 = "0m9r0ayhpl98g9vdxrbjdcllns274jilic5v8xj1x7dphw21p95h"; sha256 = "sha256-rRT7daWm9z//fvFyEXiSXuVVzw8jsj46sykYS8DBzmk=";
}; };
doCheck = lib.versionAtLeast ocaml.version "4.05"; doCheck = lib.versionAtLeast ocaml.version "4.05";

View file

@ -1,31 +0,0 @@
{ stdenv, lib, fetchurl, ocaml, findlib, ocamlbuild, type_conv, camlp4 }:
assert lib.versionAtLeast (lib.getVersion ocaml) "4.00";
if lib.versionAtLeast ocaml.version "4.06"
then throw "enumerate-111.08.00 is not available for OCaml ${ocaml.version}"
else
stdenv.mkDerivation rec {
pname = "ocaml-enumerate";
version = "111.08.00";
src = fetchurl {
url = "https://ocaml.janestreet.com/ocaml-core/${lib.versions.majorMinor version}.00/individual/enumerate-${version}.tar.gz";
sha256 = "0b6mx5p01lcpimvak4wx6aj2119707wsfzd83rwgb91bhpgzh156";
};
nativeBuildInputs = [ ocaml findlib ocamlbuild ];
propagatedBuildInputs = [ type_conv camlp4 ];
strictDeps = true;
createFindlibDestdir = true;
meta = {
homepage = "https://ocaml.janestreet.com/";
description = "Quotation expanders for enumerating finite types";
license = lib.licenses.asl20;
platforms = ocaml.meta.platforms or [ ];
};
}

View file

@ -3,12 +3,12 @@
buildDunePackage rec { buildDunePackage rec {
minimumOCamlVersion = "4.03"; minimumOCamlVersion = "4.03";
pname = "eqaf"; pname = "eqaf";
version = "0.7"; version = "0.8";
useDune2 = true; useDune2 = true;
src = fetchurl { src = fetchurl {
url = "https://github.com/mirage/eqaf/releases/download/v${version}/eqaf-v${version}.tbz"; url = "https://github.com/mirage/eqaf/releases/download/v${version}/eqaf-v${version}.tbz";
sha256 = "1q09pwhs121vpficl2af1yzs4y7dd9bc1lcxbqyfc4x4m6p6drhh"; sha256 = "sha256-EUWhYBB0N9eUPgLkht9r0jPTk37BpZfX+jntuUcc+HU=";
}; };
propagatedBuildInputs = [ cstruct bigarray-compat ]; propagatedBuildInputs = [ cstruct bigarray-compat ];

View file

@ -4,7 +4,7 @@
buildDunePackage rec { buildDunePackage rec {
pname = "iter"; pname = "iter";
version = "1.3"; version = "1.4";
useDune2 = true; useDune2 = true;
@ -12,7 +12,7 @@ buildDunePackage rec {
owner = "c-cube"; owner = "c-cube";
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256:0xgkplpbi41sw0yv1wfd12cfbybls6cal8qxddmd9x8khgk5s3vx"; sha256 = "sha256-Kk92GM7IVXOSVBkeN6wj67Q3UGCyuOOVi2umpn1AZTo=";
}; };
buildInputs = [ dune-configurator ]; buildInputs = [ dune-configurator ];

View file

@ -3,7 +3,7 @@
buildDunePackage rec { buildDunePackage rec {
pname = "jingoo"; pname = "jingoo";
version = "1.4.2"; version = "1.4.4";
useDune2 = true; useDune2 = true;
@ -13,7 +13,7 @@ buildDunePackage rec {
owner = "tategakibunko"; owner = "tategakibunko";
repo = "jingoo"; repo = "jingoo";
rev = "v${version}"; rev = "v${version}";
sha256 = "0q947aik4i4z5wjllhwlkxh60qczwgra21yyrrzwhi9y5bnf8346"; sha256 = "sha256-qIw69OE7wYyZYKnIc9QrmF8MzY5Fg5pBFyIpexmaYxA=";
}; };
buildInputs = [ menhir ]; buildInputs = [ menhir ];

View file

@ -2,11 +2,11 @@
buildDunePackage rec { buildDunePackage rec {
pname = "magic-mime"; pname = "magic-mime";
version = "1.1.3"; version = "1.2.0";
src = fetchurl { src = fetchurl {
url = "https://github.com/mirage/ocaml-magic-mime/releases/download/v${version}/magic-mime-v${version}.tbz"; url = "https://github.com/mirage/ocaml-magic-mime/releases/download/v${version}/magic-mime-v${version}.tbz";
sha256 = "1xqjs8bba567yzrzgnr88j5ck97d36zw68zr9v29liya37k6rcvz"; sha256 = "sha256-8SG2dQD43Zfi/J/V0BxzJeTIS8XAI3RCd5+9b6IGlPU=";
}; };
minimalOCamlVersion = "4.03"; minimalOCamlVersion = "4.03";

View file

@ -2,7 +2,7 @@
buildDunePackage rec { buildDunePackage rec {
pname = "markup"; pname = "markup";
version = "1.0.0"; version = "1.0.2";
useDune2 = true; useDune2 = true;
@ -10,7 +10,7 @@ buildDunePackage rec {
owner = "aantron"; owner = "aantron";
repo = "markup.ml"; repo = "markup.ml";
rev = version; rev = version;
sha256 = "sha256-yapjqAcn0XSC6Guoj69sXNpLZ2urXANkWhcafpPLEyY="; sha256 = "sha256-FcN9EBap93gFeOwSrRxs2sQrjZGs8/YnaEX7zHLmeM8=";
}; };
propagatedBuildInputs = [ uchar uutf ]; propagatedBuildInputs = [ uchar uutf ];

View file

@ -5,14 +5,14 @@
buildDunePackage rec { buildDunePackage rec {
pname = "mimic"; pname = "mimic";
version = "0.0.3"; version = "0.0.4";
minimumOCamlVersion = "4.08"; minimumOCamlVersion = "4.08";
useDune2 = true; useDune2 = true;
src = fetchurl { src = fetchurl {
url = "https://github.com/dinosaure/mimic/releases/download/${version}/mimic-${version}.tbz"; url = "https://github.com/dinosaure/mimic/releases/download/${version}/mimic-${version}.tbz";
sha256 = "e4743cd2e4f8242eb1ce9d8086fd2affba0eb6a62131309ffa279108bd3dbbcb"; sha256 = "sha256-1Wb2xufgGKp3FJ+FYjK45i9B5+HohdPX+w9Sw0ph5JY=";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [

View file

@ -2,14 +2,14 @@
buildDunePackage rec { buildDunePackage rec {
pname = "mirage-flow"; pname = "mirage-flow";
version = "2.0.1"; version = "3.0.0";
useDune2 = true; useDune2 = true;
minimumOCamlVersion = "4.05"; minimumOCamlVersion = "4.05";
src = fetchurl { src = fetchurl {
url = "https://github.com/mirage/mirage-flow/releases/download/v${version}/mirage-flow-v${version}.tbz"; url = "https://github.com/mirage/mirage-flow/releases/download/v${version}/mirage-flow-v${version}.tbz";
sha256 = "13v05x34six0z6bc2is8qhvbxk4knxh80ardi5x4rl738vlq3mn9"; sha256 = "sha256-1wvabIXsJ0e+2IvE2V8mnSgQUDuSkT8IB75SkWlhOPw=";
}; };
propagatedBuildInputs = [ cstruct fmt ocaml_lwt ]; propagatedBuildInputs = [ cstruct fmt ocaml_lwt ];

View file

@ -4,13 +4,13 @@
buildDunePackage rec { buildDunePackage rec {
pname = "mirage-fs"; pname = "mirage-fs";
version = "3.0.1"; version = "4.0.0";
useDune2 = true; useDune2 = true;
src = fetchurl { src = fetchurl {
url = "https://github.com/mirage/mirage-fs/releases/download/v${version}/mirage-fs-v${version}.tbz"; url = "https://github.com/mirage/mirage-fs/releases/download/v${version}/mirage-fs-v${version}.tbz";
sha256 = "0px18bgk528vr7iw78r0j3z4sdcz684sfcj47ibbly2adbvd64yk"; sha256 = "sha256-PYZ2HCPuxOv4FU7EHymsa1oIZU7q8TSzzRvlngYdZ3s=";
}; };
propagatedBuildInputs = [ cstruct fmt lwt mirage-device mirage-kv ]; propagatedBuildInputs = [ cstruct fmt lwt mirage-device mirage-kv ];

View file

@ -4,13 +4,13 @@ buildDunePackage rec {
minimumOCamlVersion = "4.06"; minimumOCamlVersion = "4.06";
pname = "mirage-time"; pname = "mirage-time";
version = "2.0.1"; version = "3.0.0";
useDune2 = true; useDune2 = true;
src = fetchurl { src = fetchurl {
url = "https://github.com/mirage/mirage-time/releases/download/v${version}/mirage-time-v${version}.tbz"; url = "https://github.com/mirage/mirage-time/releases/download/v${version}/mirage-time-v${version}.tbz";
sha256 = "1w6mm4g7fc19cs0ncs0s9fsnb1k1s04qqzs9bsqvq8ngsb90cbh0"; sha256 = "sha256-DUCUm1jix+i3YszIzgZjRQRiM8jJXQ49F6JC/yicvXw=";
}; };
propagatedBuildInputs = [ ocaml_lwt ]; propagatedBuildInputs = [ ocaml_lwt ];

View file

@ -1,14 +1,14 @@
{ lib, buildDunePackage, fetchFromGitHub, cppo }: { lib, buildDunePackage, fetchFromGitHub, cppo }:
buildDunePackage rec { buildDunePackage rec {
version = "1.1"; version = "1.2";
pname = "ocplib-endian"; pname = "ocplib-endian";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "OCamlPro"; owner = "OCamlPro";
repo = "ocplib-endian"; repo = "ocplib-endian";
rev = version; rev = version;
sha256 = "sha256-zKsSkhlZBXSqPtw+/WN3pwo9plM9rDZfMbGVfosqb10="; sha256 = "sha256-THTlhOfXAPaqTt1qBkht+D67bw6M175QLvXoUMgjks4=";
}; };
useDune2 = true; useDune2 = true;

Some files were not shown because too many files have changed in this diff Show more