From 0da0e8fb5d626bd511c55457ab624b800b9abfe8 Mon Sep 17 00:00:00 2001 From: Miran Bastaja Date: Thu, 12 Sep 2024 18:05:23 +0200 Subject: Initial commit --- flake.nix | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 flake.nix (limited to 'flake.nix') diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..7163d14 --- /dev/null +++ b/flake.nix @@ -0,0 +1,33 @@ +{ + description = "My personal NUR repository."; + + inputs = { + nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; + futils.url = "git+https://git.sorre.xyz/miranb/futils"; + emacs-overlay = { + url = "github:nix-community/emacs-overlay"; + inputs.nixpkgs.follows = "nixpkgs"; + }; + }; + + outputs = + { + self, + nixpkgs, + futils, + emacs-overlay, + }: + futils.lib.eachSystem ( + system: + let + pkgs = import nixpkgs { + inherit system; + overlays = [ emacs-overlay.overlays.default ]; + }; + in + { + legacyPackages = import ./default.nix { inherit pkgs; }; + packages = nixpkgs.lib.filterAttrs (_: v: nixpkgs.lib.isDerivation v) self.legacyPackages.${system}; + } + ); +} -- cgit v1.3.1