Unverified Commit 3497579b authored by Yohann Boniface's avatar Yohann Boniface Committed by GitHub
Browse files

treewide: refactor package definitions (#432027)

parents 1e7762d1 332f43a2
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -12,16 +12,16 @@ rustPlatform.buildRustPackage {
    owner = "jez";
    repo = "as-tree";
    rev = "0036c20f66795774eb9cda3ccbae6ca1e1c19444";
    sha256 = "sha256-80yB89sKIuv7V68p0jEsi2hRdz+5CzE+4R0joRzO7Dk=";
    hash = "sha256-80yB89sKIuv7V68p0jEsi2hRdz+5CzE+4R0joRzO7Dk=";
  };

  cargoHash = "sha256-HTwzmfpp9HKBKvjYXUqVDv9GUHl+2K3LMBSy1+GfmNU=";

  meta = with lib; {
  meta = {
    description = "Print a list of paths as a tree of paths";
    homepage = "https://github.com/jez/as-tree";
    license = with licenses; [ blueOak100 ];
    maintainers = with maintainers; [ jshholland ];
    license = with lib.licenses; [ blueOak100 ];
    maintainers = with lib.maintainers; [ jshholland ];
    mainProgram = "as-tree";
  };
}
+8 −8
Original line number Diff line number Diff line
@@ -5,13 +5,13 @@
  SDL,
}:

stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
  pname = "asap";
  version = "6.0.3";

  src = fetchzip {
    url = "mirror://sourceforge/project/asap/asap/${version}/asap-${version}.tar.gz";
    sha256 = "sha256-a4RUtFue5wdoGUykLRb46s4+yR/I/7DhwE1SiWPRg8s=";
    url = "mirror://sourceforge/project/asap/asap/${finalAttrs.version}/asap-${finalAttrs.version}.tar.gz";
    hash = "sha256-a4RUtFue5wdoGUykLRb46s4+yR/I/7DhwE1SiWPRg8s=";
  };

  outputs = [
@@ -41,7 +41,7 @@ stdenv.mkDerivation rec {
    "install-lib"
  ];

  meta = with lib; {
  meta = {
    homepage = "https://asap.sourceforge.net/";
    mainProgram = "asap-sdl";
    description = "Another Slight Atari Player";
@@ -50,8 +50,8 @@ stdenv.mkDerivation rec {
      music (*.sap, *.cmc, *.mpt, *.rmt, *.tmc, ...) on modern computers and
      mobile devices.
    '';
    maintainers = with maintainers; [ OPNA2608 ];
    license = licenses.gpl2Plus;
    platforms = platforms.all;
    maintainers = with lib.maintainers; [ OPNA2608 ];
    license = lib.licenses.gpl2Plus;
    platforms = lib.platforms.all;
  };
}
})
+5 −5
Original line number Diff line number Diff line
@@ -11,17 +11,17 @@ buildGoModule rec {
  src = fetchFromGitHub {
    owner = "TheZoraiz";
    repo = "ascii-image-converter";
    rev = "v${version}";
    sha256 = "sha256-svM/TzGQU/QgjqHboy0470+A6p4kR76typ9gnfjfAJk=";
    tag = "v${version}";
    hash = "sha256-svM/TzGQU/QgjqHboy0470+A6p4kR76typ9gnfjfAJk=";
  };

  vendorHash = "sha256-rQS3QH9vnEbQZszG3FOr1P5HYgS63BurCNCFQTTdvZs=";

  meta = with lib; {
  meta = {
    description = "Convert images into ASCII art on the console";
    homepage = "https://github.com/TheZoraiz/ascii-image-converter#readme";
    license = licenses.asl20;
    maintainers = [ maintainers.danth ];
    license = lib.licenses.asl20;
    maintainers = with lib.maintainers; [ danth ];
    mainProgram = "ascii-image-converter";
  };
}
+8 −8
Original line number Diff line number Diff line
@@ -6,13 +6,13 @@
  makeWrapper,
}:

stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
  pname = "asciidoctorj";
  version = "3.0.0";

  src = fetchzip {
    url = "mirror://maven/org/asciidoctor/${pname}/${version}/${pname}-${version}-bin.zip";
    sha256 = "sha256-F4tmpdNS0PIoLpqV9gifJf2iQ/kX+cp3EssRyhzyOUw=";
    url = "mirror://maven/org/asciidoctor/asciidoctorj/${finalAttrs.version}/asciidoctorj-${finalAttrs.version}-bin.zip";
    hash = "sha256-F4tmpdNS0PIoLpqV9gifJf2iQ/kX+cp3EssRyhzyOUw=";
  };

  nativeBuildInputs = [ makeWrapper ];
@@ -24,7 +24,7 @@ stdenv.mkDerivation rec {
      --prefix JAVA_HOME : ${jdk}
  '';

  meta = with lib; {
  meta = {
    description = "Official library for running Asciidoctor on the JVM";
    longDescription = ''
      AsciidoctorJ is the official library for running Asciidoctor on the JVM.
@@ -33,9 +33,9 @@ stdenv.mkDerivation rec {
      languages.
    '';
    homepage = "https://asciidoctor.org/docs/asciidoctorj/";
    license = licenses.asl20;
    platforms = platforms.all;
    maintainers = with maintainers; [ moaxcp ];
    license = lib.licenses.asl20;
    platforms = lib.platforms.all;
    maintainers = with lib.maintainers; [ moaxcp ];
    mainProgram = "asciidoctorj";
  };
}
})
+5 −5
Original line number Diff line number Diff line
@@ -11,8 +11,8 @@ buildGoModule rec {
  src = fetchFromGitHub {
    owner = "guptarohit";
    repo = "asciigraph";
    rev = "v${version}";
    sha256 = "sha256-+4aGkumO42cloHWV8qEEJ5bj8TTdtfXTWGFCgCRE4Mg=";
    tag = "v${version}";
    hash = "sha256-+4aGkumO42cloHWV8qEEJ5bj8TTdtfXTWGFCgCRE4Mg=";
  };

  vendorHash = null;
@@ -22,11 +22,11 @@ buildGoModule rec {
    "-w"
  ];

  meta = with lib; {
  meta = {
    homepage = "https://github.com/guptarohit/asciigraph";
    description = "Lightweight ASCII line graph ╭┈╯ command line app";
    mainProgram = "asciigraph";
    license = licenses.bsd3;
    maintainers = with maintainers; [ mmahut ];
    license = lib.licenses.bsd3;
    maintainers = with lib.maintainers; [ mmahut ];
  };
}
Loading