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
|
{
description = "nixfig, nix configuration";
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
outputs = {
self,
nixpkgs,
}: let
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
nixgen = pkgs.buildGoModule {
pname = "nixgen";
version = self.rev or "dev";
src = ./.;
vendorHash = pkgs.lib.fileContents ./go.mod.sri;
doCheck = false;
meta = with pkgs.lib; {
description = "nixfig, nix configuration";
homepage = "https:/git.jolheiser.com/nixfig";
maintainers = with maintainers; [jolheiser];
mainProgram = "nixgen";
};
};
in {
packages.${system}.default = nixgen;
devShells.${system}.default = pkgs.mkShell {
nativeBuildInputs = with pkgs; [
go
gopls
];
};
};
}
|