nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 47 lines 1.1 kB view raw
1{ 2 lib, 3 buildDunePackage, 4 fetchurl, 5 base64, 6 either, 7 fmt, 8 jsonm, 9 uutf, 10 optint, 11 # This version constraint strictly applies only to ppx_repr, 12 # but is enforced here to get a consistent package set 13 # (with repr and ppx_repr at the same version) 14 ppxlib, 15 version ? if lib.versionAtLeast ppxlib.version "0.36" then "0.8.0" else "0.7.0", 16}: 17 18buildDunePackage { 19 pname = "repr"; 20 inherit version; 21 22 src = fetchurl { 23 url = "https://github.com/mirage/repr/releases/download/${version}/repr-${version}.tbz"; 24 hash = 25 { 26 "0.8.0" = "sha256-FyhCO4sCCPmwMq0+Bd2WpDuSzXZBb5FG45TwsLoTM0c="; 27 "0.7.0" = "sha256-itrJ/oW/ig4g7raBDXIW6Y4bf02b05nmG7ECSs4lAaw="; 28 } 29 ."${version}"; 30 }; 31 32 propagatedBuildInputs = [ 33 base64 34 either 35 fmt 36 jsonm 37 uutf 38 optint 39 ]; 40 41 meta = { 42 description = "Dynamic type representations. Provides no stability guarantee"; 43 homepage = "https://github.com/mirage/repr"; 44 license = lib.licenses.isc; 45 maintainers = with lib.maintainers; [ sternenseemann ]; 46 }; 47}