Unverified Commit e64189b9 authored by Peder Bergebakken Sundt's avatar Peder Bergebakken Sundt Committed by GitHub
Browse files

tinycdb: 0.80 -> 0.81 (#441186)

parents cf723a6f ac07f6aa
Loading
Loading
Loading
Loading
+9 −9
Original line number Diff line number Diff line
@@ -12,12 +12,12 @@ let
  ar = if !isCross then "ar" else "${cross}-ar";
  ranlib = if !isCross then "ranlib" else "${cross}-ranlib";
in
stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
  postPatch = ''
    sed -i 's,set --, set -x; set --,' Makefile
  '';
  pname = "tinycdb";
  version = "0.80";
  version = "0.81";
  # In general, static library (.a) goes to "dev", shared (.so) to
  # "lib". In case of static build, there is no .so library, so "lib"
  # output is useless and empty.
@@ -39,7 +39,7 @@ stdenv.mkDerivation rec {
  postInstall = ''
    mkdir -p $dev/lib $out/bin
    mv $out/lib/libcdb.a $dev/lib
    rmdir $out/lib
    rm --recursive $out/lib
  ''
  + (
    if static then
@@ -55,11 +55,11 @@ stdenv.mkDerivation rec {
  );

  src = fetchurl {
    url = "http://www.corpit.ru/mjt/tinycdb/${pname}-${version}.tar.gz";
    sha256 = "sha256-wyG5BekCwsqZo/+Kjd39iCMkf+Ht7IpLuF+Dhpxjn7g=";
    url = "https://www.corpit.ru/mjt/tinycdb/tinycdb-${finalAttrs.version}.tar.gz";
    hash = "sha256-Rp3i1EW/VIgPZS9LbclcfN9vVQLDVSSkWyEi1w1H68I=";
  };

  meta = with lib; {
  meta = {

    description = "Utility to manipulate constant databases (cdb)";
    mainProgram = "cdb";
@@ -71,7 +71,7 @@ stdenv.mkDerivation rec {
    '';

    homepage = "https://www.corpit.ru/mjt/tinycdb.html";
    license = licenses.publicDomain;
    platforms = platforms.linux;
    license = lib.licenses.publicDomain;
    platforms = lib.platforms.linux;
  };
}
})