Add flake.nix

This commit is contained in:
Jordan Holt 2023-04-10 18:59:30 +01:00
parent e85e8ec6e5
commit c555d549ca
Signed by: jordan
GPG Key ID: B8CFFF61F1CCF520
2 changed files with 49 additions and 0 deletions

27
flake.lock generated Normal file
View File

@ -0,0 +1,27 @@
{
"nodes": {
"nixpkgs": {
"locked": {
"lastModified": 1681092589,
"narHash": "sha256-I11GYL+6yD6dX89H0WaMiptE52NZ2Tmx+rA23TUyfH8=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "83ca2cd74539fb8e79d46e233f6bb1d978c36f32",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixpkgs-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {
"inputs": {
"nixpkgs": "nixpkgs"
}
}
},
"root": "root",
"version": 7
}

22
flake.nix Normal file
View File

@ -0,0 +1,22 @@
{
description = "Vimium edge errors";
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 = "edge-errors";
version = "1";
src = ./.;
installPhase = ''
mkdir -p $out
cp -r *.html $out
'';
};
};
}