System/packages/workspace-renamer/default.nix

23 lines
606 B
Nix
Raw Normal View History

{ config, lib, pkgs, fetchFromGitHub, rustPlatform, ... }:
let
vals = builtins.fromJSON (builtins.readFile ../../sources/autoname.json);
version = "1.0.0";
rev = vals.rev;
hash = vals.hash;
src = fetchFromGitHub {
owner = "hyprland-community";
repo = "hyprland-autoname-workspaces";
inherit rev hash;
};
in rustPlatform.buildRustPackage {
pname = "hyprland-autoname-workspaces";
inherit version;
inherit src;
cargoLock = {
lockFile = "${src}/Cargo.lock";
outputHashes = {
"hyprland-0.3.3" = "sha256-3RhuaVLCjEwvIBQyot2sma5kFLSGVndJ58UUef0bES4=";
};
};
}