Skip to content
This repository has been archived by the owner on Nov 28, 2024. It is now read-only.

Commit

Permalink
Merge pull request #33 from SomeoneSerge/refactor/release-cuda
Browse files Browse the repository at this point in the history
refactor: consume nixpkgs' release-cuda.nix
  • Loading branch information
SomeoneSerge authored Aug 15, 2024
2 parents abee609 + d6f1f3f commit f9ddb65
Show file tree
Hide file tree
Showing 16 changed files with 23 additions and 1,066 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ With the above in mind, let's proceed.

## Latest warnings

- 2024-08-15: As of https://github.com/SomeoneSerge/nixpkgs-cuda-ci/pull/33,
this repo no longer maintains any jobsets and consumes instead the new
`release-cuda.nix` maintained in Nixpkgs
- 2024-06-09: I had been having issues with the Hercules CI's "effects" queue
getting jammed, effectively shutting down the "flake-update" effect. The
effects were disabled and replaced with a flake-update github action, which
Expand Down
130 changes: 0 additions & 130 deletions effects/git-push/effects-fun.nix

This file was deleted.

23 changes: 3 additions & 20 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

54 changes: 17 additions & 37 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
nixpkgs-nixos-unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
nixpkgs-release.url = "github:NixOS/nixpkgs/nixos-24.05";
nixpkgs-release-staging.url = "github:NixOS/nixpkgs/staging-24.05";
nixpkgs-cuda-updates.url = "github:NixOS/nixpkgs/cuda-updates";

hercules-ci-effects = {
url = "github:hercules-ci/hercules-ci-effects";
Expand All @@ -32,48 +31,29 @@

outputs =
inputs@{ self, flake-parts, ... }:
flake-parts.lib.mkFlake { inherit inputs; } {
imports = [
inputs.hercules-ci-effects.flakeModule
./nix/ci
];
let
systems = [ "x86_64-linux" ];
inherit (inputs) nixpkgs;
inherit (nixpkgs) lib;
in
flake-parts.lib.mkFlake { inherit inputs; } {
inherit systems;
flake =
let

inherit (inputs) nixpkgs;
inherit (nixpkgs) lib;

systems = [ "x86_64-linux" ];

eachSystem = lib.genAttrs systems;

x = eachSystem (
system:
import ./nix/jobs.nix {
inherit system nixpkgs lib;
extraConfig.cudaCapabilities = [
"7.0"
"8.0"
"8.6"
];
extraConfig.cudaEnableForwardCompat = false;
}
);
eachBranch = lib.genAttrs [ "master" ];
in
{
# Inherit from upstream
inherit (nixpkgs) lib; # nixosModules htmlDocs;

# But replace legacyPackages with the unfree version
legacyPackages = eachSystem (system: x.${system}.legacyPackages);

# And load all the unfree+redistributable packages as checks
checks = eachSystem (system: x.${system}.neverBreak);

# Expose our own unfree overrides
overlays = import ./nix/overlays.nix;
overlay = self.overlays.basic;
herculesCI.onPush.default.outputs = eachSystem (
system:
(eachBranch (
branch:
import (inputs.nixpkgs + "/pkgs/top-level/release-cuda.nix") {
inherit system;
packageSet = import inputs."nixpkgs-${branch}";
}
))
);
};
};
}
40 changes: 0 additions & 40 deletions nix/ci/aalto.nix

This file was deleted.

57 changes: 0 additions & 57 deletions nix/ci/cuda-jetson.nix

This file was deleted.

33 changes: 0 additions & 33 deletions nix/ci/cuda-updates.nix

This file was deleted.

Loading

0 comments on commit f9ddb65

Please sign in to comment.