mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-12 03:56:17 +03:00
46420bbaa3
treewide replacement of stdenv.mkDerivation rec { name = "*-${version}"; version = "*"; to pname
31 lines
670 B
Nix
31 lines
670 B
Nix
{ stdenv, buildGoPackage, fetchFromGitHub }:
|
|
|
|
buildGoPackage rec {
|
|
pname = "gucci";
|
|
version = "0.1.0";
|
|
|
|
goPackagePath = "github.com/noqcks/gucci";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "noqcks";
|
|
repo = "gucci";
|
|
rev = version;
|
|
sha256 = "0ksrmzb3iggc7gm51fl0jbb15d0gmpclslpkq2sl2xjzk29pkllq";
|
|
};
|
|
|
|
goDeps = ./deps.nix;
|
|
|
|
buildFlagsArray = ''
|
|
-ldflags=-X main.AppVersion=${version}
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "A simple CLI templating tool written in golang";
|
|
homepage = https://github.com/noqcks/gucci;
|
|
license = licenses.mit;
|
|
maintainers = [ maintainers.braydenjw ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|
|
|