Q2TG/nixos/prismaPatched.nix

10 lines
241 B
Nix
Raw Normal View History

2022-09-11 13:14:47 +00:00
{ runCommand, nodePackages }:
runCommand "patchPrisma" { } ''
cp -r ${nodePackages.prisma} $out
chmod +w -R $out
cd $out
patch -p1 < ${./prisma.patch}
substituteInPlace $out/bin/prisma --replace '${nodePackages.prisma}' "$out"
''