2
1
Fork 0

build: add nix package

This commit is contained in:
outfoxxed 2024-03-09 06:26:27 -08:00
parent 70989dc619
commit b218d3ec30
Signed by: outfoxxed
GPG key ID: 4C88A185FB89301E
10 changed files with 161 additions and 12 deletions

25
flake.nix Normal file
View file

@ -0,0 +1,25 @@
{
inputs = {
nixpkgs.url = "nixpkgs/nixos-unstable";
quickshell = {
url = "git+https://git.outfoxxed.me/outfoxxed/quickshell";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { self, nixpkgs, quickshell }: let
forEachSystem = fn: nixpkgs.lib.genAttrs
[ "x86_64-linux" "aarch64-linux" ]
(system: fn system nixpkgs.legacyPackages.${system});
in {
packages = forEachSystem (system: pkgs: rec {
quickshell-docs = import ./package.nix {
inherit pkgs;
srcpath = "${quickshell}/src";
};
default = quickshell-docs;
});
};
}