2025-04-12 02:05:06 +00:00
|
|
|
{
|
|
|
|
|
self,
|
|
|
|
|
pkgs ? import <nixpkgs> {},
|
|
|
|
|
...
|
|
|
|
|
}:
|
|
|
|
|
pkgs.buildGoModule rec {
|
2024-01-15 23:31:15 +00:00
|
|
|
pname = "ess";
|
2025-04-11 00:29:25 +00:00
|
|
|
version = pkgs.lib.strings.removeSuffix "\n" (builtins.readFile ./version.txt);
|
2024-01-15 23:31:15 +00:00
|
|
|
src = ./.;
|
2025-04-09 13:27:50 +00:00
|
|
|
vendorHash = null;
|
2025-04-12 02:05:06 +00:00
|
|
|
ldflags = [
|
|
|
|
|
"-X 'main.version=${version}-nix'"
|
|
|
|
|
"-X 'main.commit=${self.rev or "dev"}'"
|
|
|
|
|
];
|
2025-04-14 16:24:54 +00:00
|
|
|
CGO_ENABLED = 0;
|
2025-04-09 13:28:11 +00:00
|
|
|
|
2025-04-08 14:45:30 +00:00
|
|
|
meta = {
|
|
|
|
|
description = "ess (env-sample-sync): automatically and safely synchronize env.sample files with .env";
|
2025-04-12 02:05:06 +00:00
|
|
|
homepage = "https://github.com/acaloiaro/ess";
|
2025-04-08 14:45:30 +00:00
|
|
|
license = pkgs.lib.licenses.bsd2;
|
|
|
|
|
};
|
2024-01-15 23:31:15 +00:00
|
|
|
}
|