Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at litex 28 lines 635 B view raw
1{ lib, buildGoModule, fetchFromGitHub }: 2 3buildGoModule rec { 4 pname = "nasmfmt"; 5 version = "unstable-2022-09-15"; 6 7 src = fetchFromGitHub { 8 owner = "yamnikov-oleg"; 9 repo = "nasmfmt"; 10 rev = "127dbe8e72376c67d7dff89010ccfb49fc7b533e"; 11 hash = "sha256-1c7ZOdoM0/Us7cnTT3sds2P5pcCedrCfl0GqQBnf9Rk="; 12 }; 13 14 vendorHash = null; 15 16 preBuild = '' 17 cp ${./go.mod} go.mod 18 ''; 19 20 ldflags = [ "-s" "-w" ]; 21 22 meta = with lib; { 23 description = "Formatter for NASM source files"; 24 homepage = "https://github.com/yamnikov-oleg/nasmfmt"; 25 license = licenses.mit; 26 maintainers = with maintainers; [ ckie ]; 27 }; 28}