zemacs/flake.nix

61 lines
1.5 KiB
Nix

# vim: set sw=2 ts=2 et: #
{
description = "An example project using flutter";
inputs.nixpkgs = { url = "github:NixOS/nixpkgs"; };
inputs.flake-utils.url = "github:numtide/flake-utils";
inputs.flake-compat = {
url = "github:edolstra/flake-compat";
flake = false;
};
outputs = { self, nixpkgs, flake-utils, ... }:
flake-utils.lib.eachDefaultSystem (system:
let pkgs = import nixpkgs {
inherit system;
config.allowUnfree = true;
};
in {
devShells.default =
pkgs.mkShell {
buildInputs = with pkgs; [
gcc
gnumake
autoconf
gnutls.dev
pkg-config
ncurses.dev
];
};
apps.default = {
type = "app";
program = "${self.packages.${system}.default}/bin/emacs";
};
packages.default = pkgs.stdenv.mkDerivation rec {
pname = "zemacs";
version = "1.0";
src = ./.;
enableParallelBuilding = true;
configureFlags = with pkgs; [
(lib.withFeature false "x")
];
nativeBuildInputs = with pkgs; [
gcc
autoconf
autoreconfHook
gnumake
gnutls.dev
pkg-config
ncurses.dev
texinfo
];
buildInputs = with pkgs; [
];
};
});
}