mirror of
https://codeberg.org/puppe/financier-nix.git
synced 2025-12-20 00:12:17 +01:00
The overlay has been removed and the package financier-dist is now always built with the Nixpkgs version from our flake inputs. Overlays can be applied to any version of Nixpkgs, but our package does not work with all versions of Nixpkgs. For example, we currently built our package with Node 12. The nodejs-12_x has been marked as insecure on the 21.05 branch in May 2022 breaking our build and consequently our module and all configurations that rely on it. Usually, it would be very bad to pin to an old Nixpkgs version as we miss potential security updates. But we build a static website and it is very unlikely that it has any security issues.
17 lines
468 B
Nix
17 lines
468 B
Nix
{ pkgs, system, stdenv, financierVersion }:
|
|
|
|
let financier = (import ./default.nix { inherit pkgs system; }).package;
|
|
|
|
in stdenv.mkDerivation {
|
|
version = financierVersion;
|
|
pname = "financier-dist";
|
|
src = "${financier}/lib/node_modules/financier";
|
|
buildInputs = [ financier.nodejs ];
|
|
phases = [ "unpackPhase" "buildPhase" "installPhase" ];
|
|
buildPhase = ''
|
|
env NO_UPDATE_NOTIFIER=true npm run build
|
|
'';
|
|
installPhase = ''
|
|
cp -r dist $out/
|
|
'';
|
|
}
|