fix(nix): nixpkgs input url should be unstable
This commit is contained in:
24
flake.nix
24
flake.nix
@@ -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;
|
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user