From 37d5ef75306c45ca95550f4af40d9750c5b9cb88 Mon Sep 17 00:00:00 2001 From: Hannes Schulze Date: Mon, 6 May 2024 13:42:55 +0200 Subject: initial commit yup, i definitely wrote all of this in a single commit --- flake.nix | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 flake.nix (limited to 'flake.nix') diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..f344ca7 --- /dev/null +++ b/flake.nix @@ -0,0 +1,33 @@ +{ + description = "A simple bar, launcher, control center, and notification daemon."; + + inputs = { + nixpkgs = { + url = "github:nixos/nixpkgs/nixos-unstable"; + }; + flake-utils = { + url = "github:numtide/flake-utils"; + }; + }; + + outputs = { self, nixpkgs, flake-utils }: + flake-utils.lib.eachDefaultSystem (system: + let + pkgs = import nixpkgs { inherit system; }; + foobar = (pkgs.callPackage ./nix/package.nix {}); + in + { + packages = { + inherit foobar; + default = foobar; + }; + + devShells = { + algoks = pkgs.mkShell { + name = "foobar"; + packages = [ pkgs.libnotify ]; # for testing the notification daemon + inputsFrom = foobar; + }; + }; + }); +} -- cgit v1.3.1