From f6fc471adb26c78ac2d606304f60d493aba99dc0 Mon Sep 17 00:00:00 2001 From: Xinglu Chen Date: Thu, 4 Feb 2021 16:55:29 +0100 Subject: Make repository a nix flake Make git-email.el a nix flake for an easier installation process for Nix users. It currently exposes two packages: - git-email-full -- This includes all the optional libraries - git-email -- This only includes the core `git-email.el` library They both get the source from directory from the git repository, meaning they will get updates as soon as a commit is made. * default.nix: Add file. * flake.lock: Add file. * flake.nix: Add file. --- flake.nix | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 flake.nix (limited to 'flake.nix') diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..176f27e --- /dev/null +++ b/flake.nix @@ -0,0 +1,17 @@ +{ + description = "git-email.el flake"; + + inputs = { + nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable"; + flake-utils.url = "github:numtide/flake-utils"; + }; + + outputs = { self, nixpkgs, flake-utils }: + flake-utils.lib.eachDefaultSystem (system: + let pkgs = nixpkgs.legacyPackages.${system}; + in + rec { + packages = pkgs.lib.recurseIntoAttrs (pkgs.callPackage ./. {}); + defaultPackage = packages.git-email-full; + }); +} -- cgit v1.2.3