Created
June 24, 2023 15:46
-
-
Save idrisr/3bea3c23eeefe0b8779e2c61a8100214 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
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