fix(nix): nixpkgs input url should be unstable

This commit is contained in:
orxngc
2024-10-01 10:07:38 +03:00
parent 2bf7fb5989
commit 13905d34c4

View File

@@ -2,31 +2,29 @@
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" "aarch64-darwin"
"aarch64-darwin" "aarch64-linux"
"aarch64-linux" ];
]; forEachSystem = inputs.nixpkgs.lib.genAttrs systems;
forEachSystem = inputs.nixpkgs.lib.genAttrs systems; pkgsFor = forEachSystem (
pkgsFor = forEachSystem ( system:
system:
import inputs.nixpkgs { import inputs.nixpkgs {
inherit system; inherit system;
config.allowUnfree = true; config.allowUnfree = true;
} }
); );
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 = [
pkgsFor.${system}.esbuild pkgsFor.${system}.esbuild
@@ -59,26 +57,22 @@
export GI_TYPELIB_PATH=${pkgsFor.${system}.libgtop}/lib/girepository-1.0:${pkgsFor.${system}.glib}/lib/girepository-1.0:$GI_TYPELIB_PATH export GI_TYPELIB_PATH=${pkgsFor.${system}.libgtop}/lib/girepository-1.0:${pkgsFor.${system}.glib}/lib/girepository-1.0:$GI_TYPELIB_PATH
''; '';
} }
);
in
{
devShells = forEachSystem devShellFor;
overlay = final: prev: {
hyprpanel =
if final ? callPackage
then (final.callPackage ./nix { inherit inputs; }).desktop.script
else inputs.self.packages.${prev.stdenv.system}.default;
};
packages = forEachSystem (
system:
let
pkgs = pkgsFor.${system};
in
{
default = (pkgs.callPackage ./nix { inherit inputs; }).desktop.script;
}
); );
}; in {
} devShells = forEachSystem devShellFor;
overlay = final: prev: {
hyprpanel =
if final ? callPackage
then (final.callPackage ./nix {inherit inputs;}).desktop.script
else inputs.self.packages.${prev.stdenv.system}.default;
};
packages = forEachSystem (
system: let
pkgs = pkgsFor.${system};
in {
default = (pkgs.callPackage ./nix {inherit inputs;}).desktop.script;
}
);
};
}