1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2025-12-05 21:15:38 -05:00
Files
DankMaterialShell/backend/flake.nix
2025-11-12 17:18:45 -05:00

62 lines
1.4 KiB
Nix

{
description = "DankMaterialShell Command Line Interface";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
};
outputs =
{ self, nixpkgs }:
let
supportedSystems = [
"x86_64-linux"
"aarch64-linux"
];
forAllSystems =
f:
builtins.listToAttrs (
map (system: {
name = system;
value = f system;
}) supportedSystems
);
in
{
packages = forAllSystems (
system:
let
pkgs = import nixpkgs { inherit system; };
lib = pkgs.lib;
in
{
dms-cli = pkgs.buildGoModule (finalAttrs: {
pname = "dms-cli";
version = "0.4.3";
src = ./.;
vendorHash = "sha256-XbCg6qQwD4g4R/hBReLGE4NOq9uv0LBqogmfpBs//Ic=";
subPackages = [ "cmd/dms" ];
ldflags = [
"-s"
"-w"
"-X main.Version=${finalAttrs.version}"
];
meta = {
description = "DankMaterialShell Command Line Interface";
homepage = "https://github.com/AvengeMedia/DankMaterialShell/backend";
mainProgram = "dms";
license = lib.licenses.mit;
platforms = lib.platforms.unix;
};
});
default = self.packages.${system}.dms-cli;
}
);
};
}