diff options
author | Christian Segundo | 2024-12-24 19:17:41 +0100 |
---|---|---|
committer | Christian Segundo | 2024-12-24 19:17:41 +0100 |
commit | 06562c5fe484eba954770819a56dc4227a78aa44 (patch) | |
tree | 79f8e877581abd4f529b613266a0a9fa691a2401 /flake.nix | |
parent | f71ff745bd50609bd0ed02d8617834b209a45edb (diff) | |
download | slack2gitlab-emoji-sync-06562c5fe484eba954770819a56dc4227a78aa44.tar.gz |
First commit 🌲
Diffstat (limited to 'flake.nix')
-rw-r--r-- | flake.nix | 29 |
1 files changed, 29 insertions, 0 deletions
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; }; + } + ); +} |