Skip to content

Instantly share code, notes, and snippets.

View pjones's full-sized avatar

Peter J. Jones pjones

View GitHub Profile
@pjones
pjones / fips.nix
Created July 26, 2024 18:59
Build OpenSSL with FIPS support.
{ openssl
}:
openssl.overrideAttrs (orig: {
# Compile the FIPS module:
configureFlags = orig.configureFlags ++ [
"enable-ec_nistp_64_gcc_128"
"enable-fips"
];
@pjones
pjones / flake.nix
Created August 26, 2024 15:30
How to use an overlay in a flake to mix stable and unstable.
{
description = "Packages from stable and unstable";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05";
nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
};
outputs = inputs@{ self, nixpkgs, ... }:
let