2018-10-09 09:00:39 +02:00
|
|
|
# This file was generated by https://github.com/kamilchm/go2nix v1.2.1
|
2021-01-25 09:26:54 +01:00
|
|
|
{ lib, buildGoPackage, fetchFromGitHub }:
|
2018-10-09 09:00:39 +02:00
|
|
|
|
|
|
|
buildGoPackage rec {
|
|
|
|
version = "1.0.0";
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "envdir";
|
2018-10-09 09:00:39 +02:00
|
|
|
|
|
|
|
goPackagePath = "github.com/d10n/envdir";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
rev = "v${version}";
|
|
|
|
owner = "d10n";
|
|
|
|
repo = "envdir";
|
|
|
|
sha256 = "1wdlblj127skgynf9amk7waabc3abbyxys9dvyc6c72zpcpdy5nc";
|
|
|
|
};
|
|
|
|
|
2021-08-21 10:23:49 +02:00
|
|
|
# TODO: is there a way to get the commit ref so we can set main.buildCommit?
|
|
|
|
ldflags = [
|
|
|
|
"-X main.buildDate=1970-01-01T00:00:00+0000" "-X main.buildVersion=${version}"
|
|
|
|
];
|
2018-10-09 09:00:39 +02:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A go rewrite of envdir";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/d10n/envdir";
|
2021-01-15 10:19:50 +01:00
|
|
|
maintainers = with lib.maintainers; [ edude03 ];
|
2018-10-09 09:00:39 +02:00
|
|
|
};
|
|
|
|
}
|