mirror of
https://github.com/acaloiaro/ess
synced 2026-07-21 10:12:19 +00:00
22 lines
544 B
Nix
22 lines
544 B
Nix
{
|
|
self,
|
|
pkgs ? import <nixpkgs> {},
|
|
...
|
|
}:
|
|
pkgs.buildGoModule rec {
|
|
pname = "ess";
|
|
version = pkgs.lib.strings.removeSuffix "\n" (builtins.readFile ./version.txt);
|
|
src = ./.;
|
|
vendorHash = null;
|
|
ldflags = [
|
|
"-X 'main.version=${version}-nix'"
|
|
"-X 'main.commit=${self.rev or "dev"}'"
|
|
];
|
|
CGO_ENABLED = 0;
|
|
|
|
meta = {
|
|
description = "ess (env-sample-sync): automatically and safely synchronize env.sample files with .env";
|
|
homepage = "https://github.com/acaloiaro/ess";
|
|
license = pkgs.lib.licenses.bsd2;
|
|
};
|
|
}
|