add nix flake
This commit is contained in:
parent
eb03652d7b
commit
39f66b6f88
2 changed files with 61 additions and 0 deletions
34
flake.nix
Normal file
34
flake.nix
Normal file
|
@ -0,0 +1,34 @@
|
|||
{
|
||||
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=/"
|
||||
];
|
||||
});
|
||||
});
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue