hyprman/flake.nix

35 lines
821 B
Nix
Raw Normal View History

2024-01-25 16:20:40 -06:00
{
description = "nix + cosmograph";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
};
outputs = inputs @ {
self,
nixpkgs,
}: let
inherit (nixpkgs.lib) genAttrs;
supportedSystems = ["x86_64-linux" "x86_64-darwin" "aarch64-linux" "aarch64-darwin"];
forAllSystems = f: genAttrs supportedSystems (system: f nixpkgs.legacyPackages.${system});
in {
2024-01-26 00:07:01 -06:00
devShells = forAllSystems (pkgs: {
2024-01-25 16:20:40 -06:00
default = pkgs.mkShell {
buildInputs = with pkgs; [
nim
nimble
];
};
2024-01-26 00:07:01 -06:00
});
packages = forAllSystems (
pkgs: {
hyprman = pkgs.buildNimPackage {
pname = "hyprman";
version = "2023.1001";
src = ./.;
};
default = self.packages.${pkgs.system}.hyprman;
2024-01-25 16:20:40 -06:00
}
2024-01-26 00:07:01 -06:00
);
2024-01-25 16:20:40 -06:00
};
}