Skip to content

Commit

Permalink
osg-ca-certs: init at 1.130
Browse files Browse the repository at this point in the history
  • Loading branch information
veprbl committed Sep 19, 2024
1 parent 5ddd76c commit 10e5185
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 1 deletion.
2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
overlays = [ self.overlays.default ];
# Will assume that the flake user agrees to use non-free EIC software
config.allowUnfreePredicate = pkg:
(builtins.elem pkg.pname [ "afterburner" "athena" "BeastMagneticField" "eic-smear" "epic" "hepmcmerger" "npdet" "npsim" "pythia6" ])
(builtins.elem pkg.pname [ "afterburner" "athena" "BeastMagneticField" "eic-smear" "epic" "hepmcmerger" "npdet" "npsim" "osg-ca-certs" "pythia6" ])
|| lib.hasPrefix "ecce-detectors" pkg.pname
|| lib.hasPrefix "fun4all_coresoftware" pkg.pname
|| lib.hasPrefix "fun4all_eicdetectors" pkg.pname
Expand Down
2 changes: 2 additions & 0 deletions overlay.nix
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,8 @@ final: prev: with final; {
}
);

osg-ca-certs = callPackage pkgs/osg-ca-certs {};

podio = callPackage pkgs/podio { inherit podio-src; };

pythia6 = callPackage pkgs/pythia6 {};
Expand Down
35 changes: 35 additions & 0 deletions pkgs/osg-ca-certs/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
lib,
stdenv,
fetchurl,
}:

stdenv.mkDerivation rec {
pname = "osg-ca-certs";
version = "1.130";

src = fetchurl {
url = "https://repo.opensciencegrid.org/cadist/${version}NEW/osg-certificates-${version}NEW.tar.gz";
hash = "sha256-R0+OpHOXzWoFvrihTFqVFRCjnlICzF/edXhyf3pduVc=";
};

dontConfigure = true;
dontBuild = true;

installPhase = ''
runHook preInstall
mkdir -p "$out"/etc/grid-security/certificates
mv * "$out"/etc/grid-security/certificates/
runHook postInstall
'';

meta = with lib; {
changelog = "https://repo.opensciencegrid.org/cadist/CHANGES";
description = "OSG CA certificates";
license = licenses.unfreeRedistributable; # no license specified
homepage = "https://ca.cilogon.org/";
maintainers = with maintainers; [ veprbl ];
};
}

0 comments on commit 10e5185

Please sign in to comment.