Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

microbin: 1.2.1 -> 2.0.4

Diff: https://github.com/szabodanika/microbin/compare/v1.2.1...v2.0.4

Changelog: https://github.com/szabodanika/microbin/releases/tag/v2.0.4

figsoda c8b16053 f2406198

+29 -7
+29 -7
pkgs/servers/microbin/default.nix
··· 1 1 { lib 2 2 , rustPlatform 3 - , fetchCrate 3 + , fetchFromGitHub 4 + , pkg-config 5 + , oniguruma 6 + , openssl 7 + , stdenv 8 + , darwin 4 9 }: 5 10 6 11 rustPlatform.buildRustPackage rec { 7 12 pname = "microbin"; 8 - version = "1.2.1"; 13 + version = "2.0.4"; 9 14 10 - # The GitHub source is outdated 11 - src = fetchCrate { 12 - inherit pname version; 13 - hash = "sha256-OLg0ejs9nanMNlY0lcnJ/RoRwefrXEaaROwx5aPx4u8="; 15 + src = fetchFromGitHub { 16 + owner = "szabodanika"; 17 + repo = "microbin"; 18 + rev = "v${version}"; 19 + hash = "sha256-fsRpqSYDsuV0M6Xar2GVoyTgCPT39dcKJ6eW4YXCkQ0="; 14 20 }; 15 21 16 - cargoHash = "sha256-XdHP0XruqtyLyGbLHielnmTAc3ZgeIyyZnknO+5k4Xo="; 22 + cargoHash = "sha256-7GSgyh2aJ2f8pozoh/0Yxzbk8Wg3JYuqSy/34ywAc2s="; 23 + 24 + nativeBuildInputs = [ 25 + pkg-config 26 + ]; 27 + 28 + buildInputs = [ 29 + oniguruma 30 + openssl 31 + ] ++ lib.optionals stdenv.isDarwin [ 32 + darwin.apple_sdk.frameworks.Security 33 + ]; 34 + 35 + env = { 36 + OPENSSL_NO_VENDOR = true; 37 + RUSTONIG_SYSTEM_LIBONIG = true; 38 + }; 17 39 18 40 meta = with lib; { 19 41 description = "A tiny, self-contained, configurable paste bin and URL shortener written in Rust";