33 lines
876 B
Nix
33 lines
876 B
Nix
{
|
|
description = "A very basic flake";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
|
|
|
|
quickshell = {
|
|
url = "git+https://git.outfoxxed.me/quickshell/quickshell";
|
|
};
|
|
};
|
|
|
|
outputs =
|
|
{ self, nixpkgs, ... }@inputs:
|
|
let
|
|
systems = [ "x86_64-linux" ];
|
|
forEachSystem = nixpkgs.lib.genAttrs systems;
|
|
pkgsForEach = nixpkgs.legacyPackages;
|
|
in
|
|
{
|
|
packages = forEachSystem (system: {
|
|
default = self.packages.${system}.nysh;
|
|
nysh = pkgsForEach.${system}.callPackage ./nix/package.nix {
|
|
quickshell = inputs.quickshell.packages.${system}.default;
|
|
};
|
|
});
|
|
|
|
devShells = forEachSystem (system: {
|
|
default = pkgsForEach.${system}.callPackage ./nix/shell.nix {
|
|
quickshell = inputs.quickshell.packages.${system}.default;
|
|
};
|
|
});
|
|
};
|
|
}
|