blktrace: switch to pname + version, cleanup
This commit is contained in:
parent
6d84ed4252
commit
3b85ec48e6
|
@ -1,12 +1,13 @@
|
||||||
{ lib, stdenv, fetchurl, libaio }:
|
{ lib, stdenv, fetchurl, libaio }:
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation rec {
|
||||||
name = "blktrace-1.3.0";
|
pname = "blktrace";
|
||||||
|
version = "1.3.0";
|
||||||
|
|
||||||
# Official source
|
# Official source
|
||||||
# "git://git.kernel.org/pub/scm/linux/kernel/git/axboe/blktrace.git"
|
# "git://git.kernel.org/pub/scm/linux/kernel/git/axboe/blktrace.git"
|
||||||
src = fetchurl {
|
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=";
|
sha256 = "sha256-1t7aA4Yt4r0bG5+6cpu7hi2bynleaqf3yoa2VoEacNY=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -16,9 +17,10 @@ stdenv.mkDerivation {
|
||||||
sed s,/usr/local,$out, -i Makefile
|
sed s,/usr/local,$out, -i Makefile
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = with lib; {
|
||||||
description = "Block layer IO tracing mechanism";
|
description = "Block layer IO tracing mechanism";
|
||||||
license = lib.licenses.gpl2;
|
maintainers = with maintainers; [ ];
|
||||||
platforms = lib.platforms.linux;
|
license = licenses.gpl2;
|
||||||
|
platforms = platforms.linux;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue