-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7298db2
commit 5231c53
Showing
3 changed files
with
55 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/usr/bin/env bash | ||
if type -P lorri &>/dev/null; then | ||
eval "$(lorri direnv)" | ||
else | ||
use nix | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,7 +28,6 @@ githubWorkflow: | |
ci: | ||
enabled: true | ||
coveralls: true | ||
postgres: true | ||
|
||
renovate: | ||
enabled: true | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
{ pkgs ? import <nixpkgs> { } }: | ||
|
||
with pkgs; | ||
|
||
let | ||
# TODO: drop after https://github.com/NixOS/nixpkgs/pull/347304 got merged | ||
go-licence-detector = buildGoModule rec { | ||
pname = "go-licence-detector"; | ||
version = "0.7.0"; | ||
|
||
src = fetchFromGitHub { | ||
owner = "elastic"; | ||
repo = "go-licence-detector"; | ||
rev = "v${version}"; | ||
hash = "sha256-43MyzEF7BZ7pcgzDvXx9SjXGHaLozmWkGWUO/yf6K98="; | ||
}; | ||
|
||
vendorHash = "sha256-7vIP5pGFH6CbW/cJp+DiRg2jFcLFEBl8dQzUw1ogTTA="; | ||
|
||
meta = with lib; { | ||
description = "Detect licences in Go projects and generate documentation"; | ||
homepage = "https://github.com/elastic/go-licence-detector"; | ||
license = licenses.asl20; | ||
maintainers = with maintainers; [ SuperSandro2000 ]; | ||
}; | ||
}; | ||
|
||
# TODO: drop after https://github.com/NixOS/nixpkgs/pull/345260 got merged | ||
postgresql_17 = (import (pkgs.path + /pkgs/servers/sql/postgresql/generic.nix) { | ||
version = "17.0"; | ||
hash = "sha256-fidhMcD91rYliNutmzuyS4w0mNUAkyjbpZrxboGRCd4="; | ||
} { self = pkgs; jitSupport = false; }).overrideAttrs ({ nativeBuildInputs, configureFlags , ... }: { | ||
nativeBuildInputs = nativeBuildInputs ++ (with pkgs; [ bison flex perl docbook_xml_dtd_45 docbook-xsl-nons libxslt ]); | ||
configureFlags = configureFlags ++ [ "--without-perl" ]; | ||
}); | ||
in | ||
|
||
mkShell { | ||
nativeBuildInputs = [ | ||
go-licence-detector | ||
go_1_23 | ||
golangci-lint | ||
gotools # goimports | ||
postgresql_17 | ||
|
||
# keep this line if you use bash | ||
bashInteractive | ||
]; | ||
} |