add flake support

This commit is contained in:
Tim Schubert 2021-08-01 19:26:40 +02:00
parent 065ff0f0ee
commit 3bc882eba6
Signed by: dadada
GPG key ID: EEB8D1CE62C4DFEA
2 changed files with 55 additions and 0 deletions

15
flake.nix Normal file
View file

@ -0,0 +1,15 @@
{
description = "Assorted scripts";
inputs = {
flake-utils.url = github:numtide/flake-utils;
};
outputs = { self, flake-utils, nixpkgs, ... }: (flake-utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system};
in
{
defaultPackage = self.packages.${system}.scripts;
packages.scripts = pkgs.callPackage ./default.nix { };
}
));
}