From 3ad1dcfa4fc8192391210640c2c22ef2c0a17d36 Mon Sep 17 00:00:00 2001 From: James Walker Date: Thu, 27 Jul 2023 14:52:21 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A8=20add=20nix=20overlay?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- flake.lock | 14 +++++++------- flake.nix | 8 ++++++-- 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/flake.lock b/flake.lock index 2f17391..8beaa86 100644 --- a/flake.lock +++ b/flake.lock @@ -21,11 +21,11 @@ "systems": "systems" }, "locked": { - "lastModified": 1685518550, - "narHash": "sha256-o2d0KcvaXzTrPRIo0kOLV0/QXHhDQ5DTi+OxcjO8xqY=", + "lastModified": 1689068808, + "narHash": "sha256-6ixXo3wt24N/melDWjq70UuHQLxGV8jZvooRanIHXw0=", "owner": "numtide", "repo": "flake-utils", - "rev": "a1720a10a6cfe8234c0e93907ffe81be440f4cef", + "rev": "919d646de7be200f3bf08cb76ae1f09402b6f9b4", "type": "github" }, "original": { @@ -36,16 +36,16 @@ }, "nixpkgs": { "locked": { - "lastModified": 1686186443, - "narHash": "sha256-Cdz0cYVvS3n2YhyJBgPznIDjsuRyX0OBXkDH3dU/Eo8=", + "lastModified": 1690370995, + "narHash": "sha256-9z//23jGegLJrf3ITStLwVf715O39dq5u48Kr/XW14U=", "owner": "nixos", "repo": "nixpkgs", - "rev": "59fcfbea18ef091907a114ed41ccba6fc926994a", + "rev": "f3fbbc36b4e179a5985b9ab12624e9dfe7989341", "type": "github" }, "original": { "owner": "nixos", - "ref": "release-23.05", + "ref": "nixos-23.05", "repo": "nixpkgs", "type": "github" } diff --git a/flake.nix b/flake.nix index 7289668..688b6d7 100644 --- a/flake.nix +++ b/flake.nix @@ -2,7 +2,7 @@ description = "Manage tmux for what you work on."; inputs = { - nixpkgs.url = "github:nixos/nixpkgs/release-23.05"; + nixpkgs.url = "github:nixos/nixpkgs/nixos-23.05"; flake-utils.url = "github:numtide/flake-utils"; flake-compat = { url = "github:edolstra/flake-compat"; @@ -11,7 +11,11 @@ }; outputs = { self, nixpkgs, flake-utils, ... }: - flake-utils.lib.eachDefaultSystem (system: + { + overlays.default = final: prev: { + inherit (self.packages.${prev.system}) workon; + }; + } // flake-utils.lib.eachDefaultSystem (system: let pkgs = nixpkgs.legacyPackages.${system}; in {