Unverified Commit 40e95ccc authored by Guy Chronister's avatar Guy Chronister
Browse files

axel: modernize derivation

parent 8ad0f669
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -10,15 +10,15 @@
  txt2man,
}:

stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
  pname = "axel";
  version = "2.17.14";

  src = fetchFromGitHub {
    owner = "axel-download-accelerator";
    repo = pname;
    rev = "v${version}";
    sha256 = "sha256-5GUna5k8GhAx1Xe8n9IvXT7IO6gksxCLh+sMANlxTBM=";
    repo = "axel";
    tag = "v${finalAttrs.version}";
    hash = "sha256-5GUna5k8GhAx1Xe8n9IvXT7IO6gksxCLh+sMANlxTBM=";
  };

  postPatch = ''
@@ -53,4 +53,4 @@ stdenv.mkDerivation rec {
    license = lib.licenses.gpl2Plus;
    mainProgram = "axel";
  };
}
})