Skip to content

Commit

Permalink
Add lkp-tests package derivation
Browse files Browse the repository at this point in the history
Signed-off-by: juliuskoskela-unikie <julius.koskela@unikie.com>
  • Loading branch information
juliuskoskela committed May 2, 2024
1 parent c46113e commit d222793
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions packages/lkp-tests/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{pkgs}:
pkgs.stdenv.mkDerivation {
pname = "lkp-tests";
version = "unstable-2024-04-17";

src = pkgs.fetchFromGitHub {
owner = "intel";
repo = "lkp-tests";
rev = "master";
sha256 = "sha256-+NTEVg1+Xwd05tEMvmFBCkCx2rplXk7rlXuIt6XuQf4=";
};

buildInputs = [pkgs.makeWrapper pkgs.ruby_2_7];

phases = ["unpackPhase" "installPhase"];

installPhase = ''
mkdir -p $out/bin
cp -r . $out
make install TARGET_DIR_BIN=$out
'';

meta = with pkgs.lib; {
description = "Linux Kernel Performance tests";
homepage = "https://github.com/intel/lkp-tests";
license = licenses.gpl2;
platforms = platforms.linux;
};
}

0 comments on commit d222793

Please sign in to comment.