diff options
author | Cody Hiar <cody@hiar.ca> | 2022-06-05 13:47:31 -0600 |
---|---|---|
committer | Cody Hiar <cody@hiar.ca> | 2022-06-05 13:47:31 -0600 |
commit | 164704220b09e0f18f8be918f9fde025355f0dcd (patch) | |
tree | 35bf069bdee8b3b992a5757b1d3726a31d780f76 /nix/vale.nix | |
parent | d134dd7d77ad55442bf9b5e4b62361e9fcf3e198 (diff) |
Get a basic flake set up
Diffstat (limited to 'nix/vale.nix')
-rw-r--r-- | nix/vale.nix | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/nix/vale.nix b/nix/vale.nix new file mode 100644 index 0000000..396f0b7 --- /dev/null +++ b/nix/vale.nix @@ -0,0 +1,20 @@ +{ lib, buildGoModule, fetchFromGitHub }: + +buildGoModule rec { + pname = "vale"; + version = "2.17.0"; + subPackages = [ "cmd/vale" ]; + outputs = [ "out" "data" ]; + src = fetchFromGitHub { + owner = "errata-ai"; + repo = "vale"; + rev = "v${version}"; + sha256 = "sha256-PUaIx6rEaLz0HUxkglsVHw0Kx/ovI2f4Yhknuysr5Gs="; + }; + vendorSha256 = "sha256-zdgLWEArmtHTDM844LoSJwKp0UGoAR8bHnFOSlrrjdg="; + postInstall = '' + mkdir -p $data/share/vale + cp -r styles $data/share/vale + ''; + ldflags = [ "-s" "-w" "-X main.version=${version}" ]; +} |