mal/flake.nix
2024-02-13 14:34:35 +13:00

34 lines
648 B
Nix

{
description = "simple command line mail client";
inputs = {
nixpkgs.url = github:NixOS/nixpkgs/nixpkgs-unstable;
};
outputs = { self, nixpkgs }:
with nixpkgs.lib;
let
forAllSystems = fn:
genAttrs platforms.unix (system:
fn (import nixpkgs {
inherit system;
})
);
in
{
packages = forAllSystems (pkgs: {
default = pkgs.stdenv.mkDerivation (with pkgs; {
name = "mal";
src = ./.;
nativeBuildInputs = [ ldc ];
buildInputs = [ curl ];
installFlags = [
"DESTDIR=$(out)"
"PREFIX=/"
];
});
});
};
}