From 0cca332d1b5829fa65c982f77f6f850e9bef8e54 Mon Sep 17 00:00:00 2001 From: IogaMaster Date: Thu, 2 Nov 2023 15:31:00 -0600 Subject: flake: Add overlay make package output picom-allusive and default --- flake.lock | 61 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ flake.nix | 28 ++++++++++++++++++++-------- 2 files changed, 81 insertions(+), 8 deletions(-) create mode 100644 flake.lock diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..7c62ada --- /dev/null +++ b/flake.lock @@ -0,0 +1,61 @@ +{ + "nodes": { + "flake-utils": { + "inputs": { + "systems": "systems" + }, + "locked": { + "lastModified": 1694529238, + "narHash": "sha256-zsNZZGTGnMOf9YpHKJqMSsa0dXbfmxeoJ7xHlrt+xmY=", + "owner": "numtide", + "repo": "flake-utils", + "rev": "ff7b65b44d01cf9ba6a71320833626af21126384", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "flake-utils", + "type": "github" + } + }, + "nixpkgs": { + "locked": { + "lastModified": 1698890957, + "narHash": "sha256-DJ+SppjpPBoJr0Aro9TAcP3sxApCSieY6BYBCoWGUX8=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "c082856b850ec60cda9f0a0db2bc7bd8900d708c", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixpkgs-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "root": { + "inputs": { + "flake-utils": "flake-utils", + "nixpkgs": "nixpkgs" + } + }, + "systems": { + "locked": { + "lastModified": 1681028828, + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", + "owner": "nix-systems", + "repo": "default", + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", + "type": "github" + }, + "original": { + "owner": "nix-systems", + "repo": "default", + "type": "github" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix index 4895511..8fcaebe 100644 --- a/flake.nix +++ b/flake.nix @@ -4,18 +4,30 @@ flake-utils.url = "github:numtide/flake-utils"; }; - outputs = { self, nixpkgs, flake-utils, ... }: - flake-utils.lib.eachDefaultSystem (system: - let + outputs = { + self, + nixpkgs, + flake-utils, + ... + }: + flake-utils.lib.eachDefaultSystem ( + system: let pkgs = nixpkgs.legacyPackages.${system}; - in - { + in { devShells.default = pkgs.mkShell { - nativeBuildInputs = with pkgs; [ ]; - buildInputs = with pkgs; [ ]; + nativeBuildInputs = with pkgs; []; + buildInputs = with pkgs; []; }; - packages.default = pkgs.picom.overrideAttrs (old: { src = ./.; }); + packages = rec { + default = picom-allusive; + picom-allusive = pkgs.picom.overrideAttrs (_old: {src = ./.;}); + }; + + overlays = rec { + default = picom-allusive; + picom-allusive = self.packages.default; + }; } ); } -- cgit v1.2.3