-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathflake.nix
More file actions
64 lines (54 loc) · 1.45 KB
/
flake.nix
File metadata and controls
64 lines (54 loc) · 1.45 KB
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
{
description = "Indexed filesystem search in GO";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
};
outputs =
{ self, nixpkgs }:
let
supportedSystems = [
"x86_64-linux"
"aarch64-linux"
];
forAllSystems = (f:
nixpkgs.lib.genAttrs supportedSystems (system:
f nixpkgs.legacyPackages.${system} system
)
);
in
{
packages = forAllSystems (
pkgs: system:
let
inherit (pkgs) lib;
dsearchVersion = "0.2.1";
in
{
dsearch = pkgs.buildGoModule {
pname = "dsearch";
version = dsearchVersion;
src = ./.;
vendorHash = "sha256-nvAgDX8dS3ZwAGTdPvNK1/XzlY28/QjRSW8cmqhp9io=";
subPackages = [ "cmd/dsearch" ];
ldflags = [
"-s"
"-w"
"-X main.Version=${dsearchVersion}"
];
meta = {
description = "Indexed filesystem search in GO";
homepage = "https://github.com/AvengeMedia/danksearch";
mainProgram = "dsearch";
license = lib.licenses.mit;
platforms = lib.platforms.unix;
};
};
default = self.packages.${system}.dsearch;
}
);
homeModules = {
default = self.homeModules.dsearch;
dsearch = import ./distro/nix self;
};
};
}