From 3647b6c1140cb9e0cebeab19e53c0294f966b19b Mon Sep 17 00:00:00 2001 From: sinanmohd Date: Tue, 26 Sep 2023 19:41:45 +0530 Subject: flake: init --- flake.nix | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 flake.nix (limited to 'flake.nix') diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..b6b0cdf --- /dev/null +++ b/flake.nix @@ -0,0 +1,30 @@ +{ + description = "A Wayland Program"; + + inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; + + outputs = { self, nixpkgs }: + let + supportedSystems = [ "i686-linux" "x86_64-linux" "aarch64-linux" ]; + + forAllSystems = f: nixpkgs.lib.genAttrs supportedSystems (system: (forSystem system f)); + + forSystem = system: f: f rec { + inherit system; + pkgs = import nixpkgs { inherit system; }; + lib = pkgs.lib; + }; + in + { + devShells = forAllSystems ({ system, pkgs, ...}: { + default = pkgs.mkShell { + name = "wayland-program"; + + buildInputs = with pkgs; [ wayland ]; + shellHook = '' + export PS1="\033[0;33m[󱄄 ]\033[0m $PS1" + ''; + }; + }); + }; +} -- cgit v1.2.3