From 06562c5fe484eba954770819a56dc4227a78aa44 Mon Sep 17 00:00:00 2001 From: Christian Segundo Date: Tue, 24 Dec 2024 19:17:41 +0100 Subject: First commit 🌲 --- flake.nix | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 flake.nix (limited to 'flake.nix') diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..b616a91 --- /dev/null +++ b/flake.nix @@ -0,0 +1,29 @@ +{ + inputs = { + nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable"; + flake-utils.url = "github:numtide/flake-utils"; + }; + outputs = + { self + , nixpkgs + , flake-utils + }: + flake-utils.lib.eachDefaultSystem ( + system: + let + pkgs = import nixpkgs { inherit system; }; + app = pkgs.callPackage ./app.nix { inherit pkgs; }; + deps = with pkgs; with perlPackages; [ + perl JSON LWP LWPProtocolHttps PathTiny + ]; + in + with pkgs; { + packages.docker = symlinkJoin { + name = "docker"; + paths = [ perl app ]; + meta.priority = 5; + }; + devShells.default = mkShell { buildInputs = deps; }; + } + ); +} -- cgit v1.2.3