Skip to content

Instantly share code, notes, and snippets.

@idrisr
Created June 24, 2023 15:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save idrisr/3bea3c23eeefe0b8779e2c61a8100214 to your computer and use it in GitHub Desktop.
Save idrisr/3bea3c23eeefe0b8779e2c61a8100214 to your computer and use it in GitHub Desktop.
{
inputs.nixpkgs.url = "nixpkgs";
outputs = { self, nixpkgs, ... }:
let
system = "x86_64-linux";
pkgs = import nixpkgs { inherit system; };
nbdkit = with pkgs;
stdenv.mkDerivation {
name = "nbdkit";
src = fetchFromGitLab {
owner = "nbdkit";
repo = "nbdkit";
rev = "3e4c1b79a72970c17cb42b21070e61ec634a38bb";
hash = "sha256-5ZJSwS2crjmts5s0Rk2A+g1drXkoop6Fq/qTZcB5W6Y=";
};
nativeBuildInputs =
[ autoconf automake autoreconfHook libtool m4 pkg-config python3 ];
configureFlags = [
"--without-manpages"
"--without-ssh"
"--without-gnutls"
"--disable-perl"
];
buildPhase = ''
make
make install
'';
autoreconfPhase = "autoreconf -i";
buildInputs = [ gnutls cryptsetup ];
};
in {
apps.${system} = { };
packages.${system}.default = nbdkit;
devShells.${system}.default = nbdkit;
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment