package into derivation

This commit is contained in:
Yisroel Baum 2026-05-12 19:30:39 +03:00
parent 2a8d930b35
commit afc18efdd2
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9

View file

@ -1,7 +1,22 @@
{
description = "My resume";
outputs = { self }: {
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
};
outputs = { self, nixpkgs }:
let
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
in {
packages.${system}.default = pkgs.stdenv.mkDerivation {
name = "resume";
src = ./.;
installPhase = ''
mkdir -p $out
cp index.html resume.css $out/
'';
};
};
}