Files

57 lines
1.7 KiB
Nix
Raw Permalink Normal View History

2025-12-23 15:48:45 -05:00
{
description = "swaytreesave flake";
2025-12-23 14:39:51 -06:00
2025-12-23 15:48:45 -05:00
inputs = {
flake-schemas.url = "https://flakehub.com/f/DeterminateSystems/flake-schemas/*";
nixpkgs.url = "https://flakehub.com/f/NixOS/nixpkgs/*";
};
outputs = { self, flake-schemas, nixpkgs }:
let
supportedSystems = [ "x86_64-linux" ];
forEachSupportedSystem = f: nixpkgs.lib.genAttrs supportedSystems (system: f {
pkgs = import nixpkgs { inherit system; };
});
in {
schemas = flake-schemas.schemas;
devShells = forEachSupportedSystem ({ pkgs }: {
default = pkgs.mkShell {
packages = with pkgs; [
curl
git
jq
wget
nixpkgs-fmt
];
};
});
packages = forEachSupportedSystem ({ pkgs }: {
default = let
pname = "swaytreesave";
version = "0.4.0";
src = pkgs.fetchFromGitHub {
owner = "fabienjuif";
repo = "swaytreesave";
rev = "v${version}";
2025-12-23 15:55:28 -05:00
sha256 = "sha256-aAJBbauOiFERABF13hMhxyvRBzcx5c1F+vbm/U+JS8o=";
2025-12-23 15:48:45 -05:00
};
in pkgs.rustPlatform.buildRustPackage {
inherit pname version src;
2025-12-23 15:55:28 -05:00
cargoLock = { lockFile = "${src}/Cargo.lock"; };
2025-12-23 15:48:45 -05:00
meta = {
2025-12-23 14:39:51 -06:00
description = "CLI to save and load your compositors tree/layout";
mainProgram = "swaytreesave";
homepage = "https://github.com/fabienjuif/swaytreesave";
2025-12-23 15:48:45 -05:00
maintainers = [ "wymillerlinux" ];
platforms = [ "x86_64-linux" ];
2025-12-23 14:39:51 -06:00
changelog = "https://github.com/fabienjuif/swaytreesave/releases/tag/v${version}";
2025-12-23 15:48:45 -05:00
};
};
});
};
}