https://git.jolheiser.com/tmpl.git
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
{ description = "tmpl"; inputs.nixpkgs.url = "github:nixos/nixpkgs"; outputs = { self, nixpkgs, }: let pkgs = nixpkgs.legacyPackages.x86_64-linux; tmpl = pkgs.buildGoModule rec { pname = "tmpl"; version = "0.4.0"; src = ./.; vendorHash = "sha256-QNwzHC4fHLAhshOplKmMjRYa9sHNjBLdfBgANbs/iKk="; ldflags = ["-s" "-w" "-X=go.jolheiser.com/tmpl/cmd.Version=${version}"]; postInstall = '' mkdir -p $out/share cp -vr ./contrib/tmpl-completions.nu $out/share/tmpl-completions.nu ''; meta = with pkgs.lib; { description = ""; homepage = "https://git.jojodev.com/jolheiser/tmpl"; license = licenses.mit; maintainers = with maintainers; [jolheiser]; mainProgram = "tmpl"; }; }; in { packages.x86_64-linux.default = tmpl; }; }