-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathflake.nix
34 lines (31 loc) · 913 Bytes
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{
description = "Utilities for encoding and decoding binary files in MIME";
outputs = { self, nixpkgs, ... }:
let
eachSystem = nixpkgs.lib.genAttrs [
"x86_64-linux"
"x86_64-darwin"
"aarch64-darwin"
];
in {
overlays.mpack-replacement-char = final: _prev: {
mpack = final.stdenv.mkDerivation {
pname = "mpack";
version = "1.6";
src = ./.;
buildInputs = with final; [ autoconf automake ];
preConfigure = "autoreconf -i -I cmulocal";
};
};
packages = eachSystem (system: {
mpack = (import nixpkgs {
inherit system;
overlays = [ self.overlays.mpack-replacement-char ];
}).mpack;
});
apps = eachSystem (system: {
munpack.type = "app";
munpack.program = "${self.packages.${system}.mpack}/bin/munpack";
});
};
}