{ 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=/" ]; }); }); }; }