Add flake.nix

This commit is contained in:
2023-04-10 16:13:17 +01:00
parent 699bafb4d0
commit 421a3eedfc
2 changed files with 48 additions and 0 deletions

21
flake.nix Normal file
View File

@@ -0,0 +1,21 @@
{
description = "Vimium PKI";
inputs.nixpkgs.url = github:nixos/nixpkgs/nixpkgs-unstable;
outputs = { self, nixpkgs }:
let
pkgs = nixpkgs.legacyPackages.x86_64-linux;
in {
defaultPackage.x86_64-linux = pkgs.stdenv.mkDerivation {
name = "vimium-pki";
version = "1";
src = ./.;
installPhase = ''
mkdir -p $out
cp index.html $out
cp *.cer $out
'';
};
};
}