Skip to content

Commit

Permalink
flakify
Browse files Browse the repository at this point in the history
  • Loading branch information
nim65s committed Mar 15, 2024
1 parent 1a3cfc5 commit e5a274c
Show file tree
Hide file tree
Showing 3 changed files with 94 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .nixignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*.nix
flake.lock
61 changes: 61 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

31 changes: 31 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
description = "i3-compatible Wayland compositor";

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 = nixpkgs.legacyPackages.${system};
sway-unwrapped = pkgs.sway-unwrapped.overrideAttrs (
previous: {
src = pkgs.nix-gitignore.gitignoreSource [ ./.nixignore ] ./.;
}
);
sway = pkgs.sway.override {sway-unwrapped=sway-unwrapped;};
in
{
packages.default = sway;
devShells.default = pkgs.mkShell { inputsFrom = [ sway ]; };
}
);
}

0 comments on commit e5a274c

Please sign in to comment.