blktrace: switch to pname + version, cleanup

This commit is contained in:
Sandro Jäckel 2021-08-08 04:53:39 +02:00
parent 6d84ed4252
commit 3b85ec48e6
No known key found for this signature in database
GPG key ID: 3AF5A43A3EECC2E5

View file

@ -1,12 +1,13 @@
{ lib, stdenv, fetchurl, libaio }:
stdenv.mkDerivation {
name = "blktrace-1.3.0";
stdenv.mkDerivation rec {
pname = "blktrace";
version = "1.3.0";
# Official source
# "git://git.kernel.org/pub/scm/linux/kernel/git/axboe/blktrace.git"
src = fetchurl {
url = "http://brick.kernel.dk/snaps/blktrace-1.3.0.tar.bz2";
url = "https://brick.kernel.dk/snaps/blktrace-${version}.tar.bz2";
sha256 = "sha256-1t7aA4Yt4r0bG5+6cpu7hi2bynleaqf3yoa2VoEacNY=";
};
@ -16,9 +17,10 @@ stdenv.mkDerivation {
sed s,/usr/local,$out, -i Makefile
'';
meta = {
meta = with lib; {
description = "Block layer IO tracing mechanism";
license = lib.licenses.gpl2;
platforms = lib.platforms.linux;
maintainers = with maintainers; [ ];
license = licenses.gpl2;
platforms = platforms.linux;
};
}