Add flake.nix

This commit is contained in:
Jordan Holt 2023-04-10 16:13:17 +01:00
parent 699bafb4d0
commit 421a3eedfc
Signed by: jordan
GPG Key ID: B8CFFF61F1CCF520
2 changed files with 48 additions and 0 deletions

27
flake.lock generated Normal file
View File

@ -0,0 +1,27 @@
{
"nodes": {
"nixpkgs": {
"locked": {
"lastModified": 1681064623,
"narHash": "sha256-UngFykv8KTrjxFeu4ZMvsOwFrxsa0A3ZPwyLhxb0Rrs=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "da0b0bc6a5d699a8a9ffbf9e1b19e8642307062a",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixpkgs-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {
"inputs": {
"nixpkgs": "nixpkgs"
}
}
},
"root": "root",
"version": 7
}

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
'';
};
};
}