Merge remote-tracking branch 'origin/master' into staging-next

This commit is contained in:
K900 2024-01-09 22:42:37 +03:00
commit 838aefefc3
210 changed files with 7814 additions and 1179 deletions

View file

@ -563,6 +563,12 @@
githubId = 732652; githubId = 732652;
name = "Andreas Herrmann"; name = "Andreas Herrmann";
}; };
ahirner = {
email = "a.hirner+nixpkgs@gmail.com";
github = "ahirner";
githubId = 6055037;
name = "Alexander Hirner";
};
ahoneybun = { ahoneybun = {
email = "aaron@system76.com"; email = "aaron@system76.com";
github = "ahoneybun"; github = "ahoneybun";
@ -19114,6 +19120,12 @@
github = "uakci"; github = "uakci";
githubId = 6961268; githubId = 6961268;
}; };
uartman = {
name = "Anton Gusev";
email = "uartman@mail.ru";
github = "UARTman";
githubId = 21099202;
};
udono = { udono = {
email = "udono@virtual-things.biz"; email = "udono@virtual-things.biz";
github = "udono"; github = "udono";
@ -19606,7 +19618,15 @@
githubId = 13259982; githubId = 13259982;
name = "Vanessa McHale"; name = "Vanessa McHale";
}; };
vncsb = {
email = "viniciusbernardino1@hotmail.com";
github = "vncsb";
githubId = 19562240;
name = "Vinicius Bernardino";
keys = [{
fingerprint = "F0D3 920C 722A 541F 0CCD 66E3 A7BA BA05 3D78 E7CA";
}];
};
voidless = { voidless = {
email = "julius.schmitt@yahoo.de"; email = "julius.schmitt@yahoo.de";
github = "voidIess"; github = "voidIess";

View file

@ -47,6 +47,8 @@ The pre-existing [services.ankisyncd](#opt-services.ankisyncd.enable) has been m
<!-- To avoid merge conflicts, consider adding your item at an arbitrary place in the list instead. --> <!-- To avoid merge conflicts, consider adding your item at an arbitrary place in the list instead. -->
- `himalaya` was updated to v1.0.0-beta, which introduces breaking changes. Check out the [release note](https://github.com/soywod/himalaya/releases/tag/v1.0.0-beta) for details.
- The `power.ups` module now generates `upsd.conf`, `upsd.users` and `upsmon.conf` automatically from a set of new configuration options. This breaks compatibility with existing `power.ups` setups where these files were created manually. Back up these files before upgrading NixOS. - The `power.ups` module now generates `upsd.conf`, `upsd.users` and `upsmon.conf` automatically from a set of new configuration options. This breaks compatibility with existing `power.ups` setups where these files were created manually. Back up these files before upgrading NixOS.
- `k9s` was updated to v0.30. There have been various breaking changes in the config file format, - `k9s` was updated to v0.30. There have been various breaking changes in the config file format,

View file

@ -35,6 +35,7 @@ with lib;
# dep of graphviz, libXpm is optional for Xpm support # dep of graphviz, libXpm is optional for Xpm support
gd = super.gd.override { withXorg = false; }; gd = super.gd.override { withXorg = false; };
ghostscript = super.ghostscript.override { cupsSupport = false; x11Support = false; }; ghostscript = super.ghostscript.override { cupsSupport = false; x11Support = false; };
gjs = super.gjs.overrideAttrs { doCheck = false; installTests = false; }; # avoid test dependency on gtk3
gobject-introspection = super.gobject-introspection.override { x11Support = false; }; gobject-introspection = super.gobject-introspection.override { x11Support = false; };
gpsd = super.gpsd.override { guiSupport = false; }; gpsd = super.gpsd.override { guiSupport = false; };
graphviz = super.graphviz-nox; graphviz = super.graphviz-nox;

View file

@ -273,6 +273,7 @@
./programs/virt-manager.nix ./programs/virt-manager.nix
./programs/wavemon.nix ./programs/wavemon.nix
./programs/wayland/cardboard.nix ./programs/wayland/cardboard.nix
./programs/wayland/labwc.nix
./programs/wayland/river.nix ./programs/wayland/river.nix
./programs/wayland/sway.nix ./programs/wayland/sway.nix
./programs/wayland/waybar.nix ./programs/wayland/waybar.nix

View file

@ -0,0 +1,25 @@
{ config, lib, pkgs, ... }:
let
cfg = config.programs.labwc;
in
{
meta.maintainers = with lib.maintainers; [ AndersonTorres ];
options.programs.labwc = {
enable = lib.mkEnableOption (lib.mdDoc "labwc");
package = lib.mkPackageOption pkgs "labwc" { };
};
config = lib.mkIf cfg.enable (lib.mkMerge [
{
environment.systemPackages = [ cfg.package ];
xdg.portal.config.wlroots.default = lib.mkDefault [ "wlr" "gtk" ];
# To make a labwc session available for certain DMs like SDDM
services.xserver.displayManager.sessionPackages = [ cfg.package ];
}
(import ./wayland-session.nix { inherit lib pkgs; })
]);
}

View file

@ -864,6 +864,7 @@ in {
systemd-misc = handleTest ./systemd-misc.nix {}; systemd-misc = handleTest ./systemd-misc.nix {};
systemd-userdbd = handleTest ./systemd-userdbd.nix {}; systemd-userdbd = handleTest ./systemd-userdbd.nix {};
systemd-homed = handleTest ./systemd-homed.nix {}; systemd-homed = handleTest ./systemd-homed.nix {};
systemtap = handleTest ./systemtap.nix {};
tandoor-recipes = handleTest ./tandoor-recipes.nix {}; tandoor-recipes = handleTest ./tandoor-recipes.nix {};
tang = handleTest ./tang.nix {}; tang = handleTest ./tang.nix {};
taskserver = handleTest ./taskserver.nix {}; taskserver = handleTest ./taskserver.nix {};

View file

@ -21,7 +21,7 @@ import ./make-test-python.nix ({ lib, ... }: {
} }
]; ];
}; };
services.paperless.extraConfig = { services.paperless.settings = {
PAPERLESS_DBHOST = "/run/postgresql"; PAPERLESS_DBHOST = "/run/postgresql";
}; };
}; };

50
nixos/tests/systemtap.nix Normal file
View file

@ -0,0 +1,50 @@
{ system ? builtins.currentSystem
, config ? { }
, pkgs ? import ../.. { inherit system config; }
}@args:
with pkgs.lib;
let
stapScript = pkgs.writeText "test.stp" ''
probe kernel.function("do_sys_poll") {
println("kernel function probe & println work")
exit()
}
'';
## TODO shared infra with ../kernel-generic.nix
testsForLinuxPackages = linuxPackages: (import ./make-test-python.nix ({ pkgs, ... }: {
name = "kernel-${linuxPackages.kernel.version}";
meta = with pkgs.lib.maintainers; {
maintainers = [ bendlas ];
};
nodes.machine = { ... }:
{
boot.kernelPackages = linuxPackages;
programs.systemtap.enable = true;
};
testScript =
''
with subtest("Capture stap ouput"):
output = machine.succeed("stap ${stapScript} 2>&1")
with subtest("Ensure that expected output from stap script is there"):
assert "kernel function probe & println work\n" == output, "kernel function probe & println work\n != " + output
'';
}) args);
## TODO shared infra with ../kernel-generic.nix
kernels = {
inherit (pkgs.linuxKernel.packageAliases) linux_default linux_latest;
};
in mapAttrs (_: lP: testsForLinuxPackages lP) kernels // {
passthru = {
inherit testsForLinuxPackages;
testsForKernel = kernel: testsForLinuxPackages (pkgs.linuxPackagesFor kernel);
};
}

View file

@ -23,13 +23,13 @@ with lib.strings;
let let
version = "2.69.3"; version = "2.70.3";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "grame-cncm"; owner = "grame-cncm";
repo = "faust"; repo = "faust";
rev = version; rev = version;
sha256 = "sha256-V2oDP17omIU9Waz5zrOyEHnWrVIfdDRM4KxHb01eyd8="; sha256 = "sha256-z6fW/T7wJZxugmvABlpvyMXvR4WkmC16INOKyyfKx8k=";
fetchSubmodules = true; fetchSubmodules = true;
}; };

View file

@ -6,6 +6,7 @@
, fetchgit , fetchgit
, runCommand , runCommand
, gn , gn
, neovim
, ninja , ninja
, makeWrapper , makeWrapper
, pkg-config , pkg-config
@ -67,11 +68,7 @@ rustPlatform.buildRustPackage.override { stdenv = clangStdenv; } rec {
removeReferencesTo removeReferencesTo
] ++ lib.optionals stdenv.isDarwin [ xcbuild ]; ] ++ lib.optionals stdenv.isDarwin [ xcbuild ];
# All tests passes but at the end cargo prints for unknown reason: nativeCheckInputs = [ neovim ];
# error: test failed, to rerun pass '--bin neovide'
# Increasing the loglevel did not help. In a nix-shell environment
# the failure do not occure.
doCheck = false;
buildInputs = [ buildInputs = [
SDL2 SDL2
@ -81,6 +78,11 @@ rustPlatform.buildRustPackage.override { stdenv = clangStdenv; } rec {
darwin.apple_sdk.frameworks.AppKit darwin.apple_sdk.frameworks.AppKit
]; ];
env = lib.optionalAttrs stdenv.isDarwin {
# Work around https://github.com/NixOS/nixpkgs/issues/166205
NIX_LDFLAGS = "-l${stdenv.cc.libcxx.cxxabi.libName}";
};
postFixup = let postFixup = let
libPath = lib.makeLibraryPath ([ libPath = lib.makeLibraryPath ([
libglvnd libglvnd
@ -117,6 +119,5 @@ rustPlatform.buildRustPackage.override { stdenv = clangStdenv; } rec {
license = with licenses; [ mit ]; license = with licenses; [ mit ];
maintainers = with maintainers; [ ck3d multisn8 ]; maintainers = with maintainers; [ ck3d multisn8 ];
platforms = platforms.all; platforms = platforms.all;
badPlatforms = platforms.darwin;
}; };
} }

View file

@ -14,13 +14,13 @@
buildDotnetModule rec { buildDotnetModule rec {
pname = "denaro"; pname = "denaro";
version = "2023.11.0"; version = "2024.1.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "NickvisionApps"; owner = "NickvisionApps";
repo = "Denaro"; repo = "Denaro";
rev = version; rev = version;
hash = "sha256-buMoB6ZTmzGjjSCOfdUvKbJ7xJmK/zHH8sz5iO3SJXo="; hash = "sha256-1LGcJmNucLmP5JbtZcLGuIE0UTmeUxLl9j31Oe0k93s=";
}; };
dotnet-sdk = dotnetCorePackages.sdk_8_0; dotnet-sdk = dotnetCorePackages.sdk_8_0;

View file

@ -3,7 +3,7 @@
{ fetchNuGet }: [ { fetchNuGet }: [
(fetchNuGet { pname = "Ace4896.DBus.Services.Secrets"; version = "1.2.0"; sha256 = "1i1rwv8z2dx0mjib7vair2w7ylngmrcpbd012sdlpvdjpx0af0bn"; }) (fetchNuGet { pname = "Ace4896.DBus.Services.Secrets"; version = "1.2.0"; sha256 = "1i1rwv8z2dx0mjib7vair2w7ylngmrcpbd012sdlpvdjpx0af0bn"; })
(fetchNuGet { pname = "Cake.Tool"; version = "3.2.0"; sha256 = "0jvf3r0rr15q650182c3y6a4c21k84rzl2f0nida878j6fhmk6v7"; }) (fetchNuGet { pname = "Cake.Tool"; version = "4.0.0"; sha256 = "11vc5fimi6w465081sqxs4zhw7grr6v8ga7nl1mscdl43wv33ql2"; })
(fetchNuGet { pname = "Docnet.Core"; version = "2.6.0"; sha256 = "1b1nj984ly4zgj28fri1a6ych9sdiacxkms8pvzsclvyxkf0ri8m"; }) (fetchNuGet { pname = "Docnet.Core"; version = "2.6.0"; sha256 = "1b1nj984ly4zgj28fri1a6ych9sdiacxkms8pvzsclvyxkf0ri8m"; })
(fetchNuGet { pname = "FuzzySharp"; version = "2.0.2"; sha256 = "1xq3q4s9d5p1yn4j91a90hawk9wcrz1bl6zj9866y01yx9aamr8s"; }) (fetchNuGet { pname = "FuzzySharp"; version = "2.0.2"; sha256 = "1xq3q4s9d5p1yn4j91a90hawk9wcrz1bl6zj9866y01yx9aamr8s"; })
(fetchNuGet { pname = "GetText.NET"; version = "1.9.14"; sha256 = "18z4cf0dldcf41z8xgj3gdlvj9w5a9ikgj72623r0i740ndnl094"; }) (fetchNuGet { pname = "GetText.NET"; version = "1.9.14"; sha256 = "18z4cf0dldcf41z8xgj3gdlvj9w5a9ikgj72623r0i740ndnl094"; })
@ -36,11 +36,11 @@
(fetchNuGet { pname = "Microsoft.Win32.Primitives"; version = "4.3.0"; sha256 = "0j0c1wj4ndj21zsgivsc24whiya605603kxrbiw6wkfdync464wq"; }) (fetchNuGet { pname = "Microsoft.Win32.Primitives"; version = "4.3.0"; sha256 = "0j0c1wj4ndj21zsgivsc24whiya605603kxrbiw6wkfdync464wq"; })
(fetchNuGet { pname = "Microsoft.Win32.SystemEvents"; version = "8.0.0"; sha256 = "05392f41ijgn17y8pbjcx535l1k09krnq3xdp60kyq568sn6xk2i"; }) (fetchNuGet { pname = "Microsoft.Win32.SystemEvents"; version = "8.0.0"; sha256 = "05392f41ijgn17y8pbjcx535l1k09krnq3xdp60kyq568sn6xk2i"; })
(fetchNuGet { pname = "NETStandard.Library"; version = "1.6.1"; sha256 = "1z70wvsx2d847a2cjfii7b83pjfs34q05gb037fdjikv5kbagml8"; }) (fetchNuGet { pname = "NETStandard.Library"; version = "1.6.1"; sha256 = "1z70wvsx2d847a2cjfii7b83pjfs34q05gb037fdjikv5kbagml8"; })
(fetchNuGet { pname = "Nickvision.Aura"; version = "2023.11.3"; sha256 = "06g63k1p8maskg8hicjbi00fyyxh95fkykvv205p9vr0803bjqrd"; }) (fetchNuGet { pname = "Nickvision.Aura"; version = "2023.11.4"; sha256 = "0gasyglp1pgi0s6zqzmbm603j3j36vvr68grv6g93fdj2vjlmkxs"; })
(fetchNuGet { pname = "Octokit"; version = "9.0.0"; sha256 = "0kw49w1hxk4d2x9598012z9q1yr3ml5rm06fy1jnmhy44s3d3jp5"; }) (fetchNuGet { pname = "Octokit"; version = "9.0.0"; sha256 = "0kw49w1hxk4d2x9598012z9q1yr3ml5rm06fy1jnmhy44s3d3jp5"; })
(fetchNuGet { pname = "OfxSharp.NetStandard"; version = "1.0.0"; sha256 = "1v7yw2glyywb4s0y5fw306bzh2vw175bswrhi5crvd92wf93makj"; }) (fetchNuGet { pname = "OfxSharp.NetStandard"; version = "1.0.0"; sha256 = "1v7yw2glyywb4s0y5fw306bzh2vw175bswrhi5crvd92wf93makj"; })
(fetchNuGet { pname = "PdfSharpCore"; version = "1.3.62"; sha256 = "1wxm642fx0pgiidd5x35iifayq7nicykycpwpvs0814xfjm0zw63"; }) (fetchNuGet { pname = "PdfSharpCore"; version = "1.3.62"; sha256 = "1wxm642fx0pgiidd5x35iifayq7nicykycpwpvs0814xfjm0zw63"; })
(fetchNuGet { pname = "QuestPDF"; version = "2023.10.2"; sha256 = "08jy42k8nxbkbdc2z013vk28r5ckmg7lpzvnah0shrjmwfq34v4j"; }) (fetchNuGet { pname = "QuestPDF"; version = "2023.12.2"; sha256 = "16h6k15h5wxccyrsakkpn3jsk7fcgs1pfidisg772k78hizvagdf"; })
(fetchNuGet { pname = "ReadSharp.Ports.SgmlReader.Core"; version = "1.0.0"; sha256 = "0pcvlh0gq513vw6y12lfn90a0br56a6f26lvppcj4qb839zmh3id"; }) (fetchNuGet { pname = "ReadSharp.Ports.SgmlReader.Core"; version = "1.0.0"; sha256 = "0pcvlh0gq513vw6y12lfn90a0br56a6f26lvppcj4qb839zmh3id"; })
(fetchNuGet { pname = "runtime.debian.8-x64.runtime.native.System.Security.Cryptography.OpenSsl"; version = "4.3.0"; sha256 = "16rnxzpk5dpbbl1x354yrlsbvwylrq456xzpsha1n9y3glnhyx9d"; }) (fetchNuGet { pname = "runtime.debian.8-x64.runtime.native.System.Security.Cryptography.OpenSsl"; version = "4.3.0"; sha256 = "16rnxzpk5dpbbl1x354yrlsbvwylrq456xzpsha1n9y3glnhyx9d"; })
(fetchNuGet { pname = "runtime.fedora.23-x64.runtime.native.System.Security.Cryptography.OpenSsl"; version = "4.3.0"; sha256 = "0hkg03sgm2wyq8nqk6dbm9jh5vcq57ry42lkqdmfklrw89lsmr59"; }) (fetchNuGet { pname = "runtime.fedora.23-x64.runtime.native.System.Security.Cryptography.OpenSsl"; version = "4.3.0"; sha256 = "0hkg03sgm2wyq8nqk6dbm9jh5vcq57ry42lkqdmfklrw89lsmr59"; })
@ -60,16 +60,20 @@
(fetchNuGet { pname = "runtime.ubuntu.16.10-x64.runtime.native.System.Security.Cryptography.OpenSsl"; version = "4.3.0"; sha256 = "1p4dgxax6p7rlgj4q73k73rslcnz4wdcv8q2flg1s8ygwcm58ld5"; }) (fetchNuGet { pname = "runtime.ubuntu.16.10-x64.runtime.native.System.Security.Cryptography.OpenSsl"; version = "4.3.0"; sha256 = "1p4dgxax6p7rlgj4q73k73rslcnz4wdcv8q2flg1s8ygwcm58ld5"; })
(fetchNuGet { pname = "SharpZipLib"; version = "1.3.3"; sha256 = "1gij11wfj1mqm10631cjpnhzw882bnzx699jzwhdqakxm1610q8x"; }) (fetchNuGet { pname = "SharpZipLib"; version = "1.3.3"; sha256 = "1gij11wfj1mqm10631cjpnhzw882bnzx699jzwhdqakxm1610q8x"; })
(fetchNuGet { pname = "SixLabors.Fonts"; version = "1.0.0-beta17"; sha256 = "1qm8q82wzj54nbv63kx3ybln51k47sl18hia3jnzk1zrb6wdsw9a"; }) (fetchNuGet { pname = "SixLabors.Fonts"; version = "1.0.0-beta17"; sha256 = "1qm8q82wzj54nbv63kx3ybln51k47sl18hia3jnzk1zrb6wdsw9a"; })
(fetchNuGet { pname = "SixLabors.ImageSharp"; version = "3.0.2"; sha256 = "1r654m3ga9al9q4qjr1104rp6lk7j9blmf4j0104zq8893hhq727"; }) (fetchNuGet { pname = "SixLabors.ImageSharp"; version = "3.1.2"; sha256 = "0bc0753aczgw9mi9bcgly2x71w4adlr35krgf023vppc36809yhg"; })
(fetchNuGet { pname = "SkiaSharp"; version = "2.88.6"; sha256 = "0xs11zjw9ha68maw3l825kfwlrid43qwy0mswljxhpjh0y1k6k6b"; }) (fetchNuGet { pname = "SkiaSharp"; version = "2.88.6"; sha256 = "0xs11zjw9ha68maw3l825kfwlrid43qwy0mswljxhpjh0y1k6k6b"; })
(fetchNuGet { pname = "SkiaSharp.HarfBuzz"; version = "2.88.6"; sha256 = "1h61vk9ibavwwrxqgclzsxmchighvfaqlcqrj0dpi2fzw57f54c2"; }) (fetchNuGet { pname = "SkiaSharp.HarfBuzz"; version = "2.88.6"; sha256 = "1h61vk9ibavwwrxqgclzsxmchighvfaqlcqrj0dpi2fzw57f54c2"; })
(fetchNuGet { pname = "SkiaSharp.NativeAssets.Linux"; version = "2.88.6"; sha256 = "0cg38xgddww1y93xrnbfn40sin63yl39j5zm7gm5pdgp5si0cf2n"; }) (fetchNuGet { pname = "SkiaSharp.NativeAssets.Linux"; version = "2.88.6"; sha256 = "0cg38xgddww1y93xrnbfn40sin63yl39j5zm7gm5pdgp5si0cf2n"; })
(fetchNuGet { pname = "SkiaSharp.NativeAssets.macOS"; version = "2.88.6"; sha256 = "1fp9h8c8k6sbsh48b69dc6461isd4dajq7yw5i7j6fhkas78q4zf"; }) (fetchNuGet { pname = "SkiaSharp.NativeAssets.macOS"; version = "2.88.6"; sha256 = "1fp9h8c8k6sbsh48b69dc6461isd4dajq7yw5i7j6fhkas78q4zf"; })
(fetchNuGet { pname = "SkiaSharp.NativeAssets.Win32"; version = "2.88.6"; sha256 = "1w2mwcwkqvrg4x4ybc4674xnkqwh1n2ihg520gqgpnqfc11ghc4n"; }) (fetchNuGet { pname = "SkiaSharp.NativeAssets.Win32"; version = "2.88.6"; sha256 = "1w2mwcwkqvrg4x4ybc4674xnkqwh1n2ihg520gqgpnqfc11ghc4n"; })
(fetchNuGet { pname = "SQLitePCLRaw.bundle_e_sqlcipher"; version = "2.1.6"; sha256 = "15v2x7y4k7cl47a9jccbvgbwngwi5dz6qhv0cxpcasx4v5i9aila"; }) (fetchNuGet { pname = "SQLitePCLRaw.bundle_e_sqlcipher"; version = "2.1.6"; sha256 = "15v2x7y4k7cl47a9jccbvgbwngwi5dz6qhv0cxpcasx4v5i9aila"; })
(fetchNuGet { pname = "SQLitePCLRaw.bundle_e_sqlcipher"; version = "2.1.7"; sha256 = "18s6b6im9rwhnilsznbgvhily40sb5rc4p9z02nqn0ahncb2i52w"; })
(fetchNuGet { pname = "SQLitePCLRaw.core"; version = "2.1.6"; sha256 = "1w8zsgz2w2q0a9cw9cl1rzrpv48a04nhyq67ywan6xlgknds65a7"; }) (fetchNuGet { pname = "SQLitePCLRaw.core"; version = "2.1.6"; sha256 = "1w8zsgz2w2q0a9cw9cl1rzrpv48a04nhyq67ywan6xlgknds65a7"; })
(fetchNuGet { pname = "SQLitePCLRaw.core"; version = "2.1.7"; sha256 = "1y3jl4c76g2i13xss72nfvx5qr6mzsbjvjc5f9arybh53a0wavd6"; })
(fetchNuGet { pname = "SQLitePCLRaw.lib.e_sqlcipher"; version = "2.1.6"; sha256 = "0dl5an15whs4yl5hm2wibzbfigzck0flah8a07k99y1bhbmv080z"; }) (fetchNuGet { pname = "SQLitePCLRaw.lib.e_sqlcipher"; version = "2.1.6"; sha256 = "0dl5an15whs4yl5hm2wibzbfigzck0flah8a07k99y1bhbmv080z"; })
(fetchNuGet { pname = "SQLitePCLRaw.lib.e_sqlcipher"; version = "2.1.7"; sha256 = "0wgxqw1nc9asxxj04l8qfjgkshnlp92c3clx7ymjf43jr3g4pxs0"; })
(fetchNuGet { pname = "SQLitePCLRaw.provider.e_sqlcipher"; version = "2.1.6"; sha256 = "1jx8d4dq5w2951b7w722gnxbfgdklwazc48kcbdzylkglwkrqgrq"; }) (fetchNuGet { pname = "SQLitePCLRaw.provider.e_sqlcipher"; version = "2.1.6"; sha256 = "1jx8d4dq5w2951b7w722gnxbfgdklwazc48kcbdzylkglwkrqgrq"; })
(fetchNuGet { pname = "SQLitePCLRaw.provider.e_sqlcipher"; version = "2.1.7"; sha256 = "1paj54r7552vpjzdj8mv4gdxshbd10xyc8fa6qs12pspa58wivjn"; })
(fetchNuGet { pname = "System.AppContext"; version = "4.3.0"; sha256 = "1649qvy3dar900z3g817h17nl8jp4ka5vcfmsr05kh0fshn7j3ya"; }) (fetchNuGet { pname = "System.AppContext"; version = "4.3.0"; sha256 = "1649qvy3dar900z3g817h17nl8jp4ka5vcfmsr05kh0fshn7j3ya"; })
(fetchNuGet { pname = "System.Buffers"; version = "4.3.0"; sha256 = "0fgns20ispwrfqll4q1zc1waqcmylb3zc50ys9x8zlwxh9pmd9jy"; }) (fetchNuGet { pname = "System.Buffers"; version = "4.3.0"; sha256 = "0fgns20ispwrfqll4q1zc1waqcmylb3zc50ys9x8zlwxh9pmd9jy"; })
(fetchNuGet { pname = "System.Collections"; version = "4.3.0"; sha256 = "19r4y64dqyrq6k4706dnyhhw7fs24kpp3awak7whzss39dakpxk9"; }) (fetchNuGet { pname = "System.Collections"; version = "4.3.0"; sha256 = "19r4y64dqyrq6k4706dnyhhw7fs24kpp3awak7whzss39dakpxk9"; })

View file

@ -69,7 +69,7 @@ stdenv.mkDerivation rec {
homepage = "https://gitlab.com/postmarketOS/megapixels"; homepage = "https://gitlab.com/postmarketOS/megapixels";
changelog = "https://gitlab.com/postmarketOS/megapixels/-/tags/${version}"; changelog = "https://gitlab.com/postmarketOS/megapixels/-/tags/${version}";
license = licenses.gpl3Only; license = licenses.gpl3Only;
maintainers = with maintainers; [ OPNA2608 dotlambda ]; maintainers = with maintainers; [ dotlambda ];
platforms = platforms.linux; platforms = platforms.linux;
}; };
} }

View file

@ -1,14 +1,14 @@
{ lib, fetchFromGitHub, makeDesktopItem, bambu-studio }: { lib, fetchFromGitHub, makeDesktopItem, bambu-studio }:
let let
orca-slicer = bambu-studio.overrideAttrs (finalAttrs: previousAttrs: { orca-slicer = bambu-studio.overrideAttrs (finalAttrs: previousAttrs: {
version = "1.8.1"; version = "1.9.0";
pname = "orca-slicer"; pname = "orca-slicer";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "SoftFever"; owner = "SoftFever";
repo = "OrcaSlicer"; repo = "OrcaSlicer";
rev = "v${finalAttrs.version}"; rev = "v${finalAttrs.version}";
hash = "sha256-3aIVi7Wsit4vpFrGdqe7DUEC6HieWAXCdAADVtB5HKc="; hash = "sha256-v6REKDlFhyW6kEEfpcm8Sjezkh6uLaBusMuVk8n3Ts0=";
}; };
meta = with lib; { meta = with lib; {

View file

@ -26,13 +26,13 @@
mkDerivation rec { mkDerivation rec {
pname = "input-leap"; pname = "input-leap";
version = "unstable-2023-05-24"; version = "unstable-2023-12-27";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "input-leap"; owner = "input-leap";
repo = "input-leap"; repo = "input-leap";
rev = "5e2f37bf9ec17627ae33558d99f90b7608ace422"; rev = "ecf1fb6645af7b79e6ea984d3c9698ca0ab6f391";
hash = "sha256-55RqdRu/Hi2OTiLjAFJ6Gdgg9iO5NIIJCsOkUQjR9hk="; hash = "sha256-TEv1xR1wUG3wXNATLLIZKOtW05X96wsPNOlE77OQK54=";
fetchSubmodules = true; fetchSubmodules = true;
}; };
@ -55,7 +55,7 @@ mkDerivation rec {
''; '';
postFixup = '' postFixup = ''
substituteInPlace $out/share/applications/input-leap.desktop \ substituteInPlace $out/share/applications/io.github.input_leap.InputLeap.desktop \
--replace "Exec=input-leap" "Exec=$out/bin/input-leap" --replace "Exec=input-leap" "Exec=$out/bin/input-leap"
''; '';

View file

@ -25,13 +25,13 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "minder"; pname = "minder";
version = "1.15.6"; version = "1.16.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "phase1geo"; owner = "phase1geo";
repo = pname; repo = pname;
rev = version; rev = version;
sha256 = "sha256-vxUZo68QdeuFlQxLldWplmeGtyX2NHo3AJZmt+JLCF4="; sha256 = "sha256-1yFRwVjHLgjDxflFoSmB5254J7dRJ4Ymv3fAWZxb9is=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [

File diff suppressed because it is too large Load diff

View file

@ -12,20 +12,17 @@
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "owmods-cli"; pname = "owmods-cli";
version = "0.11.3"; version = "0.12.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "ow-mods"; owner = "ow-mods";
repo = "ow-mod-man"; repo = "ow-mod-man";
rev = "cli_v${version}"; rev = "cli_v${version}";
hash = "sha256-CobGF3ZQEdRRoMGL9l37alGQArIuRxiFbihQoRdnAsc="; hash = "sha256-k9Jn8LiqDyVmtjKnmpoVePNW2x5UyFfcXAPyvEgUaCU=";
}; };
cargoLock = { cargoLock = {
lockFile = ./Cargo.lock; lockFile = ./Cargo.lock;
outputHashes = {
"tauri-plugin-window-state-0.1.0" = "sha256-M6uGcf4UWAU+494wAK/r2ta1c3IZ07iaURLwJJR9F3U=";
};
}; };
nativeBuildInputs = [ nativeBuildInputs = [

View file

@ -1,60 +1,80 @@
{ lib { lib
, stdenv , stdenv
, fetchFromGitHub , fetchFromGitHub
, jdk
, ant , ant
, jdk
, makeWrapper , makeWrapper
, wrapGAppsHook
, makeDesktopItem , makeDesktopItem
, copyDesktopItems , copyDesktopItems
, glib , canonicalize-jars-hook
, wrapGAppsHook
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation (finalAttrs: {
pname = "pattypan"; pname = "pattypan";
version = "22.03"; version = "22.03";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "yarl"; owner = "yarl";
repo = "pattypan"; repo = "pattypan";
rev = "v${version}"; rev = "v${finalAttrs.version}";
sha256 = "0qmvlcqhqw5k500v2xdakk340ymgv5amhbfqxib5s4db1w32pi60"; hash = "sha256-wMQrBg+rEV1W7NgtWFXZr3pAxpyqdbEBKLNwDDGju2I=";
}; };
nativeBuildInputs = [ copyDesktopItems jdk ant makeWrapper wrapGAppsHook ]; nativeBuildInputs = [
buildInputs = [ glib jdk ]; ant
jdk
makeWrapper
wrapGAppsHook
copyDesktopItems
canonicalize-jars-hook
];
dontWrapGApps = true;
env.JAVA_TOOL_OPTIONS = "-Dfile.encoding=UTF8"; # needed for jdk versions below jdk19
buildPhase = '' buildPhase = ''
runHook preBuild runHook preBuild
export JAVA_TOOL_OPTIONS="-Dfile.encoding=UTF8"
ant ant
runHook postBuild runHook postBuild
''; '';
installPhase = '' installPhase = ''
runHook preInstall runHook preInstall
mkdir -p $out/bin $out/share/java install -Dm644 pattypan.jar -t $out/share/pattypan
cp pattypan.jar $out/share/java/pattypan.jar install -Dm644 src/pattypan/resources/logo.png $out/share/pixmaps/pattypan.png
makeWrapper ${jdk}/bin/java $out/bin/pattypan \
--add-flags "-cp $out/share/java/pattypan.jar pattypan.Launcher"
runHook postInstall runHook postInstall
''; '';
# gappsWrapperArgs is set in preFixup
postFixup = ''
makeWrapper ${jdk}/bin/java $out/bin/pattypan \
''${gappsWrapperArgs[@]} \
--add-flags "-jar $out/share/pattypan/pattypan.jar"
'';
desktopItems = [ desktopItems = [
(makeDesktopItem { (makeDesktopItem {
name = "pattypan";
exec = "pattypan";
icon = "pattypan";
desktopName = "Pattypan"; desktopName = "Pattypan";
genericName = "An uploader for Wikimedia Commons"; genericName = "An uploader for Wikimedia Commons";
categories = [ "Utility" ]; categories = [ "Utility" ];
exec = "pattypan";
name = "pattypan";
}) })
]; ];
meta = with lib; { meta = with lib; {
homepage = "https://commons.wikimedia.org/wiki/Commons:Pattypan";
description = "An uploader for Wikimedia Commons"; description = "An uploader for Wikimedia Commons";
homepage = "https://commons.wikimedia.org/wiki/Commons:Pattypan";
license = licenses.mit; license = licenses.mit;
platforms = [ "x86_64-linux" ]; mainProgram = "pattypan";
maintainers = with maintainers; [ fee1-dead ]; maintainers = with maintainers; [ fee1-dead ];
platforms = platforms.all;
sourceProvenance = with sourceTypes; [
fromSource
binaryBytecode # source bundles dependencies as jars
];
}; };
} })

View file

@ -2,37 +2,53 @@
, rustPlatform , rustPlatform
, fetchFromGitHub , fetchFromGitHub
, stdenv , stdenv
, pkg-config
, installShellFiles , installShellFiles
, installShellCompletions ? stdenv.hostPlatform == stdenv.buildPlatform , installShellCompletions ? stdenv.hostPlatform == stdenv.buildPlatform
, installManPages ? stdenv.hostPlatform == stdenv.buildPlatform , installManPages ? stdenv.hostPlatform == stdenv.buildPlatform
, notmuch , notmuch
, withImapBackend ? true , gpgme
, withNotmuchBackend ? false , withMaildir ? true
, withSmtpSender ? true , withImap ? true
, withNotmuch ? false
, withSendmail ? true
, withSmtp ? true
, withPgpCommands ? false
, withPgpGpg ? false
, withPgpNative ? false
}: }:
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "himalaya"; pname = "himalaya";
version = "0.8.4"; version = "1.0.0-beta";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "soywod"; owner = "soywod";
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
hash = "sha256-AImLYRRCL6IvoSeMFH2mbkNOvUmLwIvhWB3cOoqDljk="; hash = "sha256-39XYtxmo/12hkCS7zVIQi3UbLzaIKH1OwfdDB/ghU98=";
}; };
cargoSha256 = "deJZPaZW6rb7A6wOL3vcphBXu0F7EXc1xRwSDY/v8l4="; cargoSha256 = "HIDmBPrcOcK2coTaD4v8ntIZrv2SwTa8vUTG8Ky4RhM=";
nativeBuildInputs = lib.optional (installManPages || installShellCompletions) installShellFiles; nativeBuildInputs = [ ]
++ lib.optional withPgpGpg pkg-config
++ lib.optional (installManPages || installShellCompletions) installShellFiles;
buildInputs = lib.optional withNotmuchBackend notmuch; buildInputs = [ ]
++ lib.optional withNotmuch notmuch
++ lib.optional withPgpGpg gpgme;
buildNoDefaultFeatures = true; buildNoDefaultFeatures = true;
buildFeatures = [ ] buildFeatures = [ ]
++ lib.optional withImapBackend "imap-backend" ++ lib.optional withMaildir "maildir"
++ lib.optional withNotmuchBackend "notmuch-backend" ++ lib.optional withImap "imap"
++ lib.optional withSmtpSender "smtp-sender"; ++ lib.optional withNotmuch "notmuch"
++ lib.optional withSmtp "smtp"
++ lib.optional withSendmail "sendmail"
++ lib.optional withPgpCommands "pgp-commands"
++ lib.optional withPgpGpg "pgp-gpg"
++ lib.optional withPgpNative "pgp-native";
postInstall = lib.optionalString installManPages '' postInstall = lib.optionalString installManPages ''
mkdir -p $out/man mkdir -p $out/man
@ -46,8 +62,8 @@ rustPlatform.buildRustPackage rec {
''; '';
meta = with lib; { meta = with lib; {
description = "CLI to manage your emails."; description = "CLI to manage emails";
homepage = "https://pimalaya.org/himalaya/"; homepage = "https://pimalaya.org/himalaya/cli/latest/";
changelog = "https://github.com/soywod/himalaya/blob/v${version}/CHANGELOG.md"; changelog = "https://github.com/soywod/himalaya/blob/v${version}/CHANGELOG.md";
license = licenses.mit; license = licenses.mit;
maintainers = with maintainers; [ soywod toastal yanganto ]; maintainers = with maintainers; [ soywod toastal yanganto ];

View file

@ -1,25 +0,0 @@
{ lib, stdenv, fetchurl, fetchpatch, ncurses, zlib, bzip2, sqlite, pkg-config
, glib, gnutls, perl, libmaxminddb }:
stdenv.mkDerivation rec {
pname = "ncdc";
version = "1.23.1";
src = fetchurl {
url = "https://dev.yorhel.nl/download/ncdc-${version}.tar.gz";
hash = "sha256-lYgSFAd6Wzwk+7rwIK2g0ITuO1lqfDzB4OaKqsTJteY=";
};
nativeBuildInputs = [ perl pkg-config ];
buildInputs = [ ncurses zlib bzip2 sqlite glib gnutls libmaxminddb ];
configureFlags = [ "--with-geoip" ];
meta = with lib; {
description = "Modern and lightweight direct connect client with a friendly ncurses interface";
homepage = "https://dev.yorhel.nl/ncdc";
license = licenses.mit;
platforms = platforms.linux; # arbitrary
maintainers = with maintainers; [ ehmry ];
};
}

View file

@ -15,13 +15,13 @@
stdenv.mkDerivation (finalAttrs: { stdenv.mkDerivation (finalAttrs: {
pname = "tremotesf"; pname = "tremotesf";
version = "2.5.0"; version = "2.6.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "equeim"; owner = "equeim";
repo = "tremotesf2"; repo = "tremotesf2";
rev = finalAttrs.version; rev = finalAttrs.version;
hash = "sha256-mxk2BRUuet3XSNaKt2Dnnxe5dliazd1ArRSnKyoAp1s="; hash = "sha256-9iV4UsKZWaIxhqtRZXTFHgjOKVFJE2bCJOD2O/qL+DY=";
# We need this for src/libtremotesf # We need this for src/libtremotesf
fetchSubmodules = true; fetchSubmodules = true;
}; };

View file

@ -27,11 +27,11 @@ let
in in
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "PortfolioPerformance"; pname = "PortfolioPerformance";
version = "0.67.0"; version = "0.67.1";
src = fetchurl { src = fetchurl {
url = "https://github.com/buchen/portfolio/releases/download/${version}/PortfolioPerformance-${version}-linux.gtk.x86_64.tar.gz"; url = "https://github.com/buchen/portfolio/releases/download/${version}/PortfolioPerformance-${version}-linux.gtk.x86_64.tar.gz";
hash = "sha256-bm38t8wgLEYZVDsMnOv3Wj6TgKu2s36wo8q0Sj7pPNI="; hash = "sha256-Bx1Q7eXJuu/Vh6UuZYlkUlvw6FXTObYAynHV+60cNVY=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [

View file

@ -8,13 +8,13 @@
stdenvNoCC.mkDerivation rec { stdenvNoCC.mkDerivation rec {
pname = "cloudlog"; pname = "cloudlog";
version = "2.5.2"; version = "2.6.2";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "magicbug"; owner = "magicbug";
repo = "Cloudlog"; repo = "Cloudlog";
rev = version; rev = version;
hash = "sha256-0l4/isk2DKZ0HBxeuUN+RqB3o/3fWdhFSFCnQ2OiO6Y="; hash = "sha256-1V3btXYozgT22KiihZgUiZIktV2Y7IXJgoq7bn16ikk=";
}; };
postPatch = '' postPatch = ''

View file

@ -1,5 +1,5 @@
{ lib, stdenv, fetchFromGitHub, cmake, fftw, hamlib, libpulseaudio, libGL, libX11, liquid-dsp, { lib, stdenv, fetchFromGitHub, fetchpatch, cmake, fftw, hamlib, libpulseaudio, libGL, libX11,
pkg-config, soapysdr-with-plugins, wxGTK32, enableDigitalLab ? false, liquid-dsp, pkg-config, soapysdr-with-plugins, wxGTK32, enableDigitalLab ? false,
Cocoa, WebKit }: Cocoa, WebKit }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
@ -13,6 +13,14 @@ stdenv.mkDerivation rec {
sha256 = "0cyv1vk97x4i3h3hhh7dx8mv6d1ad0fypdbx5fl26bz661sr8j2n"; sha256 = "0cyv1vk97x4i3h3hhh7dx8mv6d1ad0fypdbx5fl26bz661sr8j2n";
}; };
patches = [
# Fix for liquid-dsp v1.50
(fetchpatch {
url = "https://github.com/cjcliffe/CubicSDR/commit/0e3a785bd2af56d18ff06b56579197b3e89b34ab.patch";
sha256 = "sha256-mPfNZcV3FnEtGVX4sCMSs+Qc3VeSBIRkpCyx24TKkcU=";
})
];
nativeBuildInputs = [ cmake pkg-config ]; nativeBuildInputs = [ cmake pkg-config ];
buildInputs = [ fftw hamlib liquid-dsp soapysdr-with-plugins wxGTK32 ] buildInputs = [ fftw hamlib liquid-dsp soapysdr-with-plugins wxGTK32 ]

View file

@ -38,13 +38,11 @@
then "rocm" then "rocm"
else "none" else "none"
) )
# gpuVersion needs to be set for both CUDA as well as ROCM hardware.
# gpuArch is only required for the ROCM stack.
# Change to a value suitable for your target GPU. # Change to a value suitable for your target GPU.
# For AMD values see https://github.com/cp2k/cp2k/blob/master/INSTALL.md#2v-rocmhip-support-for-amd-gpu # For AMD values see https://github.com/cp2k/cp2k/blob/master/INSTALL.md#2v-rocmhip-support-for-amd-gpu
# and for Nvidia see https://github.com/cp2k/cp2k/blob/master/INSTALL.md#2i-cuda-optional-improved-performance-on-gpu-systems # and for Nvidia see https://github.com/cp2k/cp2k/blob/master/INSTALL.md#2i-cuda-optional-improved-performance-on-gpu-systems
, gpuVersion ? "Mi100" , gpuVersion ? ( if gpuBackend == "cuda" then "A100" else "Mi100" )
, gpuArch ? "gfx908" , gpuArch ? ( if gpuBackend == "cuda" then "sm_80" else "gfx908" )
}: }:
assert builtins.elem gpuBackend [ "none" "cuda" "rocm" ]; assert builtins.elem gpuBackend [ "none" "cuda" "rocm" ];
@ -66,7 +64,9 @@ stdenv.mkDerivation rec {
fetchSubmodules = true; fetchSubmodules = true;
}; };
nativeBuildInputs = [ python3 which openssh makeWrapper pkg-config ]; nativeBuildInputs = [ python3 which openssh makeWrapper pkg-config ]
++ lib.optional (gpuBackend == "cuda") cudaPackages.cuda_nvcc;
buildInputs = [ buildInputs = [
gfortran gfortran
fftw fftw
@ -88,8 +88,11 @@ stdenv.mkDerivation rec {
libvdwxc libvdwxc
] ]
++ lib.optional enableElpa elpa ++ lib.optional enableElpa elpa
++ lib.optional (gpuBackend == "cuda") cudaPackages.cudatoolkit ++ lib.optionals (gpuBackend == "cuda") [
++ lib.optional (gpuBackend == "rocm") [ cudaPackages.cuda_cudart
cudaPackages.libcublas
cudaPackages.cuda_nvrtc
] ++ lib.optionals (gpuBackend == "rocm") [
rocmPackages.clr rocmPackages.clr
rocmPackages.rocm-core rocmPackages.rocm-core
rocmPackages.hipblas rocmPackages.hipblas
@ -126,7 +129,7 @@ stdenv.mkDerivation rec {
AR = ar -r AR = ar -r
${lib.strings.optionalString (gpuBackend == "cuda") '' ${lib.strings.optionalString (gpuBackend == "cuda") ''
OFFLOAD_CC = nvcc OFFLOAD_CC = nvcc
OFFLOAD_FLAGS = -O3 -g -w --std=c++11 OFFLOAD_FLAGS = -O3 -g -w --std=c++11 -arch ${gpuArch}
OFFLOAD_TARGET = cuda OFFLOAD_TARGET = cuda
GPUVER = ${gpuVersion} GPUVER = ${gpuVersion}
CXX = mpicxx CXX = mpicxx
@ -144,7 +147,7 @@ stdenv.mkDerivation rec {
-D__MPI_VERSION=3 -D__F2008 -D__LIBXSMM -D__SPGLIB \ -D__MPI_VERSION=3 -D__F2008 -D__LIBXSMM -D__SPGLIB \
-D__MAX_CONTR=4 -D__LIBVORI ${lib.optionalString enableElpa "-D__ELPA"} \ -D__MAX_CONTR=4 -D__LIBVORI ${lib.optionalString enableElpa "-D__ELPA"} \
-D__PLUMED2 -D__HDF5 -D__GSL -D__SIRIUS -D__LIBVDWXC -D__SPFFT -D__SPLA \ -D__PLUMED2 -D__HDF5 -D__GSL -D__SIRIUS -D__LIBVDWXC -D__SPFFT -D__SPLA \
${lib.strings.optionalString (gpuBackend == "cuda") "-D__OFFLOAD_CUDA -D__DBCSR_ACC"} \ ${lib.strings.optionalString (gpuBackend == "cuda") "-D__OFFLOAD_CUDA -D__ACC -D__DBCSR_ACC -D__NO_OFFLOAD_PW"} \
${lib.strings.optionalString (gpuBackend == "rocm") "-D__OFFLOAD_HIP -D__DBCSR_ACC -D__NO_OFFLOAD_PW"} ${lib.strings.optionalString (gpuBackend == "rocm") "-D__OFFLOAD_HIP -D__DBCSR_ACC -D__NO_OFFLOAD_PW"}
CFLAGS = -fopenmp -I${lib.getDev hdf5-fortran}/include -I${lib.getDev gsl}/include CFLAGS = -fopenmp -I${lib.getDev hdf5-fortran}/include -I${lib.getDev gsl}/include
FCFLAGS = \$(DFLAGS) -O2 -ffree-form -ffree-line-length-none \ FCFLAGS = \$(DFLAGS) -O2 -ffree-form -ffree-line-length-none \
@ -163,7 +166,11 @@ stdenv.mkDerivation rec {
-fopenmp ${lib.optionalString enableElpa "$(pkg-config --libs elpa)"} \ -fopenmp ${lib.optionalString enableElpa "$(pkg-config --libs elpa)"} \
-lz -ldl ${lib.optionalString (mpi.pname == "openmpi") "$(mpicxx --showme:link)"} \ -lz -ldl ${lib.optionalString (mpi.pname == "openmpi") "$(mpicxx --showme:link)"} \
-lplumed -lhdf5_fortran -lhdf5_hl -lhdf5 -lgsl -lsirius -lspla -lspfft -lvdwxc \ -lplumed -lhdf5_fortran -lhdf5_hl -lhdf5 -lgsl -lsirius -lspla -lspfft -lvdwxc \
${lib.strings.optionalString (gpuBackend == "cuda") "-lcudart -lnvrtc -lcuda -lcublas"} \ ${lib.strings.optionalString (gpuBackend == "cuda") ''
-L${cudaPackages.cuda_cudart}/lib/stubs/ \
-lcudart -lnvrtc -lcuda -lcublas
''
} \
${lib.strings.optionalString (gpuBackend == "rocm") "-lamdhip64 -lhipfft -lhipblas -lrocblas"} ${lib.strings.optionalString (gpuBackend == "rocm") "-lamdhip64 -lhipfft -lhipblas -lrocblas"}
LDFLAGS = \$(FCFLAGS) \$(LIBS) LDFLAGS = \$(FCFLAGS) \$(LIBS)
include ${plumed}/lib/plumed/src/lib/Plumed.inc include ${plumed}/lib/plumed/src/lib/Plumed.inc

View file

@ -43,6 +43,7 @@
, valgrind , valgrind
, stable , stable
, testing
, baseName , baseName
, kicadSrc , kicadSrc
, kicadVersion , kicadVersion
@ -56,6 +57,8 @@
assert lib.assertMsg (!(sanitizeAddress && sanitizeThreads)) assert lib.assertMsg (!(sanitizeAddress && sanitizeThreads))
"'sanitizeAddress' and 'sanitizeThreads' are mutually exclusive, use one."; "'sanitizeAddress' and 'sanitizeThreads' are mutually exclusive, use one.";
assert testing -> !stable
-> throw "testing implies stable and cannot be used with stable = false";
let let
inherit (lib) optional optionals optionalString; inherit (lib) optional optionals optionalString;
@ -74,9 +77,9 @@ stdenv.mkDerivation rec {
]; ];
# tagged releases don't have "unknown" # tagged releases don't have "unknown"
# kicad nightlies use git describe --dirty # kicad testing and nightlies use git describe --dirty
# nix removes .git, so its approximated here # nix removes .git, so its approximated here
postPatch = lib.optionalString (!stable) '' postPatch = lib.optionalString (!stable || testing) ''
substituteInPlace cmake/KiCadVersion.cmake \ substituteInPlace cmake/KiCadVersion.cmake \
--replace "unknown" "${builtins.substring 0 10 src.rev}" --replace "unknown" "${builtins.substring 0 10 src.rev}"
@ -92,7 +95,7 @@ stdenv.mkDerivation rec {
] ]
++ optionals (stable) [ ++ optionals (stable) [
# https://gitlab.com/kicad/code/kicad/-/issues/12491 # https://gitlab.com/kicad/code/kicad/-/issues/12491
# should be resolved in the next release # should be resolved in the next major? release
"-DCMAKE_CTEST_ARGUMENTS='--exclude-regex;qa_eeschema'" "-DCMAKE_CTEST_ARGUMENTS='--exclude-regex;qa_eeschema'"
] ]
++ optional (stable && !withNgspice) "-DKICAD_SPICE=OFF" ++ optional (stable && !withNgspice) "-DKICAD_SPICE=OFF"

View file

@ -2,22 +2,26 @@
, runCommand , runCommand
, newScope , newScope
, fetchFromGitLab , fetchFromGitLab
, gnome
, dconf
, wxGTK32
, gtk3
, makeWrapper , makeWrapper
, gsettings-desktop-schemas , symlinkJoin
, hicolor-icon-theme
, callPackage , callPackage
, callPackages , callPackages
, gnome
, dconf
, gtk3
, wxGTK32
, librsvg , librsvg
, cups , cups
, gsettings-desktop-schemas
, hicolor-icon-theme
, unzip , unzip
, jq , jq
, pname ? "kicad" , pname ? "kicad"
, stable ? true , stable ? true
, testing ? false
, withNgspice ? !stdenv.isDarwin , withNgspice ? !stdenv.isDarwin
, libngspice , libngspice
, withScripting ? true , withScripting ? true
@ -29,7 +33,6 @@
, with3d ? true , with3d ? true
, withI18n ? true , withI18n ? true
, srcs ? { } , srcs ? { }
, symlinkJoin
}: }:
# `addons`: https://dev-docs.kicad.org/en/addons/ # `addons`: https://dev-docs.kicad.org/en/addons/
@ -75,7 +78,9 @@
# } # }
let let
baseName = if (stable) then "kicad" else "kicad-unstable"; baseName = if (testing) then "kicad-testing"
else if (stable) then "kicad"
else "kicad-unstable";
versionsImport = import ./versions.nix; versionsImport = import ./versions.nix;
# versions.nix does not provide us with version, src and rev. We # versions.nix does not provide us with version, src and rev. We
@ -154,7 +159,7 @@ stdenv.mkDerivation rec {
passthru.libraries = callPackages ./libraries.nix { inherit libSrc; }; passthru.libraries = callPackages ./libraries.nix { inherit libSrc; };
passthru.callPackage = newScope { inherit addonPath python3; }; passthru.callPackage = newScope { inherit addonPath python3; };
base = callPackage ./base.nix { base = callPackage ./base.nix {
inherit stable baseName; inherit stable testing baseName;
inherit kicadSrc kicadVersion; inherit kicadSrc kicadVersion;
inherit wxGTK python wxPython; inherit wxGTK python wxPython;
inherit withNgspice withScripting withI18n; inherit withNgspice withScripting withI18n;
@ -262,17 +267,16 @@ stdenv.mkDerivation rec {
ln -s ${base}/share/metainfo $out/share/metainfo ln -s ${base}/share/metainfo $out/share/metainfo
''; '';
# can't run this for each pname passthru.updateScript = {
# stable and unstable are in the same versions.nix command = [ ./update.sh "${pname}" ];
# and kicad-small reuses stable supportedFeatures = [ "commit" ];
# with "all" it updates both, run it manually if you don't want that };
# and can't git commit if this could be running in parallel with other scripts
passthru.updateScript = [ ./update.sh "all" ];
meta = rec { meta = rec {
description = (if (stable) description = (if (stable)
then "Open Source Electronics Design Automation suite" then "Open Source Electronics Design Automation suite"
else "Open Source EDA suite, development build") else if (testing) then "Open Source EDA suite, latest on stable branch"
else "Open Source EDA suite, latest on master branch")
+ (lib.optionalString (!with3d) ", without 3D models"); + (lib.optionalString (!with3d) ", without 3D models");
homepage = "https://www.kicad.org/"; homepage = "https://www.kicad.org/";
longDescription = '' longDescription = ''

View file

@ -1,5 +1,5 @@
#!/usr/bin/env nix-shell #!/usr/bin/env nix-shell
#!nix-shell -i bash -p coreutils git nix curl #!nix-shell -i bash -p coreutils git nix curl jq
# shellcheck shell=bash enable=all # shellcheck shell=bash enable=all
set -e set -e
@ -25,38 +25,63 @@ export TMPDIR=/tmp
# if there is, default to commiting? # if there is, default to commiting?
# won't work when running in parallel? # won't work when running in parallel?
# remove items left in /nix/store? # remove items left in /nix/store?
# reuse hashes of already checked revs (to avoid redownloading testing's packages3d)
# nixpkgs' update.nix passes in UPDATE_NIX_PNAME to indicate which package is being updated
# assigning a default value to that as shellcheck doesn't like the use of unassigned variables
: "${UPDATE_NIX_PNAME:=""}"
# update.nix can also parse JSON output of this script to formulate a commit
# this requires we collect the version string in the old versions.nix for the updated package
old_version=""
new_version=""
# get the latest tag that isn't an RC or *.99 # get the latest tag that isn't an RC or *.99
latest_tags="$(git ls-remote --tags --sort -version:refname https://gitlab.com/kicad/code/kicad.git)" latest_tags="$(git ls-remote --tags --sort -version:refname https://gitlab.com/kicad/code/kicad.git)"
# using a scratch variable to ensure command failures get caught (SC2312) # using a scratch variable to ensure command failures get caught (SC2312)
scratch="$(grep -o 'refs/tags/[0-9]*\.[0-9]*\.[0-9]*$' <<< "${latest_tags}")" scratch="$(grep -o 'refs/tags/[0-9]*\.[0-9]*\.[0-9]*$' <<< "${latest_tags}")"
scratch="$(grep -ve '\.99' -e '\.9\.9' <<< "${scratch}")" scratch="$(grep -ve '\.99' -e '\.9\.9' <<< "${scratch}")"
scratch="$(head -n 1 <<< "${scratch}")" scratch="$(sed -n '1p' <<< "${scratch}")"
latest_tag="$(cut -d '/' -f 3 <<< "${scratch}")" latest_tag="$(cut -d '/' -f 3 <<< "${scratch}")"
all_versions=( "${latest_tag}" master ) # get the latest branch name for testing
branches="$(git ls-remote --heads --sort -version:refname https://gitlab.com/kicad/code/kicad.git)"
scratch="$(grep -o 'refs/heads/[0-9]*\.[0-9]*$' <<< "${branches}")"
scratch="$(sed -n '1p' <<< "${scratch}")"
testing_branch="$(cut -d '/' -f 3 <<< "${scratch}")"
# "latest_tag" and "master" directly refer to what we want
# "testing" uses "testing_branch" found above
all_versions=( "${latest_tag}" testing master )
prefetch="nix-prefetch-url --unpack --quiet" prefetch="nix-prefetch-url --unpack --quiet"
clean="" clean=""
check_stable="" check_stable=""
check_testing=1
check_unstable=1 check_unstable=1
commit="" commit=""
for arg in "$@"; do for arg in "$@" "${UPDATE_NIX_PNAME}"; do
case "${arg}" in case "${arg}" in
help|-h|--help) echo "Read me!" >&2; exit 1; ;; help|-h|--help) echo "Read me!" >&2; exit 1; ;;
kicad|release|tag|stable|*small|5*|6*) check_stable=1; check_unstable="" ;; kicad|kicad-small|release|tag|stable|5*|6*|7*|8*) check_stable=1; check_testing=""; check_unstable="" ;;
all|both|full) check_stable=1; check_unstable=1 ;; *testing|kicad-testing-small) check_testing=1; check_unstable="" ;;
*unstable|*unstable-small|master|main) check_unstable=1; check_testing="" ;;
latest|now|today) check_unstable=1; check_testing=1 ;;
all|both|full) check_stable=1; check_testing=1; check_unstable=1 ;;
clean|fix|*fuck) check_stable=1; check_testing=1; check_unstable=1; clean=1 ;;
commit) commit=1 ;; commit) commit=1 ;;
clean|fix|*fuck) check_stable=1; check_unstable=1; clean=1 ;;
master|*unstable|latest|now|today) check_unstable=1 ;;
*) ;; *) ;;
esac esac
done done
here="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" here="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
now=$(date --iso-8601 --utc) commit_date() {
gitlab_json="$(curl -s https://gitlab.com/api/v4/projects/kicad%2Fcode%2Fkicad/repository/commits/"$1")"
commit_created="$(jq .created_at --raw-output <<< "${gitlab_json}")"
date --date="${commit_created}" --iso-8601 --utc
}
file="${here}/versions.nix" file="${here}/versions.nix"
# just in case this runs in parallel # just in case this runs in parallel
@ -65,11 +90,7 @@ tmp="${here}/,versions.nix.${RANDOM}"
libs=( symbols templates footprints packages3d ) libs=( symbols templates footprints packages3d )
get_rev() { get_rev() {
if [[ ${version} == "master" ]]; then git ls-remote "$@"
git ls-remote --heads "$@"
else
git ls-remote --tags "$@"
fi
} }
gitlab="https://gitlab.com/kicad" gitlab="https://gitlab.com/kicad"
@ -78,13 +99,14 @@ src_pre="https://gitlab.com/api/v4/projects/kicad%2Fcode%2Fkicad/repository/arch
lib_pre="https://gitlab.com/api/v4/projects/kicad%2Flibraries%2Fkicad-" lib_pre="https://gitlab.com/api/v4/projects/kicad%2Flibraries%2Fkicad-"
lib_mid="/repository/archive.tar.gz?sha=" lib_mid="/repository/archive.tar.gz?sha="
# number of items updated
count=0 count=0
printf "Latest tag is\t%s\n" "${latest_tag}" >&2 printf "Latest tag is %s\n" "${latest_tag}" >&2
if [[ ! -f ${file} ]]; then if [[ ! -f ${file} ]]; then
echo "No existing file, generating from scratch" >&2 echo "No existing file, generating from scratch" >&2
check_stable=1; check_unstable=1; clean=1 check_stable=1; check_testing=1; check_unstable=1; clean=1
fi fi
printf "Writing %s\n" "${tmp}" >&2 printf "Writing %s\n" "${tmp}" >&2
@ -97,32 +119,58 @@ printf "{\n"
for version in "${all_versions[@]}"; do for version in "${all_versions[@]}"; do
src_version=${version};
lib_version=${version};
# testing is the stable branch on the main repo
# but the libraries don't have such a branch
# only the latest release tag and a master branch
if [[ ${version} == "testing" ]]; then
src_version=${testing_branch};
lib_version=${latest_tag};
fi
if [[ ${version} == "master" ]]; then if [[ ${version} == "master" ]]; then
pname="kicad-unstable" pname="kicad-unstable"
today="${now}" elif [[ ${version} == "testing" ]]; then
pname="kicad-testing"
else else
pname="kicad" pname="kicad"
today="${version}"
fi fi
# skip a version if we don't want to check it # skip a version if we don't want to check it
if [[ (${version} != "master" && -n ${check_stable}) \ if [[ (-n ${check_stable} && ${version} != "master" && ${version} != "testing") \
|| (${version} == "master" && -n ${check_unstable}) ]]; then || (-n ${check_testing} && ${version} == "testing") \
|| (-n ${check_unstable} && ${version} == "master" ) ]]; then
now=$(commit_date "${src_version}")
if [[ ${version} == "master" ]]; then
pname="kicad-unstable"
new_version="${now}"
elif [[ ${version} == "testing" ]]; then
pname="kicad-testing"
new_version="${testing_branch}-${now}"
else
pname="kicad"
new_version="${version}"
fi
printf "\nChecking %s\n" "${pname}" >&2 printf "\nChecking %s\n" "${pname}" >&2
printf "%2s\"%s\" = {\n" "" "${pname}" printf "%2s\"%s\" = {\n" "" "${pname}"
printf "%4skicadVersion = {\n" "" printf "%4skicadVersion = {\n" ""
printf "%6sversion =\t\t\t\"%s\";\n" "" "${today}" printf "%6sversion =\t\t\t\"%s\";\n" "" "${new_version}"
printf "%6ssrc = {\n" "" printf "%6ssrc = {\n" ""
echo "Checking src" >&2 echo "Checking src" >&2
scratch="$(get_rev "${gitlab}"/code/kicad.git "${version}")" scratch="$(get_rev "${gitlab}"/code/kicad.git "${src_version}")"
src_rev="$(cut -f1 <<< "${scratch}")" src_rev="$(cut -f1 <<< "${scratch}")"
has_rev="$(grep -sm 1 "\"${pname}\"" -A 4 "${file}" | grep -sm 1 "${src_rev}" || true)" has_rev="$(grep -sm 1 "\"${pname}\"" -A 4 "${file}" | grep -sm 1 "${src_rev}" || true)"
has_hash="$(grep -sm 1 "\"${pname}\"" -A 5 "${file}" | grep -sm 1 "sha256" || true)" has_hash="$(grep -sm 1 "\"${pname}\"" -A 5 "${file}" | grep -sm 1 "sha256" || true)"
old_version="$(grep -sm 1 "\"${pname}\"" -A 3 "${file}" | grep -sm 1 "version" | awk -F "\"" '{print $2}' || true)"
if [[ -n ${has_rev} && -n ${has_hash} && -z ${clean} ]]; then if [[ -n ${has_rev} && -n ${has_hash} && -z ${clean} ]]; then
echo "Reusing old ${pname}.src.sha256, already latest .rev" >&2 echo "Reusing old ${pname}.src.sha256, already latest .rev at ${old_version}" >&2
scratch=$(grep -sm 1 "\"${pname}\"" -A 5 "${file}") scratch=$(grep -sm 1 "\"${pname}\"" -A 5 "${file}")
grep -sm 1 "rev" -A 1 <<< "${scratch}" grep -sm 1 "rev" -A 1 <<< "${scratch}"
else else
@ -135,19 +183,19 @@ for version in "${all_versions[@]}"; do
printf "%4s};\n" "" printf "%4s};\n" ""
printf "%4slibVersion = {\n" "" printf "%4slibVersion = {\n" ""
printf "%6sversion =\t\t\t\"%s\";\n" "" "${today}" printf "%6sversion =\t\t\t\"%s\";\n" "" "${new_version}"
printf "%6slibSources = {\n" "" printf "%6slibSources = {\n" ""
for lib in "${libs[@]}"; do for lib in "${libs[@]}"; do
echo "Checking ${lib}" >&2 echo "Checking ${lib}" >&2
url="${gitlab}/libraries/kicad-${lib}.git" url="${gitlab}/libraries/kicad-${lib}.git"
scratch="$(get_rev "${url}" "${version}")" scratch="$(get_rev "${url}" "${lib_version}")"
scratch="$(cut -f1 <<< "${scratch}")" scratch="$(cut -f1 <<< "${scratch}")"
lib_rev="$(tail -n1 <<< "${scratch}")" lib_rev="$(tail -n1 <<< "${scratch}")"
has_rev="$(grep -sm 1 "\"${pname}\"" -A 19 "${file}" | grep -sm 1 "${lib_rev}" || true)" has_rev="$(grep -sm 1 "\"${pname}\"" -A 19 "${file}" | grep -sm 1 "${lib_rev}" || true)"
has_hash="$(grep -sm 1 "\"${pname}\"" -A 20 "${file}" | grep -sm 1 "${lib}.sha256" || true)" has_hash="$(grep -sm 1 "\"${pname}\"" -A 20 "${file}" | grep -sm 1 "${lib}.sha256" || true)"
if [[ -n ${has_rev} && -n ${has_hash} && -z ${clean} ]]; then if [[ -n ${has_rev} && -n ${has_hash} && -z ${clean} ]]; then
echo "Reusing old kicad-${lib}-${today}.src.sha256, already latest .rev" >&2 echo "Reusing old kicad-${lib}-${new_version}.src.sha256, already latest .rev" >&2
scratch="$(grep -sm 1 "\"${pname}\"" -A 20 "${file}")" scratch="$(grep -sm 1 "\"${pname}\"" -A 20 "${file}")"
grep -sm 1 "${lib}" -A 1 <<< "${scratch}" grep -sm 1 "${lib}" -A 1 <<< "${scratch}"
else else
@ -191,3 +239,22 @@ if [[ ${count} -gt 0 ]]; then
else else
echo "No changes, those checked are up to date" >&2 echo "No changes, those checked are up to date" >&2
fi fi
# using UPDATE_NIX_ATTR_PATH to detect if this is being called from update.nix
# and output JSON to describe the changes
if [[ -n ${UPDATE_NIX_ATTR_PATH} ]]; then
if [[ ${count} -eq 0 ]]; then echo "[{}]"; exit 0; fi
jq -n \
--arg attrpath "${UPDATE_NIX_PNAME}" \
--arg oldversion "${old_version}" \
--arg newversion "${new_version}" \
--arg file "${file}" \
'[{
"attrPath": $attrpath,
"oldVersion": $oldversion,
"newVersion": $newversion,
"files": [ $file ]
}]'
fi

View file

@ -23,6 +23,28 @@
}; };
}; };
}; };
"kicad-testing" = {
kicadVersion = {
version = "7.0-2024-01-07";
src = {
rev = "ace6439758f8d211001235f36f02a60488337e41";
sha256 = "0z4p2srz9rld7mq6k2y5fipz8mgsdhh2506wam4388nklzzkrccr";
};
};
libVersion = {
version = "7.0-2024-01-07";
libSources = {
symbols.rev = "eedf6c9ddac2816023e817d4dc91032f9d7390b9";
symbols.sha256 = "0nlgmxf9z1vf4g350dfkxql1dawgmw275wqxkgszsfxmhdfpmi9v";
templates.rev = "9ce98cc45f3778e05c404edebf0f98de5c247ffe";
templates.sha256 = "0mykfwwik7472i4r0isc5szj3dnmvd0538p0vlmzh4rcgj3pj3vm";
footprints.rev = "7061fc9847ecc1b838e60dc6826db534028494f6";
footprints.sha256 = "1az6fzh1lma71mj12bc4bblnmzjayrxhkb8w9rjvlhvvgv33cdmy";
packages3d.rev = "d7345b34daaa23acf0d4506ed937fb424b5b18cd";
packages3d.sha256 = "0xzyi4mgyifwc6dppdzh6jq294mkj0a71cwkqw2ymz1kfbksw626";
};
};
};
"kicad-unstable" = { "kicad-unstable" = {
kicadVersion = { kicadVersion = {
version = "2023-08-15"; version = "2023-08-15";

View file

@ -1,72 +0,0 @@
{ lib
, cni-plugins
, buildGoModule
, firecracker
, containerd
, runc
, makeWrapper
, fetchFromGitHub
, git
}:
buildGoModule rec{
pname = "ignite";
version = "0.10.0";
src = fetchFromGitHub {
owner = "weaveworks";
repo = "ignite";
rev = "v${version}";
sha256 = "sha256-WCgNh+iLtxLslzcHuIwVLZpUEhvBJFe1Y84PaPtbtcY=";
leaveDotGit = true;
};
vendorHash = null;
doCheck = false;
postPatch = ''
# ignite tries to run cni-plugins programs from /opt/cni/bin
substituteInPlace pkg/constants/dependencies.go \
--replace "/opt/cni/bin/loopback" ${cni-plugins}/bin/loopback \
--replace "/opt/cni/bin/bridge" ${cni-plugins}/bin/bridge
# ignite tries to run cni-plugins programs from /opt/cni/bin
substituteInPlace pkg/network/cni/cni.go \
--replace "/opt/cni/bin" ${cni-plugins}/bin
# fetchgit doesn't fetch tags from git repository so it's necessary to force IGNITE_GIT_VERSION to be ${version}
# also forcing git state to be clean because if it's dirty ignite will try to fetch the image weaveworks/ignite:dev
# which is not in docker.io, we want it to fetch the image weaveworks/ignite:v${version}
substituteInPlace hack/ldflags.sh \
--replace '$(git describe --tags --abbrev=14 "''${IGNITE_GIT_COMMIT}^{commit}" 2>/dev/null)' "v${version}" \
--replace 'IGNITE_GIT_TREE_STATE="dirty"' 'IGNITE_GIT_TREE_STATE="clean"'
'';
nativeBuildInputs = [
git
makeWrapper
];
buildInputs = [
firecracker
];
preBuild = ''
patchShebangs ./hack/ldflags.sh
export buildFlagsArray+=("-ldflags=$(./hack/ldflags.sh)")
'';
postInstall = ''
for prog in hack ignite ignited ignite-spawn; do
wrapProgram "$out/bin/$prog" --prefix PATH : ${lib.makeBinPath [ cni-plugins firecracker containerd runc ]}
done
'';
meta = with lib; {
description = "Ignite a Firecracker microVM";
homepage = "https://github.com/weaveworks/ignite";
license = licenses.asl20;
maintainers = with maintainers; [ tfmoraes ];
};
}

View file

@ -23,6 +23,7 @@
, cephSupport ? false, ceph , cephSupport ? false, ceph
, glusterfsSupport ? false, glusterfs, libuuid , glusterfsSupport ? false, glusterfs, libuuid
, openGLSupport ? sdlSupport, mesa, libepoxy, libdrm , openGLSupport ? sdlSupport, mesa, libepoxy, libdrm
, rutabagaSupport ? openGLSupport && !toolsOnly, rutabaga_gfx
, virglSupport ? openGLSupport, virglrenderer , virglSupport ? openGLSupport, virglrenderer
, libiscsiSupport ? !toolsOnly, libiscsi , libiscsiSupport ? !toolsOnly, libiscsi
, smbdSupport ? false, samba , smbdSupport ? false, samba
@ -98,6 +99,7 @@ stdenv.mkDerivation (finalAttrs: {
++ lib.optionals cephSupport [ ceph ] ++ lib.optionals cephSupport [ ceph ]
++ lib.optionals glusterfsSupport [ glusterfs libuuid ] ++ lib.optionals glusterfsSupport [ glusterfs libuuid ]
++ lib.optionals openGLSupport [ mesa libepoxy libdrm ] ++ lib.optionals openGLSupport [ mesa libepoxy libdrm ]
++ lib.optionals rutabagaSupport [ rutabaga_gfx ]
++ lib.optionals virglSupport [ virglrenderer ] ++ lib.optionals virglSupport [ virglrenderer ]
++ lib.optionals libiscsiSupport [ libiscsi ] ++ lib.optionals libiscsiSupport [ libiscsi ]
++ lib.optionals smbdSupport [ samba ] ++ lib.optionals smbdSupport [ samba ]
@ -133,6 +135,11 @@ stdenv.mkDerivation (finalAttrs: {
sha256 = "sha256-oC+bRjEHixv1QEFO9XAm4HHOwoiT+NkhknKGPydnZ5E="; sha256 = "sha256-oC+bRjEHixv1QEFO9XAm4HHOwoiT+NkhknKGPydnZ5E=";
revert = true; revert = true;
}) })
# Fix display issues when using virtio-gpu on 8.2.0 https://gitlab.com/qemu-project/qemu/-/issues/2051
(fetchpatch {
url = "https://gitlab.com/qemu-project/qemu/-/commit/9d5b42beb6978dc6219d5dc029c9d453c6b8d503.diff";
sha256 = "sha256-NknkH/gFTsMcdq8/ArwM4+qrpU+ZHd+xVMFUuMJTtf0=";
})
] ]
++ lib.optional nixosTestRunner ./force-uid0-on-9p.patch; ++ lib.optional nixosTestRunner ./force-uid0-on-9p.patch;

View file

@ -20,6 +20,7 @@
, pango , pango
, pciutils , pciutils
, systemd , systemd
, tomlplusplus
, udis86 , udis86
, wayland , wayland
, wayland-protocols , wayland-protocols
@ -42,13 +43,13 @@ assert lib.assertMsg (!enableNvidiaPatches) "The option `enableNvidiaPatches` ha
assert lib.assertMsg (!hidpiXWayland) "The option `hidpiXWayland` has been removed. Please refer https://wiki.hyprland.org/Configuring/XWayland"; assert lib.assertMsg (!hidpiXWayland) "The option `hidpiXWayland` has been removed. Please refer https://wiki.hyprland.org/Configuring/XWayland";
stdenv.mkDerivation (finalAttrs: { stdenv.mkDerivation (finalAttrs: {
pname = "hyprland" + lib.optionalString debug "-debug"; pname = "hyprland" + lib.optionalString debug "-debug";
version = "0.33.1"; version = "0.34.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "hyprwm"; owner = "hyprwm";
repo = finalAttrs.pname; repo = finalAttrs.pname;
rev = "v${finalAttrs.version}"; rev = "v${finalAttrs.version}";
hash = "sha256-p7el5oQZPy9l1zyIrlHu6nA4BAu59eLoSqBjhkw2jaw="; hash = "sha256-WSrjBI3k2dM/kGF20At0E6NlrJSB4+pE+WGJ6dFzWEs=";
}; };
patches = [ patches = [
@ -66,6 +67,7 @@ stdenv.mkDerivation (finalAttrs: {
--replace "@HASH@" '${finalAttrs.src.rev}' \ --replace "@HASH@" '${finalAttrs.src.rev}' \
--replace "@BRANCH@" "" \ --replace "@BRANCH@" "" \
--replace "@MESSAGE@" "" \ --replace "@MESSAGE@" "" \
--replace "@DATE@" "2024-01-01" \
--replace "@TAG@" "" \ --replace "@TAG@" "" \
--replace "@DIRTY@" "" --replace "@DIRTY@" ""
''; '';
@ -100,6 +102,7 @@ stdenv.mkDerivation (finalAttrs: {
wayland-protocols wayland-protocols
pango pango
pciutils pciutils
tomlplusplus
wlroots wlroots
] ]
++ lib.optionals stdenv.hostPlatform.isMusl [ libexecinfo ] ++ lib.optionals stdenv.hostPlatform.isMusl [ libexecinfo ]

View file

@ -191,7 +191,21 @@ let
# sddm places XAUTHORITY in /tmp # sddm places XAUTHORITY in /tmp
if [[ "$XAUTHORITY" == /tmp/* ]]; then if [[ "$XAUTHORITY" == /tmp/* ]]; then
x11_args+=(--ro-bind-try "$XAUTHORITY" "$XAUTHORITY") x11_args+=(--ro-bind-try "$XAUTHORITY" "$XAUTHORITY")
fi''} fi
# dbus-run-session puts the socket in /tmp
IFS=";" read -ra addrs <<<"$DBUS_SESSION_BUS_ADDRESS"
for addr in "''${addrs[@]}"; do
[[ "$addr" == unix:* ]] || continue
IFS="," read -ra parts <<<"''${addr#unix:}"
for part in "''${parts[@]}"; do
printf -v part '%s' "''${part//\\/\\\\}"
printf -v part '%b' "''${part//%/\\x}"
[[ "$part" == path=/tmp/* ]] || continue
x11_args+=(--ro-bind-try "''${part#path=}" "''${part#path=}")
done
done
''}
cmd=( cmd=(
${bubblewrap}/bin/bwrap ${bubblewrap}/bin/bwrap

View file

@ -14,16 +14,16 @@ let
in in
buildGoModule rec { buildGoModule rec {
pname = "centrifugo"; pname = "centrifugo";
version = "5.1.2"; version = "5.2.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "centrifugal"; owner = "centrifugal";
repo = "centrifugo"; repo = "centrifugo";
rev = "v${version}"; rev = "v${version}";
hash = "sha256-p0OUzbI5ldl0XBU80nrgK1rfYc11Sij2S2ibfp9xmZ4="; hash = "sha256-lD7hUCXHH1nUN58rbn/p8BnVahEwF/jKrAtjwuXB4PM=";
}; };
vendorHash = "sha256-/uWFkLk2RTtGK4CWKZF52jgRHrh5mZLSUoVoe4cUhgk="; vendorHash = "sha256-s92P4PoYN2/L7pwGT0d/0E/KUNR1GT9DUhtHjAncNf4=";
ldflags = [ ldflags = [
"-s" "-s"

View file

@ -7,6 +7,7 @@
, SDL2_net , SDL2_net
, alsa-lib , alsa-lib
, copyDesktopItems , copyDesktopItems
, darwin
, fluidsynth , fluidsynth
, glib , glib
, gtest , gtest
@ -57,6 +58,39 @@ stdenv.mkDerivation (finalAttrs: {
hash = "sha256-WtTVSWWSlfXrdPVsnlDe4P5K/Fnj4QsOzx3Wo/Kusmg="; hash = "sha256-WtTVSWWSlfXrdPVsnlDe4P5K/Fnj4QsOzx3Wo/Kusmg=";
includes = [ "src/gui/meson.build" ]; includes = [ "src/gui/meson.build" ];
}) })
]
# Pagesize detection via syscall; remove when next stable version arrives
++ [
(fetchpatch {
# Added as a parent commit of 7e20f6e
# Fix ppc64le backend and 64K page size support (#2828)
name = "meson-add-ppc64.patch";
url = "https://github.com/dosbox-staging/dosbox-staging/commit/765bcc2b1d87050a4ea366bf22e1db075ad5660b.patch";
hash = "sha256-RtkidyF7w6RrPmCKK4Bd+3FtAn/+/38xk2cl32+yzxw=";
includes = [ "meson.build" ];
})
(fetchpatch {
# Added as a parent commit of 7e20f6e
# Account for debian powerpc prefix (instead of ppc)
name = "meson-powerpc64le.patch";
url = "https://github.com/dosbox-staging/dosbox-staging/commit/d44aa7441cd871ffac08974f22af7a735a839288.patch";
hash = "sha256-oMZtfmB1CRlDWyXwEWc3XzC+XxKazXDgo+jUiNBoJDw=";
includes = [ "meson.build" ];
})
(fetchpatch {
# Added as a parent commit of 7e20f6e
# Restore the PowerPC dynrec core to working order
name = "meson-option-write-or-execute.patch";
url = "https://github.com/dosbox-staging/dosbox-staging/commit/ef86642de390839afc77b2b591a6ea9ac43909b3.patch";
hash = "sha256-htOKEaXRRy28XNMX/t6uFTBLCkTr7YPtfmI9UyIBiz4=";
includes = [ "meson_options.txt" ];
})
(fetchpatch {
# Use a system call to detect the page size
name = "meson-detect-pagesize-by-syscall.patch";
url = "https://github.com/dosbox-staging/dosbox-staging/commit/7e20f6e401956a7a308f1b3462294d7ac9fa5db8.patch";
hash = "sha256-QW9lpHWCYSlQFgTqX/UxHAAWisz4wfPrdjLqROn/wR0=";
})
]; ];
nativeBuildInputs = [ nativeBuildInputs = [
@ -69,7 +103,6 @@ stdenv.mkDerivation (finalAttrs: {
]; ];
buildInputs = [ buildInputs = [
alsa-lib
fluidsynth fluidsynth
glib glib
iir1 iir1
@ -87,7 +120,13 @@ stdenv.mkDerivation (finalAttrs: {
SDL2_image SDL2_image
SDL2_net SDL2_net
speexdsp speexdsp
]; ] ++ lib.optionals stdenv.isLinux [
alsa-lib
] ++ lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [
AudioUnit
Carbon
Cocoa
]);
desktopItems = [ desktopItems = [
(makeDesktopItem { (makeDesktopItem {

View file

@ -0,0 +1,13 @@
diff --git a/eduvpn/utils.py b/eduvpn/utils.py
index db0bf0c..76fc52a 100644
--- a/eduvpn/utils.py
+++ b/eduvpn/utils.py
@@ -69,7 +69,7 @@ def get_prefix() -> str:
"""
target = "share/eduvpn/builder/mainwindow.ui"
local = path.dirname(path.dirname(path.abspath(__file__)))
- options = [local, path.expanduser("~/.local"), "/usr/local", prefix]
+ options = ["@out@"]
for option in options:
logger.debug(f"looking for '{target}' in '{option}'")
if path.isfile(path.join(option, target)):

View file

@ -0,0 +1,60 @@
{ lib
, fetchurl
, gdk-pixbuf
, gobject-introspection
, gtk3
, libnotify
, libsecret
, networkmanager
, python3Packages
, wrapGAppsHook
}:
python3Packages.buildPythonApplication rec {
pname = "eduvpn-client";
version = "4.2.0";
src = fetchurl {
url = "https://github.com/eduvpn/python-${pname}/releases/download/${version}/python-${pname}-${version}.tar.xz";
hash = "sha256-W5z0ykrwWANZmW+lQt6m+BmYPI0cutsamx8V2JrpeHA=";
};
nativeBuildInputs = [
gdk-pixbuf
gobject-introspection
wrapGAppsHook
];
buildInputs = [
gtk3
libnotify
libsecret
networkmanager
];
propagatedBuildInputs = with python3Packages; [
eduvpn-common
pygobject3
setuptools
];
patches = [ ./nix-python-prefix.patch ];
postPatch = ''
substituteInPlace eduvpn/utils.py --subst-var-by out $out
'';
checkInputs = with python3Packages; [
pytestCheckHook
];
meta = with lib; {
changelog = "https://raw.githubusercontent.com/eduvpn/python-eduvpn-client/${version}/CHANGES.md";
description = "Linux client for eduVPN";
homepage = "https://github.com/eduvpn/python-eduvpn-client";
license = licenses.gpl3Plus;
mainProgram = "eduvpn-gui";
maintainers = with maintainers; [ benneti jwijenbergh ];
platforms = platforms.linux;
};
}

View file

@ -0,0 +1,51 @@
{ lib
, stdenv
, fetchFromGitHub
, meson
, cmake
, ninja
, pkg-config
, gtk2
, gtk3
, gtk4
}:
let
distorm-src = fetchFromGitHub {
owner = "gdabah";
repo = "distorm";
rev = "3.5.2b";
hash = "sha256-2ftEV3TMS3HT7f96k+Pwt3Mm31fVEXcHpcbbz05jycU=";
};
pname = "gtkclipblock";
version = "0.2.2";
src = fetchFromGitHub {
owner = "notpeelz";
repo = "gtkclipblock";
rev = "v${version}";
hash = "sha256-ok/D7M0KekN8zf8AzhcOLtedbYVRHHv3m9zEHsJfcPM=";
fetchSubmodules = true;
};
in
stdenv.mkDerivation {
inherit pname version src;
nativeBuildInputs = [ meson cmake ninja pkg-config ];
buildInputs = [ gtk2 gtk3 gtk4 ];
postPatch = ''
substituteInPlace subprojects/funchook-helper/subprojects/funchook/CMakeLists.txt \
--replace "GIT_REPOSITORY https://github.com/gdabah/distorm.git" "SOURCE_DIR ${distorm-src}"
'';
dontUseCmakeConfigure = true;
meta = with lib; {
description = "A LD_PRELOAD hack to prevent GTK programs from interacting with the primary clipboard";
license = licenses.lgpl3Only;
maintainers = with maintainers; [ uartman ];
platforms = [ "x86_64-linux" ];
};
}

View file

@ -4,25 +4,26 @@
, cmake , cmake
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation (finalAttrs: {
pname = "iir1"; pname = "iir1";
version = "1.9.4"; version = "1.9.4";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "berndporr"; owner = "berndporr";
repo = "iir1"; repo = "iir1";
rev = version; rev = finalAttrs.version;
hash = "sha256-T8gl51IkZIGq+6D5ge4Kb3wm5aw7Rhphmnf6TTGwHbs="; hash = "sha256-T8gl51IkZIGq+6D5ge4Kb3wm5aw7Rhphmnf6TTGwHbs=";
}; };
nativeBuildInputs = [ cmake ]; nativeBuildInputs = [ cmake ];
meta = { meta = {
homepage = "https://berndporr.github.io/iir1/";
description = "A DSP IIR realtime filter library written in C++"; description = "A DSP IIR realtime filter library written in C++";
downloadPage = "https://github.com/berndporr/iir1"; downloadPage = "https://github.com/berndporr/iir1";
homepage = "http://berndporr.github.io/iir1/"; changelog = "https://github.com/berndporr/iir1/releases/tag/${finalAttrs.src.rev}";
license = lib.licenses.mit; license = with lib.licenses; [ mit ];
maintainers = [ lib.maintainers.AndersonTorres ]; maintainers = with lib.maintainers; [ AndersonTorres ];
platforms = lib.platforms.unix; platforms = lib.platforms.unix;
}; };
} })

View file

@ -0,0 +1,29 @@
{ lib, fetchFromGitHub, python3, testers, kas }:
python3.pkgs.buildPythonApplication rec {
pname = "kas";
version = "4.1";
src = fetchFromGitHub {
owner = "siemens";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-EYz9V45b7fSKoI8w9X0LcSTojErpJHfzxcdE4I4qD2k=";
};
propagatedBuildInputs = with python3.pkgs; [ setuptools kconfiglib jsonschema distro pyyaml ];
# Tests require network as they try to clone repos
doCheck = false;
passthru.tests.version = testers.testVersion {
package = kas;
command = "${pname} --version";
};
meta = with lib; {
homepage = "https://github.com/siemens/kas";
description = "Setup tool for bitbake based projects";
license = licenses.mit;
maintainers = with maintainers; [ bachp ];
};
}

View file

@ -70,6 +70,10 @@ stdenv.mkDerivation (finalAttrs: {
(lib.mesonEnable "xwayland" true) (lib.mesonEnable "xwayland" true)
]; ];
passthru = {
providedSessions = [ "labwc" ];
};
meta = { meta = {
homepage = "https://github.com/labwc/labwc"; homepage = "https://github.com/labwc/labwc";
description = "A Wayland stacking compositor, inspired by Openbox"; description = "A Wayland stacking compositor, inspired by Openbox";

View file

@ -0,0 +1,37 @@
{ lib
, buildGoModule
, fetchurl
}:
buildGoModule rec {
pname = "libeduvpn-common";
version = "1.2.0";
src = fetchurl {
url = "https://github.com/eduvpn/eduvpn-common/releases/download/${version}/eduvpn-common-${version}.tar.xz";
hash = "sha256-CqpOgvGGD6pW03fvKUzgoeCz6YgnzuYK2u5Zbw+/Ks4=";
};
vendorHash = null;
buildPhase = ''
runHook preBuild
go build -o ${pname}-${version}.so -buildmode=c-shared -tags=release ./exports
runHook postBuild
'';
installPhase = ''
runHook preInstall
install -Dt $out/lib ${pname}-${version}.so
runHook postInstall
'';
meta = with lib; {
changelog = "https://raw.githubusercontent.com/eduvpn/eduvpn-common/${version}/CHANGES.md";
description = "Code to be shared between eduVPN clients";
homepage = "https://github.com/eduvpn/eduvpn-common";
maintainers = with maintainers; [ benneti jwijenbergh ];
license = licenses.mit;
platforms = platforms.linux;
};
}

View file

@ -0,0 +1,37 @@
{ lib
, stdenv
, fetchurl
, ncurses
, zlib
, bzip2
, sqlite
, pkg-config
, glib
, gnutls
, perl
, libmaxminddb
}:
stdenv.mkDerivation (finalAttrs: {
pname = "ncdc";
version = "1.24";
src = fetchurl {
url = "https://dev.yorhel.nl/download/ncdc-${finalAttrs.version}.tar.gz";
hash = "sha256-IzUQ1TVfxy/a01eOvIqzXR2pWyHSd0mQ86E1a3ES2h4=";
};
nativeBuildInputs = [ perl pkg-config ];
buildInputs = [ ncurses zlib bzip2 sqlite glib gnutls libmaxminddb ];
configureFlags = [ "--with-geoip" ];
meta = {
changelog = "https://dev.yorhel.nl/ncdc/changes";
description = "Modern and lightweight direct connect client with a friendly ncurses interface";
homepage = "https://dev.yorhel.nl/ncdc";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ ehmry ];
mainProgram = "ncdc";
};
})

View file

@ -6,14 +6,14 @@
python3.pkgs.buildPythonApplication { python3.pkgs.buildPythonApplication {
pname = "renode-dts2repl"; pname = "renode-dts2repl";
version = "unstable-2024-01-06"; version = "unstable-2024-01-09";
pyproject = true; pyproject = true;
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "antmicro"; owner = "antmicro";
repo = "dts2repl"; repo = "dts2repl";
rev = "0813251eb3c016fc7688c1e81981213d980fc5ab"; rev = "429ebc65e0bcbd967ccfe1f9a970abd5b5b6258f";
hash = "sha256-2EePYirk3IKFaJSiWVebB9Moz6FYBEwymo32NYIyMtE="; hash = "sha256-/62KAVIMCM6VNhW4rDqnKXOFrAO0cHpybGS3lconCqY=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [

View file

@ -7,13 +7,13 @@
stdenvNoCC.mkDerivation rec { stdenvNoCC.mkDerivation rec {
pname = "sx"; pname = "sx";
version = "2.1.7"; version = "3.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "earnestly"; owner = "earnestly";
repo = pname; repo = pname;
rev = version; rev = version;
sha256 = "0xv15m30nhcknasqiybj5wwf7l91q4a4jf6xind8x5x00c6br6nl"; hash = "sha256-hKoz7Kuus8Yp7D0F05wCOQs6BvV0NkRM9uUXTntLJxQ=";
}; };
makeFlags = [ "PREFIX=$(out)" ]; makeFlags = [ "PREFIX=$(out)" ];
@ -33,8 +33,8 @@ stdenvNoCC.mkDerivation rec {
description = "Simple alternative to both xinit and startx for starting a Xorg server"; description = "Simple alternative to both xinit and startx for starting a Xorg server";
homepage = "https://github.com/earnestly/sx"; homepage = "https://github.com/earnestly/sx";
license = licenses.mit; license = licenses.mit;
platforms = platforms.linux;
maintainers = with maintainers; [ figsoda thiagokokada ];
mainProgram = "sx"; mainProgram = "sx";
maintainers = with maintainers; [ figsoda thiagokokada ];
platforms = platforms.linux;
}; };
} }

4910
pkgs/by-name/tr/treedome/Cargo.lock generated Normal file

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,68 @@
{
"name": "treedome",
"private": true,
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "vite",
"build": "tsc && vite build",
"preview": "vite preview",
"tauri": "tauri",
"clean": "rm -rf node_modules",
"prettier-format": "prettier --config .prettierrc 'src/**/*.ts*' --write"
},
"resolutions": {
"@types/react": "^17.0.1",
"@types/react-dom": "^17.0.1"
},
"dependencies": {
"@emotion/react": "^11.11.1",
"@emotion/styled": "^11.11.0",
"@fontsource/noto-sans": "^5.0.8",
"@fontsource/noto-sans-mono": "^5.0.8",
"@leeoniya/ufuzzy": "^1.0.8",
"@mantine/core": "^6.0.16",
"@mantine/form": "^6.0.16",
"@mantine/hooks": "^6.0.16",
"@mantine/modals": "^6.0.16",
"@mantine/notifications": "^6.0.16",
"@mantine/spotlight": "^6.0.17",
"@mantine/tiptap": "^6.0.16",
"@minoru/react-dnd-treeview": "^3.4.4",
"@mui/icons-material": "^5.14.0",
"@mui/material": "^5.14.0",
"@tabler/icons-react": "^2.28.0",
"@tauri-apps/api": "^1.4.0",
"@tiptap/extension-code-block-lowlight": "^2.0.4",
"@tiptap/extension-highlight": "^2.0.4",
"@tiptap/extension-image": "^2.0.4",
"@tiptap/extension-link": "^2.0.4",
"@tiptap/extension-placeholder": "^2.0.4",
"@tiptap/extension-subscript": "^2.0.4",
"@tiptap/extension-superscript": "^2.0.4",
"@tiptap/extension-text-align": "^2.0.4",
"@tiptap/extension-underline": "^2.0.4",
"@tiptap/pm": "^2.0.4",
"@tiptap/react": "^2.0.4",
"@tiptap/starter-kit": "^2.0.4",
"@types/lodash": "^4.14.195",
"jotai": "^2.2.2",
"lodash": "^4.17.21",
"lowlight": "^2.9.0",
"rc-tree": "^5.7.8",
"react": "^18.2.0",
"react-dnd": "^16.0.1",
"react-dom": "^18.2.0",
"wouter": "^2.11.0"
},
"devDependencies": {
"@tauri-apps/cli": "^1.4.0",
"@types/node": "^20.4.4",
"@types/react": "^18.2.15",
"@types/react-dom": "^18.2.7",
"@vitejs/plugin-react": "^4.0.3",
"prettier": "^3.0.0",
"typescript": "^5.1.6",
"vite": "^4.4.6"
}
}

View file

@ -0,0 +1,144 @@
{ lib
, cargo-tauri
, cmake
, dbus
, fetchFromGitea
, fetchYarnDeps
, freetype
, gsettings-desktop-schemas
, gtk3
, libsoup
, mkYarnPackage
, openssl
, pkg-config
, rustPlatform
, webkitgtk
, wrapGAppsHook
, sqlite
}:
let
pname = "treedome";
version = "0.3.3";
src = fetchFromGitea {
domain = "codeberg.org";
owner = "solver-orgz";
repo = "treedome";
rev = version;
sha256 = "sha256-492EAKCXyc4s9FvkpqppZ/GllYuYe0YsXgbRl/oQBgE=";
};
frontend-build = mkYarnPackage {
inherit version src;
pname = "treedome-ui";
offlineCache = fetchYarnDeps {
yarnLock = "${src}/yarn.lock";
sha256 = "sha256-rV5jKKnbMutaG5o8gRKgs/uoKwbIkxAPIcx6VWG7mm4=";
};
packageJSON = ./package.json;
configurePhase = ''
ln -s $node_modules node_modules
'';
buildPhase = ''
runHook preBuild
export HOME=$(mktemp -d)
yarn --offline run build
runHook postBuild
'';
installPhase = ''
runHook preInstall
mkdir -p $out/dist
cp -r dist/** $out/dist
runHook postInstall
'';
doDist = false;
};
in
rustPlatform.buildRustPackage {
inherit version pname src;
sourceRoot = "${src.name}/src-tauri";
cargoLock = {
lockFile = ./Cargo.lock;
outputHashes = {
"fix-path-env-0.0.0" = "sha256-ewE3CwqLC8dvi94UrQsWbp0mjmrzEJIGPDYtdmQ/sGs=";
};
};
preConfigure = ''
mkdir -p dist
cp -R ${frontend-build}/dist/** dist
'';
# copy the frontend static resources to final build directory
# Also modify tauri.conf.json so that it expects the resources at the new location
postPatch = ''
substituteInPlace ./tauri.conf.json \
--replace '"distDir": "../dist",' '"distDir": "dist",' \
--replace '"beforeBuildCommand": "yarn run build",' '"beforeBuildCommand": "",'
'';
nativeBuildInputs = [
cmake
pkg-config
cargo-tauri
wrapGAppsHook
];
buildInputs = [
dbus
openssl
freetype
libsoup
gtk3
webkitgtk
gsettings-desktop-schemas
sqlite
];
buildPhase = ''
runHook preBuild
cargo tauri build
runHook postBuild
'';
installPhase = ''
runHook preInstall
mkdir -p $out/bin/
mkdir -p $out/share/
cp target/release/bundle/deb/treedome_0.0.0_amd64/data/usr/bin/treedome $out/bin/treedome
cp -R target/release/bundle/deb/treedome_0.0.0_amd64/data/usr/share/** $out/share/
runHook postInstall
'';
# WEBKIT_DISABLE_COMPOSITING_MODE essential in NVIDIA + compositor https://github.com/NixOS/nixpkgs/issues/212064#issuecomment-1400202079
postFixup = ''
wrapProgram "$out/bin/treedome" \
--set WEBKIT_DISABLE_COMPOSITING_MODE 1
'';
meta = with lib; {
description = "A local-first, encrypted, note taking application with tree-like structures, all written and saved in markdown";
homepage = " https://codeberg.org/solver-orgz/treedome";
license = licenses.gpl3Plus;
platforms = [ "x86_64-linux" ];
mainProgram = "treedome";
maintainers = with maintainers; [ tengkuizdihar ];
};
}

View file

@ -0,0 +1,80 @@
{ lib
, stdenv
, fetchzip
, jre
, copyDesktopItems
, makeDesktopItem
}:
let
throwSystem = throw "Unsupported system: ${stdenv.system}";
platform = {
"x86_64-linux" = "linux-x86-64";
}.${stdenv.system} or throwSystem;
in stdenv.mkDerivation rec {
pname = "weasis";
version = "4.2.1";
# Their build instructions indicate to use the packaging script
src = fetchzip {
url = "https://github.com/nroduit/Weasis/releases/download/v${version}/weasis-native.zip";
hash = "sha256-HDlylpe8cHZRaIXndfGh6XmUn8o2PQB1Av7hLCp679U=";
stripRoot = false;
};
nativeBuildInputs = [
copyDesktopItems
];
desktopItems = [
(makeDesktopItem {
name = "DICOMizer";
exec = "Dicomizer";
icon = "Dicomizer";
desktopName = "DICOMizer";
comment = "Convert standard images into DICOM";
})
(makeDesktopItem {
name = "Weasis";
exec = "Weasis";
icon = "Weasis";
desktopName = "Weasis";
comment = meta.description;
})
];
postPatch = ''
patchShebangs ./build/script/package-weasis.sh
'';
buildPhase = ''
runHook preBuild
./build/script/package-weasis.sh --no-installer --jdk ${jre}
runHook postBuild
'';
installPhase = ''
runHook preInstall
mkdir -p $out/share/{applications,pixmaps}
mv weasis-${platform}-jdk${lib.versions.major jre.version}-${version}/Weasis/* $out/
mv $out/lib/*.png $out/share/pixmaps/
runHook postInstall
'';
meta = {
description = "Multipurpose standalone and web-based DICOM viewer with a highly modular architecture";
homepage = "https://weasis.org";
# Using changelog from releases as it is more accurate
changelog = "https://github.com/nroduit/Weasis/releases/tag/v${version}";
license = with lib.licenses; [ asl20 epl20 ];
maintainers = [ lib.maintainers.wolfangaukang ];
platforms = [ "x86_64-linux" ];
mainProgram = "Weasis";
};
}

View file

@ -1,14 +1,18 @@
{ lib, fetchFromGitHub, stdenvNoCC }: { lib
, fetchFromGitHub
, stdenvNoCC
, nix-update-script
}:
stdenvNoCC.mkDerivation rec { stdenvNoCC.mkDerivation rec {
pname = "material-design-icons"; pname = "material-design-icons";
version = "7.3.67"; version = "7.4.47";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "Templarian"; owner = "Templarian";
repo = "MaterialDesign-Webfont"; repo = "MaterialDesign-Webfont";
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-gQT+5MqYo1qUiLJTzlhF5dB5BZMtr34JWn9rMa9MJvQ="; sha256 = "sha256-7t3i3nPJZ/tRslLBfY+9kXH8TR145GC2hPFYJeMHRL8=";
sparseCheckout = [ "fonts" ]; sparseCheckout = [ "fonts" ];
}; };
@ -24,6 +28,8 @@ stdenvNoCC.mkDerivation rec {
runHook postInstall runHook postInstall
''; '';
passthru.updateScript = nix-update-script { };
meta = with lib; { meta = with lib; {
description = "7000+ Material Design Icons from the Community"; description = "7000+ Material Design Icons from the Community";
longDescription = '' longDescription = ''

View file

@ -34,7 +34,7 @@
}: }:
let let
version = "9.1.10"; version = "9.1.21";
packInstall = swiplPath: pack: packInstall = swiplPath: pack:
''${swiplPath}/bin/swipl -g "pack_install(${pack}, [package_directory(\"${swiplPath}/lib/swipl/pack\"), silent(true), interactive(false)])." -t "halt." ''${swiplPath}/bin/swipl -g "pack_install(${pack}, [package_directory(\"${swiplPath}/lib/swipl/pack\"), silent(true), interactive(false)])." -t "halt."
''; '';
@ -47,7 +47,7 @@ stdenv.mkDerivation {
owner = "SWI-Prolog"; owner = "SWI-Prolog";
repo = "swipl-devel"; repo = "swipl-devel";
rev = "V${version}"; rev = "V${version}";
sha256 = "sha256-hr9cI0Ww6RfZs99iM1hFVw4sOYZFZWr8Vzv6dognCTQ="; hash = "sha256-c4OSntnwIzo6lGhpyNVtNM4el5FGrn8kcz8WkDRfQhU=";
fetchSubmodules = true; fetchSubmodules = true;
}; };

View file

@ -229,11 +229,7 @@ self: super: builtins.intersectAttrs super {
# hledger* overrides # hledger* overrides
inherit ( inherit (
let let
# Copy hledger man pages from the source tarball into the proper place. installHledgerExtraFiles = overrideCabal (drv: {
# It always contains the relevant man page(s) at the top level. For
# hledger it additionally has all the other man pages in embeddedfiles/
# which we ignore.
installHledgerManPages = overrideCabal (drv: {
buildTools = drv.buildTools or [] ++ [ buildTools = drv.buildTools or [] ++ [
pkgs.buildPackages.installShellFiles pkgs.buildPackages.installShellFiles
]; ];
@ -243,6 +239,10 @@ self: super: builtins.intersectAttrs super {
done done
install -v -Dm644 *.info* -t "$out/share/info/" install -v -Dm644 *.info* -t "$out/share/info/"
if [ -e shell-completion/hledger-completion.bash ]; then
installShellCompletion --name hledger shell-completion/hledger-completion.bash
fi
''; '';
}); });
@ -254,15 +254,15 @@ self: super: builtins.intersectAttrs super {
}); });
in in
{ {
hledger = installHledgerManPages super.hledger; hledger = installHledgerExtraFiles super.hledger;
hledger-web = installHledgerManPages (hledgerWebTestFix super.hledger-web); hledger-web = installHledgerExtraFiles (hledgerWebTestFix super.hledger-web);
hledger-ui = installHledgerManPages super.hledger-ui; hledger-ui = installHledgerExtraFiles super.hledger-ui;
hledger_1_30_1 = installHledgerManPages hledger_1_30_1 = installHledgerExtraFiles
(doDistribute (super.hledger_1_30_1.override { (doDistribute (super.hledger_1_30_1.override {
hledger-lib = self.hledger-lib_1_30; hledger-lib = self.hledger-lib_1_30;
})); }));
hledger-web_1_30 = installHledgerManPages (hledgerWebTestFix hledger-web_1_30 = installHledgerExtraFiles (hledgerWebTestFix
(doDistribute (super.hledger-web_1_30.override { (doDistribute (super.hledger-web_1_30.override {
hledger = self.hledger_1_30_1; hledger = self.hledger_1_30_1;
hledger-lib = self.hledger-lib_1_30; hledger-lib = self.hledger-lib_1_30;

View file

@ -125,6 +125,9 @@ let
extension = self: super: { extension = self: super: {
foobar = super.numpy; foobar = super.numpy;
}; };
# `pythonInterpreters.pypy39_prebuilt` does not expose an attribute
# name (is not present in top-level `pkgs`).
is_prebuilt = python: python.pythonAttr == null;
in lib.optionalAttrs (python.isPy3k) ({ in lib.optionalAttrs (python.isPy3k) ({
test-packageOverrides = let test-packageOverrides = let
myPython = let myPython = let
@ -138,7 +141,10 @@ let
# test-overrideScope = let # test-overrideScope = let
# myPackages = python.pkgs.overrideScope extension; # myPackages = python.pkgs.overrideScope extension;
# in assert myPackages.foobar == myPackages.numpy; myPackages.python.withPackages(ps: with ps; [ foobar ]); # in assert myPackages.foobar == myPackages.numpy; myPackages.python.withPackages(ps: with ps; [ foobar ]);
} // lib.optionalAttrs (python ? pythonAttr) { #
# Have to skip prebuilt python as it's not present in top-level
# `pkgs` as an attribute.
} // lib.optionalAttrs (python ? pythonAttr && !is_prebuilt python) {
# Test applying overrides using pythonPackagesOverlays. # Test applying overrides using pythonPackagesOverlays.
test-pythonPackagesExtensions = let test-pythonPackagesExtensions = let
pkgs_ = pkgs.extend(final: prev: { pkgs_ = pkgs.extend(final: prev: {

View file

@ -0,0 +1,33 @@
{ lib, stdenv, fetchFromGitiles, cmake, darwin }:
stdenv.mkDerivation {
pname = "aemu";
version = "0.1.2";
src = fetchFromGitiles {
url = "https://android.googlesource.com/platform/hardware/google/aemu";
rev = "07ccc3ded3357e67e39104f18f35feaf8b3b6a0e";
hash = "sha256-H3IU9aTFSzUAqYgrtHd4F18hbhZsbOJGC4K5JwMQOOw=";
};
nativeBuildInputs = [ cmake ];
buildInputs = lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.Cocoa
];
cmakeFlags = [
"-DAEMU_COMMON_GEN_PKGCONFIG=ON"
"-DAEMU_COMMON_BUILD_CONFIG=gfxstream"
# "-DENABLE_VKCEREAL_TESTS=OFF"
];
meta = with lib; {
homepage = "https://android.googlesource.com/platform/hardware/google/aemu";
description = "Android emulation utilities library";
maintainers = with maintainers; [ qyliss ];
# The BSD license comes from host-common/VpxFrameParser.cpp, which
# incorporates some code from libvpx, which uses the 3-clause BSD license.
license = with licenses; [ asl20 mit bsd3 ];
platforms = platforms.darwin ++ platforms.linux;
};
}

View file

@ -24,13 +24,13 @@ let
in in
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "ctranslate2"; pname = "ctranslate2";
version = "3.23.0"; version = "3.24.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "OpenNMT"; owner = "OpenNMT";
repo = "CTranslate2"; repo = "CTranslate2";
rev = "v${version}"; rev = "v${version}";
hash = "sha256-jqeLNKOGdGtAVx7ExGGDxxgi5zDmQgmJ6bxIuguaM3k="; hash = "sha256-RK5GQymtaYOM6HK2eRK5Rbz6NZva3Jt7lTPTUbSQXxI=";
fetchSubmodules = true; fetchSubmodules = true;
}; };

View file

@ -0,0 +1,34 @@
{ lib, stdenv, fetchFromGitiles, meson, ninja, pkg-config, python3
, aemu, libdrm, libglvnd, vulkan-headers, vulkan-loader, xorg
}:
stdenv.mkDerivation {
pname = "gfxstream";
version = "0.1.2";
src = fetchFromGitiles {
url = "https://android.googlesource.com/platform/hardware/google/gfxstream";
rev = "a29282666c0e2fdbb2c98cfe68a7c0677163ef91";
hash = "sha256-IYXkaHZPEYIE9KW731GN6x6yRS+FYtP1zyHcaSofhIM=";
};
nativeBuildInputs = [ meson ninja pkg-config python3 ];
buildInputs = [ aemu libglvnd vulkan-headers vulkan-loader xorg.libX11 ]
++ lib.optional (lib.meta.availableOn stdenv.hostPlatform libdrm) libdrm;
# dlopens libvulkan.
#
# XXX: Unsure if this is required on Darwin. If it is, it probably
# needs to be done using install_name_tool.
preConfigure = lib.optionalString (!stdenv.isDarwin) ''
mesonFlagsArray=(-Dcpp_link_args="-Wl,--push-state -Wl,--no-as-needed -lvulkan -Wl,--pop-state")
'';
meta = with lib; {
homepage = "https://android.googlesource.com/platform/hardware/google/gfxstream";
description = "Graphics Streaming Kit";
license = licenses.free; # https://android.googlesource.com/platform/hardware/google/gfxstream/+/refs/heads/main/LICENSE
maintainers = with maintainers; [ qyliss ];
platforms = platforms.darwin ++ platforms.linux;
};
}

View file

@ -23,20 +23,21 @@
, which , which
, xvfb-run , xvfb-run
, nixosTests , nixosTests
, installTests ? true
}: }:
let let
testDeps = [ testDeps = [
gtk3 atk pango.out gdk-pixbuf harfbuzz gtk3 atk pango.out gdk-pixbuf harfbuzz
]; ];
in stdenv.mkDerivation rec { in stdenv.mkDerivation (finalAttrs: {
pname = "gjs"; pname = "gjs";
version = "1.78.1"; version = "1.78.1";
outputs = [ "out" "dev" "installedTests" ]; outputs = [ "out" "dev" "installedTests" ];
src = fetchurl { src = fetchurl {
url = "mirror://gnome/sources/gjs/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz"; url = "mirror://gnome/sources/gjs/${lib.versions.majorMinor finalAttrs.version}/gjs-${finalAttrs.version}.tar.xz";
hash = "sha256-fpBRHEKRJ8OerABoxKyaNT335vu8ZG9fGOiWKILBhkE="; hash = "sha256-fpBRHEKRJ8OerABoxKyaNT335vu8ZG9fGOiWKILBhkE=";
}; };
@ -107,12 +108,12 @@ in stdenv.mkDerivation rec {
postInstall = '' postInstall = ''
# TODO: make the glib setup hook handle moving the schemas in other outputs. # TODO: make the glib setup hook handle moving the schemas in other outputs.
installedTestsSchemaDatadir="$installedTests/share/gsettings-schemas/${pname}-${version}" installedTestsSchemaDatadir="$installedTests/share/gsettings-schemas/gjs-${finalAttrs.version}"
mkdir -p "$installedTestsSchemaDatadir" mkdir -p "$installedTestsSchemaDatadir"
mv "$installedTests/share/glib-2.0" "$installedTestsSchemaDatadir" mv "$installedTests/share/glib-2.0" "$installedTestsSchemaDatadir"
''; '';
postFixup = '' postFixup = lib.optionalString installTests ''
wrapProgram "$installedTests/libexec/installed-tests/gjs/minijasmine" \ wrapProgram "$installedTests/libexec/installed-tests/gjs/minijasmine" \
--prefix XDG_DATA_DIRS : "$installedTestsSchemaDatadir" \ --prefix XDG_DATA_DIRS : "$installedTestsSchemaDatadir" \
--prefix GI_TYPELIB_PATH : "${lib.makeSearchPath "lib/girepository-1.0" testDeps}" --prefix GI_TYPELIB_PATH : "${lib.makeSearchPath "lib/girepository-1.0" testDeps}"
@ -145,4 +146,4 @@ in stdenv.mkDerivation rec {
maintainers = teams.gnome.members; maintainers = teams.gnome.members;
platforms = platforms.unix; platforms = platforms.unix;
}; };
} })

View file

@ -2,11 +2,11 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "fastjet-contrib"; pname = "fastjet-contrib";
version = "1.052"; version = "1.053";
src = fetchurl { src = fetchurl {
url = "https://fastjet.hepforge.org/contrib/downloads/fjcontrib-${version}.tar.gz"; url = "https://fastjet.hepforge.org/contrib/downloads/fjcontrib-${version}.tar.gz";
sha256 = "sha256-veY8KMvfmSvt6k3e38PNUsn+wkGnZ8xFXdStEOghDDk="; sha256 = "sha256-sSokjgsUOTTJnjt8jdgyZRIvbGwJUzwqA99E9e/x5vo=";
}; };
buildInputs = [ fastjet ]; buildInputs = [ fastjet ];

View file

@ -2,11 +2,11 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "herwig"; pname = "herwig";
version = "7.2.3"; version = "7.3.0";
src = fetchurl { src = fetchurl {
url = "https://www.hepforge.org/archive/herwig/Herwig-${version}.tar.bz2"; url = "https://www.hepforge.org/archive/herwig/Herwig-${version}.tar.bz2";
hash = "sha256-VZmJk3mwGwnjMaJCbXjTm39uwSbbJUPp00Cu/mqlD4Q="; hash = "sha256-JiSBnS3/EFupUuobXPEutvSSbUlRd0pBkHaZ4vVnaGw=";
}; };
nativeBuildInputs = [ autoconf automake libtool gfortran ]; nativeBuildInputs = [ autoconf automake libtool gfortran ];

View file

@ -0,0 +1,41 @@
{ lib, stdenv, fetchgit, cargo, pkg-config, rustPlatform
, aemu, gfxstream, libcap, libdrm, minijail
}:
stdenv.mkDerivation (finalAttrs: {
pname = "rutabaga_gfx";
version = "0.1.2";
src = fetchgit {
url = "https://chromium.googlesource.com/crosvm/crosvm";
rev = "v${finalAttrs.version}-rutabaga-release";
fetchSubmodules = true;
hash = "sha256-0RJDKzeU7U6hc6CLKks8QcRs3fxN+/LYUbB0t6W790M=";
};
nativeBuildInputs = [ cargo pkg-config rustPlatform.cargoSetupHook ];
buildInputs = [ aemu gfxstream ]
++ lib.optional (lib.meta.availableOn stdenv.hostPlatform libdrm) libdrm;
cargoDeps = rustPlatform.fetchCargoTarball {
inherit (finalAttrs) src;
hash = "sha256-wuF3Isrp+u5J8jPQoPsIOWYGNKLSNa2pLfvladAWkLs=";
};
# make install always rebuilds
dontBuild = true;
makeFlags = [ "prefix=$(out)" ];
preInstall = ''
cd rutabaga_gfx/ffi
'';
meta = with lib; {
homepage = "https://crosvm.dev/book/appendix/rutabaga_gfx.html";
description = "cross-platform abstraction for GPU and display virtualization";
license = licenses.bsd3;
maintainers = with maintainers; [ qyliss ];
platforms = platforms.darwin ++ platforms.linux;
};
})

View file

@ -9,7 +9,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "bite-parser"; pname = "bite-parser";
version = "0.2.3"; version = "0.2.4";
disabled = pythonOlder "3.8"; disabled = pythonOlder "3.8";
@ -18,7 +18,7 @@ buildPythonPackage rec {
src = fetchPypi { src = fetchPypi {
pname = "bite_parser"; pname = "bite_parser";
inherit version; inherit version;
hash = "sha256-5ZdmOhnxpBI4XGgT4n8JEriqOEkiUZ1Cc96/pyluhe4="; hash = "sha256-Uq2FDoo5gztMRqtdkKYX0RULhjFgy+DeujC6BTZ3CZI=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [

View file

@ -2,15 +2,14 @@
, fetchPypi , fetchPypi
, python3 , python3
}: }:
python3.pkgs.buildPythonPackage rec {
python3.pkgs.buildPythonApplication rec {
pname = "bloodhound-py"; pname = "bloodhound-py";
version = "1.6.1"; version = "1.7.1";
src = fetchPypi { src = fetchPypi {
inherit version; inherit version;
pname = "bloodhound"; pname = "bloodhound";
hash = "sha256-SRP74I5euKJErnSkm6OSdAwznv/ZQeEtNG4XofnIEec="; hash = "sha256-BryByUo9FCSrrJgXoXoVPBjpmh32I0xRoeKBsYj8nSE=";
}; };
propagatedBuildInputs = with python3.pkgs; [ propagatedBuildInputs = with python3.pkgs; [
@ -23,8 +22,8 @@ python3.pkgs.buildPythonApplication rec {
doCheck = false; doCheck = false;
meta = with lib; { meta = with lib; {
description = "Ingestor for BloodHound"; description = "Python based ingestor for BloodHound, based on Impacket.";
homepage = "https://github.com/fox-it/BloodHound.py"; homepage = "https://github.com/dirkjanm/BloodHound.py";
license = licenses.mit; license = licenses.mit;
maintainers = with maintainers; [ exploitoverload ]; maintainers = with maintainers; [ exploitoverload ];
}; };

View file

@ -365,14 +365,14 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "boto3-stubs"; pname = "boto3-stubs";
version = "1.34.14"; version = "1.34.15";
pyproject = true; pyproject = true;
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
hash = "sha256-KSb5k/b6iTa3xN0VUsHrFhimZGV7XbWVsj63o4lmbV4="; hash = "sha256-kzIc/TsvFh7Tuf30F25a7UpvWg0STLlmHMI4hDGA5uA=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [

View file

@ -9,7 +9,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "botocore-stubs"; pname = "botocore-stubs";
version = "1.34.14"; version = "1.34.15";
format = "pyproject"; format = "pyproject";
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
@ -17,7 +17,7 @@ buildPythonPackage rec {
src = fetchPypi { src = fetchPypi {
pname = "botocore_stubs"; pname = "botocore_stubs";
inherit version; inherit version;
hash = "sha256-qdjbhps6WuB0NMM8l9o9rmrOc8ApSB0G3oweuBXWCzI="; hash = "sha256-tCxap70AoR/ymcrCBRbbKQElSpsautUxvdyEACE9kc0=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [

View file

@ -1,19 +1,23 @@
{ lib { lib
, buildPythonPackage
, fetchPypi
, aiohttp , aiohttp
, attrs , attrs
, buildPythonPackage
, defusedxml , defusedxml
, fetchPypi
, pythonOlder
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "connect-box"; pname = "connect-box";
version = "0.3.0"; version = "0.3.1";
format = "setuptools";
disabled = pythonOlder "3.9";
src = fetchPypi { src = fetchPypi {
pname = "connect_box"; pname = "connect_box";
inherit version; inherit version;
hash = "sha256-d1KqVKaHlZDm2o1GJ7r8KoONwfd1lxXexJxavCvjfW8="; hash = "sha256-x1ozcj3IL+iI/QtS12yEudCqNknCmyb5ew88Z39xaLA=";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [
@ -22,10 +26,12 @@ buildPythonPackage rec {
defusedxml defusedxml
]; ];
# no tests are present # No tests are present
doCheck = false; doCheck = false;
pythonImportsCheck = [ "connect_box" ]; pythonImportsCheck = [
"connect_box"
];
meta = with lib; { meta = with lib; {
description = "Interact with a Compal CH7465LG cable modem/router"; description = "Interact with a Compal CH7465LG cable modem/router";
@ -36,6 +42,7 @@ buildPythonPackage rec {
Hub 3.0 (IE), Ziggo Connectbox (NL) or Unitymedia Connect Box (DE). Hub 3.0 (IE), Ziggo Connectbox (NL) or Unitymedia Connect Box (DE).
''; '';
homepage = "https://github.com/home-assistant-ecosystem/python-connect-box"; homepage = "https://github.com/home-assistant-ecosystem/python-connect-box";
changelog = "https://github.com/home-assistant-ecosystem/python-connect-box/releases/tag/${version}";
license = with licenses; [ mit ]; license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ]; maintainers = with maintainers; [ fab ];
}; };

View file

@ -4,21 +4,26 @@
, fetchPypi , fetchPypi
, pytestCheckHook , pytestCheckHook
, pythonOlder , pythonOlder
, setuptools
, typing-extensions , typing-extensions
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "django-stubs-ext"; pname = "django-stubs-ext";
version = "4.2.5"; version = "4.2.7";
format = "setuptools"; pyproject = true;
disabled = pythonOlder "3.8"; disabled = pythonOlder "3.8";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
hash = "sha256-jE0ftfaEGbOyR0xlloGhiYA+J9al5av1qg2ldgG1hjM="; hash = "sha256-UZNCrAhJzaFVl0bJpWPwP/mfY2sOvnwUt16BagDf3cM=";
}; };
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [ propagatedBuildInputs = [
django django
typing-extensions typing-extensions
@ -35,6 +40,7 @@ buildPythonPackage rec {
meta = with lib; { meta = with lib; {
description = "Extensions and monkey-patching for django-stubs"; description = "Extensions and monkey-patching for django-stubs";
homepage = "https://github.com/typeddjango/django-stubs"; homepage = "https://github.com/typeddjango/django-stubs";
changelog = "https://github.com/typeddjango/django-stubs/releases/tag/${version}";
license = licenses.mit; license = licenses.mit;
maintainers = with maintainers; [ elohmeier ]; maintainers = with maintainers; [ elohmeier ];
}; };

View file

@ -6,6 +6,7 @@
, mypy , mypy
, pytestCheckHook , pytestCheckHook
, pythonOlder , pythonOlder
, setuptools
, tomli , tomli
, types-pytz , types-pytz
, types-pyyaml , types-pyyaml
@ -14,20 +15,23 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "django-stubs"; pname = "django-stubs";
version = "4.2.6"; version = "4.2.7";
format = "setuptools"; pyproject = true;
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.8";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
hash = "sha256-5gtD3mYqGZ20sVyAPAZmngrFA1YUrykcvTuRWR99zJQ="; hash = "sha256-jM0v9O5a3yK547expRbS4cIZHp2U5nLDXMK8PdYeD2s=";
}; };
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [ propagatedBuildInputs = [
django django
django-stubs-ext django-stubs-ext
mypy
types-pytz types-pytz
types-pyyaml types-pyyaml
typing-extensions typing-extensions
@ -35,8 +39,18 @@ buildPythonPackage rec {
tomli tomli
]; ];
passthru.optional-dependencies = {
compatible-mypy = [
mypy
];
};
nativeCheckInputs = [ nativeCheckInputs = [
pytestCheckHook pytestCheckHook
] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies);
pythonImportsCheck = [
"django-stubs"
]; ];
meta = with lib; { meta = with lib; {

View file

@ -4,19 +4,22 @@
, fetchFromGitHub , fetchFromGitHub
, mypy , mypy
, py , py
, coreapi
, pytest-mypy-plugins , pytest-mypy-plugins
, pytestCheckHook , pytestCheckHook
, pythonOlder , pythonOlder
, requests , requests
, types-pyyaml , types-pyyaml
, setuptools
, types-markdown
, types-requests , types-requests
, typing-extensions , typing-extensions
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "djangorestframework-stubs"; pname = "djangorestframework-stubs";
version = "3.14.4"; version = "3.14.5";
format = "setuptools"; pyproject = true;
disabled = pythonOlder "3.8"; disabled = pythonOlder "3.8";
@ -24,23 +27,44 @@ buildPythonPackage rec {
owner = "typeddjango"; owner = "typeddjango";
repo = "djangorestframework-stubs"; repo = "djangorestframework-stubs";
rev = "refs/tags/${version}"; rev = "refs/tags/${version}";
hash = "sha256-DNoD6V7l224yQa+AfI+KNviUJBxKB0u0m9B5qX5HuzQ="; hash = "sha256-AOhNlhTZ6Upevb/7Z1sUQoIkIlwYlIcf1CC+Ag7H4bg=";
}; };
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [ propagatedBuildInputs = [
django-stubs django-stubs
mypy
requests requests
types-pyyaml types-pyyaml
types-requests types-requests
typing-extensions typing-extensions
]; ];
passthru.optional-dependencies = {
compatible-mypy = [
mypy
] ++ django-stubs.optional-dependencies.compatible-mypy;
coreapi = [
coreapi
];
markdown = [
types-markdown
];
};
nativeCheckInputs = [ nativeCheckInputs = [
mypy
py py
pytest-mypy-plugins pytest-mypy-plugins
pytestCheckHook pytestCheckHook
] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies);
# Upstream recommends mypy > 1.7 which we don't have yet, thus all testsare failing with 3.14.5 and below
doCheck = false;
pythonImportsCheck = [
"rest_framework-stubs"
]; ];
meta = with lib; { meta = with lib; {

View file

@ -0,0 +1,39 @@
{ lib
, buildPythonPackage
, callPackage
, fetchurl
, libeduvpn-common
, selenium
, setuptools
}:
buildPythonPackage rec {
inherit (libeduvpn-common) version src;
pname = "eduvpn-common";
sourceRoot = "${pname}-${version}/wrappers/python";
patches = [ ./use-nix-lib.patch ];
postPatch = ''
substituteInPlace eduvpn_common/loader.py \
--subst-var-by libeduvpn-common ${libeduvpn-common.out}/lib/lib${pname}-${version}.so
'';
format = "pyproject";
propagatedBuildInputs = [
libeduvpn-common
setuptools
];
nativeCheckInputs = [
selenium
];
pythonImportsCheck = [ "eduvpn_common" ];
meta = libeduvpn-common.meta // {
description = "Python wrapper for libeduvpn-common";
};
}

View file

@ -0,0 +1,25 @@
diff --git a/eduvpn_common/loader.py b/eduvpn_common/loader.py
index 673d180..195f8c1 100644
--- a/eduvpn_common/loader.py
+++ b/eduvpn_common/loader.py
@@ -21,6 +21,7 @@ def load_lib() -> CDLL:
:return: The Go shared library loaded with cdll.LoadLibrary from ctypes
:rtype: CDLL
"""
+ return cdll.LoadLibrary("@libeduvpn-common@")
lib_prefixes = defaultdict(
lambda: "lib",
{
diff --git a/setup.py b/setup.py
index 0d23379..a9d7926 100755
--- a/setup.py
+++ b/setup.py
@@ -92,4 +92,6 @@ class bdist_wheel(_bdist_wheel):
self.exports_lib_path = "../../exports/lib" # default
def run(self):
+ _bdist_wheel.run(self)
+ return
self.plat_name_supplied = True # Force use platform
libpath = getlibpath(self.plat_name)

View file

@ -13,7 +13,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "environs"; pname = "environs";
version = "10.0.0"; version = "10.1.0";
pyproject = true; pyproject = true;
disabled = pythonOlder "3.8"; disabled = pythonOlder "3.8";
@ -22,7 +22,7 @@ buildPythonPackage rec {
owner = "sloria"; owner = "sloria";
repo = "environs"; repo = "environs";
rev = "refs/tags/${version}"; rev = "refs/tags/${version}";
hash = "sha256-B/ICzopFuOAWMlDn950LXmi/XQaQxh5jFVmLdmt7Dlg="; hash = "sha256-G9dgOugmFRHSLlmVHs2H5XyF3UKghAGtuzTWn4IB4dI=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [

View file

@ -10,7 +10,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "evohome-async"; pname = "evohome-async";
version = "0.4.16"; version = "0.4.17";
pyproject = true; pyproject = true;
disabled = pythonOlder "3.11"; disabled = pythonOlder "3.11";
@ -19,7 +19,7 @@ buildPythonPackage rec {
owner = "zxdavb"; owner = "zxdavb";
repo = "evohome-async"; repo = "evohome-async";
rev = "refs/tags/${version}"; rev = "refs/tags/${version}";
hash = "sha256-2tcfcM/XFPP/HO+MEcXdPA6/4BUOQBuEIUWCvjUTbdg="; hash = "sha256-8Dl23U0LynNPxDpo79CmA4H8o2knU2rrtNYwDPZBVRQ=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [

View file

@ -11,14 +11,14 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "google-cloud-org-policy"; pname = "google-cloud-org-policy";
version = "1.9.0"; version = "1.10.0";
format = "setuptools"; format = "setuptools";
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
hash = "sha256-3Db3R3PnzYMiMNrbP1BiU7TfKIxR11v491i+JH10Q/0="; hash = "sha256-PnJ01fMsTaUupgaI1W5mIn39hA3NAVGGdLywVDcTDRY=";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [

View file

@ -10,7 +10,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "huawei-lte-api"; pname = "huawei-lte-api";
version = "1.7.3"; version = "1.8.1";
format = "setuptools"; format = "setuptools";
disabled = pythonOlder "3.6"; disabled = pythonOlder "3.6";
@ -19,7 +19,7 @@ buildPythonPackage rec {
owner = "Salamek"; owner = "Salamek";
repo = "huawei-lte-api"; repo = "huawei-lte-api";
rev = "refs/tags/${version}"; rev = "refs/tags/${version}";
hash = "sha256-a01oNfUivbCzTd5auu+EXj+yvcC1vKyktIFK+zPQGy4="; hash = "sha256-KmkoCQDZ1NC3CKfV5DZBukExF9fUTojvWv2ZLTCzRZU=";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [

View file

@ -13,12 +13,12 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "kaggle"; pname = "kaggle";
version = "1.5.16"; version = "1.6.1";
format = "setuptools"; format = "setuptools";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "sha256-prNUL1kM80GlrUQdWuAhvpO9ZEQclsdYsVSQNJWjpgA="; sha256 = "sha256-AsdRYWbeG++zACCSVfnCPuy1hIdixLqNbxP0npmmabQ=";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [

View file

@ -10,14 +10,14 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "laspy"; pname = "laspy";
version = "2.5.2"; version = "2.5.3";
format = "pyproject"; format = "pyproject";
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
hash = "sha256-gZQLLW288XRhc78R/CjpYHQrwi3jCpdfnsRNezKCbTk="; hash = "sha256-StaYkUNY6loJbaUuabzszTINnd+zZ0gKXCteCG24Erc=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [

View file

@ -17,14 +17,14 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "mandown"; pname = "mandown";
version = "1.6.1"; version = "1.7.0";
format = "pyproject"; format = "pyproject";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "potatoeggy"; owner = "potatoeggy";
repo = "mandown"; repo = "mandown";
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
hash = "sha256-vf7BCreRb77QkurZJ5cKCVxZe+fErd7/6NQTupa4Xao="; hash = "sha256-oHa7/2fv+BG5KIKFIICYBqddub5SokDvAI6frbVwGSo=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [

View file

@ -12,16 +12,16 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "mizani"; pname = "mizani";
version = "0.10.0"; version = "0.9.3";
format = "pyproject"; pyproject = true;
disabled = pythonOlder "3.9"; disabled = pythonOlder "3.9";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "has2k1"; owner = "has2k1";
repo = pname; repo = "mizani";
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
hash = "sha256-JrE12dU0Es4VwUZLcbB8mabifnpxZ7Qt68WJ22HvPm4="; hash = "sha256-gZwM8/9ipcA73m1sPCz9oxD7cndli+qX9+gLILdbq1A=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [

View file

@ -11,8 +11,8 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "mkdocstrings-python"; pname = "mkdocstrings-python";
version = "1.7.5"; version = "1.8.0";
format = "pyproject"; pyproject = true;
disabled = pythonOlder "3.8"; disabled = pythonOlder "3.8";
@ -20,7 +20,7 @@ buildPythonPackage rec {
owner = "mkdocstrings"; owner = "mkdocstrings";
repo = "python"; repo = "python";
rev = "refs/tags/${version}"; rev = "refs/tags/${version}";
hash = "sha256-PfAdECR80kYgvaaL+09zsqOeWa8z4pSnORNFnj+/l7M="; hash = "sha256-beLZpf0Zjk6LjveD7c+1XEi4SpQnmmZZOM8dIvzqZGI=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [

View file

@ -8,13 +8,13 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "oelint-parser"; pname = "oelint-parser";
version = "2.13.3"; version = "2.13.11";
format = "setuptools"; format = "setuptools";
src = fetchPypi { src = fetchPypi {
inherit version; inherit version;
pname = "oelint_parser"; pname = "oelint_parser";
hash = "sha256-pjonw0VZlDK3xf8cfgn+qT4jZSYD8wRSDLz1Go9Y5so="; hash = "sha256-Hr+2S4AGx0W+rrMFdAlN7/OcDTFYivZVYknD/sHWMDs=";
}; };
buildInputs = [ pip ]; buildInputs = [ pip ];

View file

@ -21,14 +21,14 @@
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "open-clip-torch"; pname = "open-clip-torch";
version = "2.23.0"; version = "2.24.0";
pyproject = true; pyproject = true;
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "mlfoundations"; owner = "mlfoundations";
repo = "open_clip"; repo = "open_clip";
rev = "v${version}"; rev = "refs/tags/v${version}";
hash = "sha256-Txm47Tc4KMbz1i2mROT+IYbgS1Y0yHK80xY0YldgBFQ="; hash = "sha256-ugbXnXiOY9FrNvr8ZxnAgZO/SLCVoXbRgupi8cUwflU=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [

View file

@ -8,12 +8,12 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "opencensus"; pname = "opencensus";
version = "0.11.3"; version = "0.11.4";
format = "setuptools"; format = "setuptools";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
hash = "sha256-r3qYvVHmOWgUTXcvNG1pbtSYoy29xL4mfNYBHEzgXag="; hash = "sha256-y++H2Lh3MGSrYOXCoc7Vi7qjim0FLEGuwiSVjOVE7/I=";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [

View file

@ -7,14 +7,14 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "packageurl-python"; pname = "packageurl-python";
version = "0.13.1"; version = "0.13.4";
format = "setuptools"; format = "setuptools";
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
hash = "sha256-hPgFP0uFKUuYs7eHFUdYR/tI9FJewwLQbcNbJqmzB4o="; hash = "sha256-brXplQCcxzOHCV4LUHq2XfUTV9Jd3F/OPTVFrW3Lvug=";
}; };
nativeCheckInputs = [ nativeCheckInputs = [

View file

@ -15,14 +15,14 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "pdb2pqr"; pname = "pdb2pqr";
version = "3.6.1"; version = "3.6.2";
format = "setuptools"; format = "setuptools";
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
hash = "sha256-wFak5tKOsPYRflBW8viWEjM6Cku5JkWB6mWVyINYh1g="; hash = "sha256-He301TJ1bzWub0DZ6Ro/Xc+JMtJBbyygVpWjPY6RMbA=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [

View file

@ -8,14 +8,14 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "pdf2image"; pname = "pdf2image";
version = "1.16.3"; version = "1.17.0";
format = "setuptools"; format = "setuptools";
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
hash = "sha256-dCCIEMLO9NnjR3abjmKlIwOYLdtPLf10THq0uUCuKH4="; hash = "sha256-6qlZvBFrQg3X7EFfyuSbmBAN2j3RjNL9+obQnxEvbVc=";
}; };
postPatch = '' postPatch = ''

View file

@ -1,30 +1,31 @@
{ lib { lib
, adjusttext
, buildPythonPackage , buildPythonPackage
, fetchPypi , pythonOlder
, geopandas , fetchFromGitHub
, setuptools-scm
, matplotlib , matplotlib
, mizani , mizani
, pandas , pandas
, patsy , patsy
, pytestCheckHook
, pythonOlder
, scikit-misc
, scipy , scipy
, setuptools-scm
, statsmodels , statsmodels
, geopandas
, pytestCheckHook
, scikit-misc
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "plotnine"; pname = "plotnine";
version = "0.12.4"; version = "0.12.4";
format = "pyproject"; pyproject = true;
disabled = pythonOlder "3.8"; disabled = pythonOlder "3.8";
src = fetchPypi { src = fetchFromGitHub {
inherit pname version; owner = "has2k1";
hash = "sha256-rcQaZyUDWURFqPoZhyeZJTvQeEzb1aHMFmV6HdILqQU="; repo = "plotnine";
rev = "refs/tags/v${version}";
hash = "sha256-bm7xMCFDFimINlUePqLYw5bZtI5B151QOtltajgSm2U=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [
@ -46,7 +47,6 @@ buildPythonPackage rec {
]; ];
nativeCheckInputs = [ nativeCheckInputs = [
adjusttext
geopandas geopandas
pytestCheckHook pytestCheckHook
scikit-misc scikit-misc
@ -61,20 +61,38 @@ buildPythonPackage rec {
]; ];
disabledTestPaths = [ disabledTestPaths = [
# Assertion Errors # Assertion Errors:
"tests/test_theme.py" # Generated plot images do not exactly match the expected files.
"tests/test_scale_internals.py" # After manually checking, this is caused by extremely subtle differences in label placement.
"tests/test_scale_labelling.py" "tests/test_annotation_logticks.py"
"tests/test_position.py" "tests/test_coords.py"
"tests/test_geom_text_label.py"
"tests/test_geom_smooth.py"
"tests/test_geom_segment.py"
"tests/test_geom_ribbon_area.py"
"tests/test_geom_map.py"
"tests/test_facets.py" "tests/test_facets.py"
"tests/test_facet_labelling.py" "tests/test_facet_labelling.py"
"tests/test_coords.py" "tests/test_geom_bar_col_histogram.py"
"tests/test_annotation_logticks.py" "tests/test_geom_bin_2d.py"
"tests/test_geom_boxplot.py"
"tests/test_geom_density.py"
"tests/test_geom_dotplot.py"
"tests/test_geom_map.py"
"tests/test_geom_path_line_step.py"
"tests/test_geom_point.py"
"tests/test_geom_raster.py"
"tests/test_geom_ribbon_area.py"
"tests/test_geom_sina.py"
"tests/test_geom_smooth.py"
"tests/test_geom_text_label.py"
"tests/test_geom_violin.py"
"tests/test_position.py"
"tests/test_qplot.py"
"tests/test_scale_internals.py"
"tests/test_scale_labelling.py"
"tests/test_stat_ecdf.py"
"tests/test_stat_summary.py"
"tests/test_theme.py"
# Linting / formatting: useless as it has nothing to do with the package functionning
# Disabling this prevents adding a dependency on 'ruff' and 'black'.
"tests/test_lint_and_format.py"
]; ];
meta = with lib; { meta = with lib; {

View file

@ -11,8 +11,8 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "py-serializable"; pname = "py-serializable";
version = "0.16.0"; version = "0.17.1";
format = "pyproject"; pyproject = true;
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
@ -20,7 +20,7 @@ buildPythonPackage rec {
owner = "madpah"; owner = "madpah";
repo = "serializable"; repo = "serializable";
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
hash = "sha256-javjmdFQBxg/yqa6lsxKK18DgvVu/YmqvaWo2Upgzqs="; hash = "sha256-G7bIsvWdL4qVg4akJ2KtXVS10DiJSFUYEzyQSp9ry9o=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [

View file

@ -14,16 +14,16 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "pywemo"; pname = "pywemo";
version = "1.3.1"; version = "1.4.0";
format = "pyproject"; pyproject = true;
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.8";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = pname; owner = "pywemo";
repo = pname; repo = "pywemo";
rev = "refs/tags/${version}"; rev = "refs/tags/${version}";
hash = "sha256-RZeg6/xAGRumd4aM/mQQnIrIXB/rUrdeQQxk2c1mJNI="; hash = "sha256-XpCRrCJYHv1so5/aHoGrtkgp3RX1NUKPUawJqK/FaG0=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [
@ -32,9 +32,9 @@ buildPythonPackage rec {
propagatedBuildInputs = [ propagatedBuildInputs = [
ifaddr ifaddr
lxml
requests requests
urllib3 urllib3
lxml
]; ];
__darwinAllowLocalNetworking = true; __darwinAllowLocalNetworking = true;

View file

@ -4,24 +4,29 @@
, fetchFromGitHub , fetchFromGitHub
, pythonOlder , pythonOlder
, rich , rich
, setuptools
, typer , typer
, typing-extensions , typing-extensions
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "rich-click"; pname = "rich-click";
version = "1.7.2"; version = "1.7.3";
format = "setuptools"; pyproject = true;
disabled = pythonOlder "3.8"; disabled = pythonOlder "3.8";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "ewels"; owner = "ewels";
repo = pname; repo = "rich-click";
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
hash = "sha256-uPEPYQIoLdjUJZlcg/0jenzIz464nwGi5KfOOyIQ/3I="; hash = "sha256-ZTUJbW39SBaqgVG+ytmnPG6DK7J2XGPwmC2w3TCodBo=";
}; };
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [ propagatedBuildInputs = [
click click
rich rich

View file

@ -1,39 +1,53 @@
{ lib { lib
, fetchPypi
, buildPythonPackage , buildPythonPackage
, fetchFromGitHub
, fetchpatch
, absl-py
, chex , chex
, jaxlib , distrax
, tensorflow-probability
, optax
, dm-haiku
, bsuite
, frozendict
, pytestCheckHook
, dm-env , dm-env
, distrax }: , jax
, jaxlib
, numpy
, tensorflow-probability
, dm-haiku
, optax
, pytestCheckHook
}:
buildPythonPackage rec { buildPythonPackage rec {
pname = "rlax"; pname = "rlax";
version = "0.1.6"; version = "0.1.6";
format = "setuptools"; format = "setuptools";
src = fetchPypi { src = fetchFromGitHub {
inherit pname version; owner = "google-deepmind";
hash = "sha256-C3nFOv/zxvAoz6WZ0RAZffzEbxIx/XrGabO4QPxrik8="; repo = "rlax";
rev = "refs/tags/v${version}";
hash = "sha256-v2Lbzya+E9d7tlUVlQQa4fuPp2q3E309Qvyt70mcdb0=";
}; };
buildInputs = [ patches = [
(fetchpatch { # Follow chex API change (https://github.com/google-deepmind/chex/pull/52)
name = "replace-deprecated-chex-assertions";
url = "https://github.com/google-deepmind/rlax/commit/30e7913a1102667137654d6e652a6c4b9e9ba1f4.patch";
hash = "sha256-OPnuTKEtwZ28hzR1660v3DcktxTYjhR1xYvFbQvOhgs=";
})
];
propagatedBuildInputs = [
absl-py
chex chex
jaxlib
distrax distrax
dm-env
jax
jaxlib
numpy
tensorflow-probability tensorflow-probability
]; ];
nativeCheckInputs = [ nativeCheckInputs = [
bsuite
dm-env
dm-haiku dm-haiku
frozendict
optax optax
pytestCheckHook pytestCheckHook
]; ];

View file

@ -17,7 +17,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "textual"; pname = "textual";
version = "0.44.0"; version = "0.47.1";
pyproject = true; pyproject = true;
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
@ -26,7 +26,7 @@ buildPythonPackage rec {
owner = "Textualize"; owner = "Textualize";
repo = pname; repo = pname;
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
hash = "sha256-8PMK4fPbtIEUuy7bVWE6JUZzknBP5DnGT3kYKwHf6Zs="; hash = "sha256-RFaZKQ+0o6ZvfZxx95a1FjSHVJ0VOIAfzkdxYQXYBKU=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [

View file

@ -0,0 +1,32 @@
{ lib
, buildPythonPackage
, fetchPypi
, setuptools
}:
buildPythonPackage rec {
pname = "types-markdown";
version = "3.5.0.20240106";
pyproject = true;
src = fetchPypi {
pname = "types-Markdown";
inherit version;
hash = "sha256-vkfTXL5h1Fi9F67BJ/HaIzzW7Zb6mhMccQN4pOiFcDA=";
};
nativeBuildInputs = [
setuptools
];
pythonImportsCheck = [
"markdown-stubs"
];
meta = with lib; {
description = "Typing stubs for Markdown";
homepage = "https://pypi.org/project/types-Markdown/";
license = licenses.asl20;
maintainers = with maintainers; [ fab ];
};
}

View file

@ -1,4 +1,4 @@
{ lib, rustPlatform, fetchFromGitHub, testers, cbfmt }: { lib, rustPlatform, fetchFromGitHub, stdenv, testers, cbfmt }:
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "cbfmt"; pname = "cbfmt";
@ -13,6 +13,9 @@ rustPlatform.buildRustPackage rec {
cargoSha256 = "sha256-6oZCpjQ8t/QLFhEtF7td8KGI/kFE04pg7OELutsrJKo="; cargoSha256 = "sha256-6oZCpjQ8t/QLFhEtF7td8KGI/kFE04pg7OELutsrJKo=";
# Work around https://github.com/NixOS/nixpkgs/issues/166205.
env = lib.optionalAttrs stdenv.cc.isClang { NIX_LDFLAGS = "-l${stdenv.cc.libcxx.cxxabi.libName}"; };
passthru.tests.version = testers.testVersion { passthru.tests.version = testers.testVersion {
package = cbfmt; package = cbfmt;
}; };

View file

@ -6,8 +6,8 @@ let
## fetchgit info ## fetchgit info
url = "git://sourceware.org/git/systemtap.git"; url = "git://sourceware.org/git/systemtap.git";
rev = "release-${version}"; rev = "release-${version}";
sha256 = "sha256-UiUMoqdfkk6mzaPGctpQW3dvOWKhNBNuScJ5BpCykVg="; sha256 = "sha256-2L7+k/tgI6trkstDTY4xxfFzmNDlxbCHDRKAFaERQeM=";
version = "4.8"; version = "5.0a";
inherit (kernel) stdenv; inherit (kernel) stdenv;
@ -22,6 +22,14 @@ let
env.NIX_CFLAGS_COMPILE = toString [ "-Wno-error=deprecated-declarations" ]; # Needed with GCC 12 env.NIX_CFLAGS_COMPILE = toString [ "-Wno-error=deprecated-declarations" ]; # Needed with GCC 12
}; };
## symlink farm for --sysroot flag
sysroot = runCommand "systemtap-sysroot-${kernel.version}" { } ''
mkdir -p $out/boot $out/usr/lib/debug
ln -s ${kernel.dev}/vmlinux ${kernel.dev}/lib $out
ln -s ${kernel.dev}/vmlinux $out/usr/lib/debug
ln -s ${kernel}/System.map $out/boot/System.map-${kernel.version}
'';
pypkgs = with python3.pkgs; makePythonPath [ pyparsing ]; pypkgs = with python3.pkgs; makePythonPath [ pyparsing ];
in runCommand "systemtap-${kernel.version}-${version}" { in runCommand "systemtap-${kernel.version}-${version}" {
@ -40,7 +48,7 @@ in runCommand "systemtap-${kernel.version}-${version}" {
done done
rm $out/bin/stap $out/bin/dtrace rm $out/bin/stap $out/bin/dtrace
makeWrapper $stapBuild/bin/stap $out/bin/stap \ makeWrapper $stapBuild/bin/stap $out/bin/stap \
--add-flags "-r ${kernel.dev}" \ --add-flags "--sysroot ${sysroot}" \
--prefix PATH : ${lib.makeBinPath [ stdenv.cc.cc stdenv.cc.bintools elfutils gnumake ]} --prefix PATH : ${lib.makeBinPath [ stdenv.cc.cc stdenv.cc.bintools elfutils gnumake ]}
makeWrapper $stapBuild/bin/dtrace $out/bin/dtrace \ makeWrapper $stapBuild/bin/dtrace $out/bin/dtrace \
--prefix PYTHONPATH : ${pypkgs} --prefix PYTHONPATH : ${pypkgs}

View file

@ -10,14 +10,14 @@
buildGoModule rec { buildGoModule rec {
pname = "symfony-cli"; pname = "symfony-cli";
version = "5.7.8"; version = "5.8.0";
vendorHash = "sha256-bscRqFYV2qzTmu04l00/iMsFQR5ITPBFVr9BQwVGFU8="; vendorHash = "sha256-JIvMW12q5RySBP6b1k178N8V8XFCaTEJj/XslqbxcpA=";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "symfony-cli"; owner = "symfony-cli";
repo = "symfony-cli"; repo = "symfony-cli";
rev = "v${version}"; rev = "v${version}";
hash = "sha256-s8Ca8nKcJI6BqhT3CI6hIhUCgxPXD6mZMIvNNaAXFH0="; hash = "sha256-X85hPwnn7UnadhPolS8gwC+KYvJMZXOo3Dy72I2f2Q4=";
}; };
ldflags = [ ldflags = [

View file

@ -2,16 +2,16 @@
buildGoModule rec { buildGoModule rec {
pname = "flyctl"; pname = "flyctl";
version = "0.1.136"; version = "0.1.137";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "superfly"; owner = "superfly";
repo = "flyctl"; repo = "flyctl";
rev = "v${version}"; rev = "v${version}";
hash = "sha256-1ffN9uhfh/fK0OuNmRIJ7VAiAR2bgHxtxv919p3C47c="; hash = "sha256-JXrern3jDp9lc6HnsfTfjNDJ0mMaXDdYuhEAQ5mwmJo=";
}; };
vendorHash = "sha256-HPr5qTpz8KvgRbp3MRFTnXNMtqylbwQXiKPgT3O4dfw="; vendorHash = "sha256-nXd0YUIccUkHJSy11KY14IgN6t0ntDe9lg8VxUn5buE=";
subPackages = [ "." ]; subPackages = [ "." ];

View file

@ -2,18 +2,13 @@
python3Packages.buildPythonApplication rec { python3Packages.buildPythonApplication rec {
pname = "i3a"; pname = "i3a";
version = "2.0.1"; version = "2.1.1";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
hash = "sha256-2k1HYtgJ76qXLvX6RmOSKtMMg+K722n8U9YmBANvQvE="; hash = "sha256-b1bB7Gto4aL1rbQXIelBVhutjIvZY+K+Y66BGN7OcCs=";
}; };
postPatch = ''
substituteInPlace setup.py \
--replace "python_requires='>=3.7,<3.10'," "python_requires='>=3.7',"
'';
nativeBuildInputs = [ python3Packages.setuptools-scm ]; nativeBuildInputs = [ python3Packages.setuptools-scm ];
propagatedBuildInputs = [ python3Packages.i3ipc ]; propagatedBuildInputs = [ python3Packages.i3ipc ];
@ -21,8 +16,9 @@ python3Packages.buildPythonApplication rec {
doCheck = false; doCheck = false;
meta = with lib; { meta = with lib; {
homepage = "https://git.goral.net.pl/mgoral/i3a"; changelog = "https://git.goral.net.pl/i3a.git/log/";
description = "A set of scripts used for automation of i3 and sway window manager layouts"; description = "A set of scripts used for automation of i3 and sway window manager layouts";
homepage = "https://git.goral.net.pl/i3a.git/about";
license = licenses.gpl3Plus; license = licenses.gpl3Plus;
maintainers = with maintainers; [ moni ]; maintainers = with maintainers; [ moni ];
}; };

View file

@ -5,13 +5,13 @@
buildGoModule rec { buildGoModule rec {
pname = "mox"; pname = "mox";
version = "0.0.8"; version = "0.0.9";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "mjl-"; owner = "mjl-";
repo = "mox"; repo = "mox";
rev = "v${version}"; rev = "v${version}";
hash = "sha256-mr07nn0fy19j/Yv46Rxzt2qlqDHfnSkt3bjQvMQ7zsE="; hash = "sha256-QDDNWGuDWxUBdoYEHQC7Ug0i8NyaqqGVsmFtTWfiM0M=";
}; };
# set the version during buildtime # set the version during buildtime

View file

@ -6,13 +6,13 @@
buildGoModule rec { buildGoModule rec {
pname = "ferretdb"; pname = "ferretdb";
version = "1.17.0"; version = "1.18.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "FerretDB"; owner = "FerretDB";
repo = "FerretDB"; repo = "FerretDB";
rev = "v${version}"; rev = "v${version}";
hash = "sha256-GHUIr43rcA+H9FLQrrnTKLggyujGE0Is0VisLkL/EQI="; hash = "sha256-NNfX0WY3AynH5CtvBMaPcurom7r7suxKwn+kVnlxM/A=";
}; };
postPatch = '' postPatch = ''
@ -20,7 +20,7 @@ buildGoModule rec {
echo nixpkgs > build/version/package.txt echo nixpkgs > build/version/package.txt
''; '';
vendorHash = "sha256-Mgc+TpK7XnRCT/CLDyW7fIs6jB2LbYlTceiytErIj+U="; vendorHash = "sha256-4AUTKZ4eJZkaSKq5norUDeGhIRygLSIuXxhs3z3uGxs=";
CGO_ENABLED = 0; CGO_ENABLED = 0;

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