package into derivation
This commit is contained in:
parent
2a8d930b35
commit
afc18efdd2
1 changed files with 17 additions and 2 deletions
17
flake.nix
17
flake.nix
|
|
@ -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/
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue