Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at fix-function-merge 33 lines 738 B view raw
1{ lib 2, buildGoModule 3, fetchFromGitHub 4}: 5 6buildGoModule rec { 7 pname = "dockfmt"; 8 version = "unstable-2020-09-18"; 9 10 # The latest released version doesn't support reading from stdin. 11 src = fetchFromGitHub { 12 owner = "jessfraz"; 13 repo = "dockfmt"; 14 rev = "1455059b8bb53ab4723ef41946c43160583a8333"; 15 hash = "sha256-wEC9kENcE3u+Mb7uLbx/VBUup6PBnCY5cxTYvkJcavg="; 16 }; 17 18 vendorHash = null; 19 20 ldflags = [ 21 "-w" 22 "-s" 23 "-X github.com/jessfraz/dockfmt/version.VERSION=${version}" 24 ]; 25 26 meta = with lib; { 27 description = "Dockerfile format"; 28 mainProgram = "dockfmt"; 29 homepage = "https://github.com/jessfraz/dockfmt"; 30 license = licenses.mit; 31 maintainers = with maintainers; [ cpcloud ]; 32 }; 33}