fix(nix): #291
This commit is contained in:
orangc
2024-10-01 10:17:30 +03:00
committed by GitHub
2 changed files with 38 additions and 44 deletions

12
flake.lock generated
View File

@@ -6,11 +6,11 @@
"systems": "systems" "systems": "systems"
}, },
"locked": { "locked": {
"lastModified": 1725841979, "lastModified": 1727303518,
"narHash": "sha256-SXYqzpHPuXFR6w/cUKo3VN8XRn6XA2mGbdRXs9oLk6k=", "narHash": "sha256-lO5JMynTxNZxg/+E4/Y9reeLGIz/M8cEue+Re4cP6qo=",
"owner": "Aylur", "owner": "Aylur",
"repo": "ags", "repo": "ags",
"rev": "aaef50bb2c80ef4b4a359329d72669a95e7c4796", "rev": "cd543afec4d9ed708990e5ba52184716809bf248",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -37,11 +37,11 @@
}, },
"nixpkgs_2": { "nixpkgs_2": {
"locked": { "locked": {
"lastModified": 1726463316, "lastModified": 1727634051,
"narHash": "sha256-gI9kkaH0ZjakJOKrdjaI/VbaMEo9qBbSUl93DnU7f4c=", "narHash": "sha256-S5kVU7U82LfpEukbn/ihcyNt2+EvG7Z5unsKW9H/yFA=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "99dc8785f6a0adac95f5e2ab05cc2e1bf666d172", "rev": "06cf0e1da4208d3766d898b7fdab6513366d45b9",
"type": "github" "type": "github"
}, },
"original": { "original": {

View File

@@ -2,12 +2,11 @@
description = "A Bar/Panel for Hyprland with extensive customizability."; description = "A Bar/Panel for Hyprland with extensive customizability.";
inputs = { inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable"; nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
ags.url = "github:Aylur/ags"; ags.url = "github:Aylur/ags";
}; };
outputs = inputs: outputs = inputs: let
let
systems = [ systems = [
"x86_64-linux" "x86_64-linux"
"x86_64-darwin" "x86_64-darwin"
@@ -23,9 +22,8 @@
} }
); );
devShellFor = devShellFor = system:
system: inputs.nixpkgs.lib.genAttrs ["default"] (
inputs.nixpkgs.lib.genAttrs [ "default" ] (
_: _:
inputs.nixpkgs.legacyPackages.${system}.mkShell { inputs.nixpkgs.legacyPackages.${system}.mkShell {
buildInputs = [ buildInputs = [
@@ -60,25 +58,21 @@
''; '';
} }
); );
in in {
{
devShells = forEachSystem devShellFor; devShells = forEachSystem devShellFor;
overlay = final: prev: { overlay = final: prev: {
hyprpanel = hyprpanel =
if final ? callPackage if final ? callPackage
then (final.callPackage ./nix { inherit inputs; }).desktop.script then (final.callPackage ./nix {inherit inputs;}).desktop.script
else inputs.self.packages.${prev.stdenv.system}.default; else inputs.self.packages.${prev.stdenv.system}.default;
}; };
packages = forEachSystem ( packages = forEachSystem (
system: system: let
let
pkgs = pkgsFor.${system}; pkgs = pkgsFor.${system};
in in {
{ default = (pkgs.callPackage ./nix {inherit inputs;}).desktop.script;
default = (pkgs.callPackage ./nix { inherit inputs; }).desktop.script;
} }
); );
}; };
} }