mirror of
https://github.com/CHN-beta/nixos.git
synced 2024-10-23 01:59:19 +08:00
14 lines
275 B
Nix
14 lines
275 B
Nix
{ lib, stdenv, src }: stdenv.mkDerivation
|
|
{
|
|
name = "pocketfft";
|
|
inherit src;
|
|
phases = [ "installPhase" ];
|
|
installPhase =
|
|
''
|
|
runHook preInstall
|
|
mkdir -p $out/include
|
|
cp -r $src/pocketfft_hdronly.h $out/include/pocketfft.h
|
|
runHook postInstall
|
|
'';
|
|
}
|