Open uzytkownik opened 2 months ago
Actually the update might work but my WAR to build kicad-unstable might prevent it:
(final: prev: {
kicad-unstable = (prev.kicad-unstable.override {
srcs = {
kicadVersion = "2024-08-15";
libVersion = "2024-08-15";
symbols = pkgs.fetchFromGitLab {
group = "kicad";
owner = "libraries";
repo = "kicad-symbols";
rev = "6c4c693f7dce65185f4059795d60b784ac4c76a8";
sha256 = "sha256-Auz4gZWKBYgTZ6YNMHM+K4Oi9h1rpjayFCR9xUgn1x4=";
};
templates = pkgs.fetchFromGitLab {
group = "kicad";
owner = "libraries";
repo = "kicad-templates";
rev = "b65257c57a6222d67db23a6d2b205600e3bf4c9a";
sha256 = "sha256-6jNq2ZCeEDPwRGY1Av9crTu72rqYIom+EjDJPWbmLQ4=";
};
footprints = pkgs.fetchFromGitLab {
group = "kicad";
owner = "libraries";
repo = "kicad-footprints";
rev = "cbbd20409d6b3220b50edd5daefcae73290a88e1";
sha256 = "sha256-ikbmXUGhGujxwq9JdoUZ30Isfw7oMSu5leGaaRZS/Q4=";
};
packages3d = pkgs.fetchFromGitLab {
group = "kicad";
owner = "libraries";
repo = "kicad-packages3d";
rev = "eef24e75adc1d7a09e987b00fee9967b29aedd2e";
sha256 = "sha256-UVVggKKvHIkkiZdKTdvYW3tCC5nzSgtW5qB/MzZm0Q8=";
};
};
}).overrideAttrs(finalAttrs: prevAttrs: {
src = prevAttrs.base.overrideAttrs (finalAttr: prevAttrs: {
version = builtins.substring 0 10 "6641183d0929e255f3c3f449ab2f5df078c83cb5";
src = pkgs.fetchFromGitLab {
group = "kicad";
owner = "code";
repo = "kicad";
rev = "6641183d0929e255f3c3f449ab2f5df078c83cb5";
sha256 = "sha256-YLSTOAIybyhbbjLyj2AZNOWiVV7sfctELiBx/SxrYz8=";
};
cmakeFlags = prevAttrs.cmakeFlags ++ [
"-D Protobuf_DIR=${pkgs.protobuf}"
];
buildInputs = prevAttrs.buildInputs ++ [pkgs.protobuf];
nativeBuildInputs = prevAttrs.nativeBuildInputs ++ [pkgs.protobuf];
doCheck = false;
doInstallCheck = false;
});
});
})
I will try to create pr if I succeeds with update directly in nixpkgs.
Unstable Kicad fails for me with the following:
sudo nixos-rebuild switch --upgrade
unpacking 4 channels...
building Nix...
building the system configuration...
error:
… while calling the 'head' builtin
at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/attrsets.nix:1:35787:
… while evaluating the attribute 'value'
at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:1:33591:
… while evaluating the option `system.build.toplevel':
… while evaluating definitions from `/nix/var/nix/profiles/per-user/root/channels/nixos/nixos/modules/system/activation/top-level.nix':
… while evaluating the option `system.systemBuilderArgs':
… while evaluating definitions from `/nix/var/nix/profiles/per-user/root/channels/nixos/nixos/modules/system/activation/activatable-system.nix':
… while evaluating the option `system.activationScripts.etc.text':
… while evaluating definitions from `/nix/var/nix/profiles/per-user/root/channels/nixos/nixos/modules/system/etc/etc-activation.nix':
… while evaluating definitions from `/nix/var/nix/profiles/per-user/root/channels/nixos/nixos/modules/system/etc/etc.nix':
… while evaluating the option `environment.etc."profiles/per-user/human".source':
(stack trace truncated; use '--show-trace' to show the full, detailed trace)
error: expected a Boolean but found a set: { _type = "pkgs"; AAAAAASomeThingsFailToEvaluate = «thunk»; AMB-plugins = «thunk»; ArchiSteamFarm = «thunk»; AusweisApp2 = «thunk»; BeatSaberModManager = «thunk»; CHOWTapeModel = «thunk»; ChowCentaur = «thunk»; ChowKick = «thunk»; ChowPhaser = «thunk»; «21563 attributes elided» }
at /nix/store/jp1m4r344yhziff9kc6bjbw72mhfmjhr-nixos/nixos/pkgs/applications/science/electronics/kicad/default.nix:276:20:
275| meta = rec {
276| description = (if (stable)
| ^
277| then "Open Source Electronics Design Automation suite"
Steps To Reproduce
Steps to reproduce the behavior:
Build log
kicad-unstable.log
Additional context
Updating to TOT does not fix issue.
Notify maintainers
@evils
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result.Add a :+1: reaction to issues you find important.