Compare commits
	
		
			2 Commits
		
	
	
		
			541c16cf44
			...
			dde13db192
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| dde13db192 | |||
| b8ecc178e3 | 
							
								
								
									
										14
									
								
								overlay.nix
									
									
									
									
									
								
							
							
						
						
									
										14
									
								
								overlay.nix
									
									
									
									
									
								
							@ -101,16 +101,14 @@ let
 | 
			
		||||
  pkgsTopLevel = filterAttrs (_: isDerivation) bscPkgs;
 | 
			
		||||
 | 
			
		||||
  # Native build in that platform doesn't imply cross build works
 | 
			
		||||
  canCrossCompile = platform: default: pkg:
 | 
			
		||||
  canCrossCompile = platform: pkg:
 | 
			
		||||
    (isDerivation pkg) &&
 | 
			
		||||
    # If meta.cross is undefined, use default
 | 
			
		||||
    (pkg.meta.cross or default) &&
 | 
			
		||||
    (meta.availableOn final.pkgsCross.${platform}.stdenv.hostPlatform pkg);
 | 
			
		||||
    # Must be defined explicitly
 | 
			
		||||
    (pkg.meta.cross or false) &&
 | 
			
		||||
    (meta.availableOn platform pkg);
 | 
			
		||||
 | 
			
		||||
  # For now only RISC-V
 | 
			
		||||
  crossSet = genAttrs [ "riscv64" ] (platform:
 | 
			
		||||
    filterAttrs (_: canCrossCompile platform true)
 | 
			
		||||
      final.pkgsCross.${platform}.bsc.pkgsTopLevel);
 | 
			
		||||
  crossSet = { riscv64 = final.pkgsCross.riscv64.bsc.pkgsTopLevel; };
 | 
			
		||||
 | 
			
		||||
  buildList = name: paths:
 | 
			
		||||
    final.runCommandLocal name { } ''
 | 
			
		||||
@ -130,7 +128,7 @@ let
 | 
			
		||||
  # For now only RISC-V
 | 
			
		||||
  crossList = buildList "ci-cross"
 | 
			
		||||
    (filter
 | 
			
		||||
      (canCrossCompile "riscv64" false) # opt-in (pkgs with: meta.cross = true)
 | 
			
		||||
      (canCrossCompile final.pkgsCross.riscv64.stdenv.hostPlatform)
 | 
			
		||||
        (builtins.attrValues crossSet.riscv64));
 | 
			
		||||
 | 
			
		||||
in bscPkgs // {
 | 
			
		||||
 | 
			
		||||
@ -90,7 +90,7 @@ in
 | 
			
		||||
    meta = {
 | 
			
		||||
      description = "Performance analysis tool-suite for x86 based applications";
 | 
			
		||||
      homepage = "https://www.amd.com/es/developer/uprof.html";
 | 
			
		||||
      platforms = [ "x86_64-linux" ];
 | 
			
		||||
      platforms = lib.platforms.linux;
 | 
			
		||||
      license = lib.licenses.unfree;
 | 
			
		||||
      maintainers = with lib.maintainers.bsc; [ rarias varcila ];
 | 
			
		||||
    };
 | 
			
		||||
 | 
			
		||||
@ -1,6 +1,5 @@
 | 
			
		||||
{
 | 
			
		||||
  stdenv
 | 
			
		||||
, lib
 | 
			
		||||
, cudatoolkit
 | 
			
		||||
, cudaPackages
 | 
			
		||||
, autoAddDriverRunpath
 | 
			
		||||
@ -41,9 +40,4 @@ stdenv.mkDerivation (finalAttrs: {
 | 
			
		||||
    '';
 | 
			
		||||
    installPhase = "touch $out";
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  meta = {
 | 
			
		||||
    platforms = [ "x86_64-linux" ];
 | 
			
		||||
    maintainers = with lib.maintainers.bsc; [ rarias ];
 | 
			
		||||
  };
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user