nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 41 lines 907 B view raw
1{ 2 lib, 3 buildGoModule, 4 fetchFromGitHub, 5 nix-update-script, 6}: 7 8buildGoModule (finalAttrs: { 9 pname = "ulid"; 10 version = "2.1.1"; 11 12 src = fetchFromGitHub { 13 owner = "oklog"; 14 repo = "ulid"; 15 tag = "v${finalAttrs.version}"; 16 hash = "sha256-kPNLaZMGwGc7ngPCivf/n4Bis219yOkGAaa6mt7+yTY="; 17 }; 18 19 vendorHash = "sha256-s1YkEwFxE1zpUUCgwOAl8i6/9HB2rcGG+4kqnixTit0="; 20 21 ldflags = [ 22 "-s" 23 "-w" 24 ]; 25 26 checkFlags = [ 27 # skip flaky test 28 "-skip=TestMonotonicSafe" 29 ]; 30 31 passthru.updateScript = nix-update-script { }; 32 33 meta = { 34 description = "Universally Unique Lexicographically Sortable Identifier (ULID) in Go"; 35 homepage = "https://github.com/oklog/ulid"; 36 changelog = "https://github.com/oklog/ulid/blob/v${finalAttrs.version}/CHANGELOG.md"; 37 license = lib.licenses.asl20; 38 maintainers = with lib.maintainers; [ defelo ]; 39 mainProgram = "ulid"; 40 }; 41})