forked from rarias/bscpkgs
Add a hwloc test
This commit is contained in:
20
test/bugs/hwloc.nix
Normal file
20
test/bugs/hwloc.nix
Normal file
@@ -0,0 +1,20 @@
|
||||
{
|
||||
stdenv
|
||||
, hwloc
|
||||
, strace
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "hwloc-test";
|
||||
|
||||
src = ./.;
|
||||
|
||||
buildInputs = [ hwloc strace ];
|
||||
|
||||
buildPhase = ''
|
||||
ls -l /sys
|
||||
gcc -lhwloc hwloc.c -o hwloc
|
||||
strace ./hwloc
|
||||
'';
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user