blob: e96f699a33d2346e15181907db361005e5c8f491 (
plain)
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
{
description = "Improved text objects for {neo,}vim";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-21.05";
};
outputs =
{ self
, nixpkgs
, ...
} @ rest:
let
supportedSystems = [ "x86_64-linux" "x86_64-darwin" ];
forAllSystems = nixpkgs.lib.genAttrs supportedSystems;
nixpkgsFor = forAllSystems (system:
import nixpkgs {
inherit system;
overlays = [ self.overlay ];
}
);
in
{
overlay = final: prev: rec {
better-text-objs =
with final; pkgs.vimUtils.buildVimPlugin {
pname = "better-text-objs";
version = "0.1.0";
src = ./.;
};
};
packages = forAllSystems (system:
{
inherit (nixpkgsFor."${system}") better-text-objs;
}
);
defaultPackage =
forAllSystems (system: self.packages."${system}".better-text-objs);
};
}
|