aboutsummaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
authorXinglu Chen <public@yoctocell.xyz>2021-02-04 16:55:29 +0100
committerXinglu Chen <public@yoctocell.xyz>2021-02-04 17:02:18 +0100
commitf6fc471adb26c78ac2d606304f60d493aba99dc0 (patch)
treed763fbdc6dcfc58ea1459baf6de1540568f35a0b /flake.nix
parent85ed63ed6c8750a51e18085544774b729711a39a (diff)
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.
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix17
1 files changed, 17 insertions, 0 deletions
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;
+ });
+}