Merge pull request 'fix nixpkgs command with latest nix version' (#2267) from nixpkgs-fix into main
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/2267
This commit is contained in:
@@ -241,7 +241,7 @@ class TerminalLogger(AbstractLogger):
|
|||||||
|
|
||||||
class XMLLogger(AbstractLogger):
|
class XMLLogger(AbstractLogger):
|
||||||
def __init__(self, outfile: str) -> None:
|
def __init__(self, outfile: str) -> None:
|
||||||
self.logfile_handle = codecs.open(outfile, "wb")
|
self.logfile_handle = codecs.open(outfile, "wb") # noqa: SIM115
|
||||||
self.xml = XMLGenerator(self.logfile_handle, encoding="utf-8")
|
self.xml = XMLGenerator(self.logfile_handle, encoding="utf-8")
|
||||||
self.queue: Queue[dict[str, str]] = Queue()
|
self.queue: Queue[dict[str, str]] = Queue()
|
||||||
|
|
||||||
|
|||||||
6
flake.lock
generated
6
flake.lock
generated
@@ -78,11 +78,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1728538411,
|
"lastModified": 1729265718,
|
||||||
"narHash": "sha256-f0SBJz1eZ2yOuKUr5CA9BHULGXVSn6miBuUWdTyhUhU=",
|
"narHash": "sha256-4HQI+6LsO3kpWTYuVGIzhJs1cetFcwT7quWCk/6rqeo=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "b69de56fac8c2b6f8fd27f2eca01dcda8e0a4221",
|
"rev": "ccc0c2126893dd20963580b6478d1a10a4512185",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|||||||
@@ -16,6 +16,7 @@
|
|||||||
runCommand,
|
runCommand,
|
||||||
setuptools,
|
setuptools,
|
||||||
stdenv,
|
stdenv,
|
||||||
|
nixVersions,
|
||||||
|
|
||||||
# custom args
|
# custom args
|
||||||
clan-core-path,
|
clan-core-path,
|
||||||
@@ -67,7 +68,16 @@ let
|
|||||||
'';
|
'';
|
||||||
|
|
||||||
# Create a custom nixpkgs for use within the project
|
# Create a custom nixpkgs for use within the project
|
||||||
nixpkgs' = runCommand "nixpkgs" { nativeBuildInputs = [ nix ]; } ''
|
|
||||||
|
nixpkgs' =
|
||||||
|
runCommand "nixpkgs"
|
||||||
|
{
|
||||||
|
nativeBuildInputs = [
|
||||||
|
# old nix version doesn't support --flake flag
|
||||||
|
(if lib.versionAtLeast nix.version "2.24" then nix else nixVersions.latest)
|
||||||
|
];
|
||||||
|
}
|
||||||
|
''
|
||||||
mkdir $out
|
mkdir $out
|
||||||
cat > $out/flake.nix << EOF
|
cat > $out/flake.nix << EOF
|
||||||
{
|
{
|
||||||
@@ -81,7 +91,7 @@ let
|
|||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
ln -sf ${nixpkgs} $out/path
|
ln -sf ${nixpkgs} $out/path
|
||||||
nix flake update $out \
|
HOME=$TMPDIR nix flake update --flake $out \
|
||||||
--store ./. \
|
--store ./. \
|
||||||
--extra-experimental-features 'nix-command flakes'
|
--extra-experimental-features 'nix-command flakes'
|
||||||
'';
|
'';
|
||||||
|
|||||||
@@ -531,12 +531,12 @@ class StatusNotifierImplementation(BaseImplementation):
|
|||||||
):
|
):
|
||||||
self.add_method(method_name, in_args, out_args, callback)
|
self.add_method(method_name, in_args, out_args, callback)
|
||||||
|
|
||||||
for signal_name, value in (
|
for signal_name, signal_value in (
|
||||||
("NewIcon", ()),
|
("NewIcon", ()),
|
||||||
("NewIconThemePath", ("s",)),
|
("NewIconThemePath", ("s",)),
|
||||||
("NewStatus", ("s",)),
|
("NewStatus", ("s",)),
|
||||||
):
|
):
|
||||||
self.add_signal(signal_name, value)
|
self.add_signal(signal_name, signal_value)
|
||||||
|
|
||||||
def register(self):
|
def register(self):
|
||||||
self.menu.register()
|
self.menu.register()
|
||||||
|
|||||||
Reference in New Issue
Block a user