mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 03:23:29 +03:00
cosmic-ext-tweaks: init at 0.1.3
This commit is contained in:
parent
fdfa533826
commit
e86d97f2be
1 changed files with 60 additions and 0 deletions
60
pkgs/by-name/co/cosmic-ext-tweaks/package.nix
Normal file
60
pkgs/by-name/co/cosmic-ext-tweaks/package.nix
Normal file
|
@ -0,0 +1,60 @@
|
||||||
|
# SPDX-License-Identifier: MIT
|
||||||
|
# SPDX-FileCopyrightText: Lily Foster <lily@lily.flowers>
|
||||||
|
# Portions of this code are adapted from nixos-cosmic
|
||||||
|
# https://github.com/lilyinstarlight/nixos-cosmic
|
||||||
|
{
|
||||||
|
lib,
|
||||||
|
stdenv,
|
||||||
|
rustPlatform,
|
||||||
|
fetchFromGitHub,
|
||||||
|
libcosmicAppHook,
|
||||||
|
just,
|
||||||
|
openssl,
|
||||||
|
nix-update-script,
|
||||||
|
}:
|
||||||
|
rustPlatform.buildRustPackage rec {
|
||||||
|
pname = "cosmic-ext-tweaks";
|
||||||
|
version = "0.1.3";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "cosmic-utils";
|
||||||
|
repo = "tweaks";
|
||||||
|
tag = version;
|
||||||
|
hash = "sha256-SzD2TnPrCKsG3d+t1695GSC+HCqK88wlO42saGAZLS8=";
|
||||||
|
};
|
||||||
|
|
||||||
|
useFetchCargoVendor = true;
|
||||||
|
cargoHash = "sha256-LgrjrGusQ5HZJcAPsgV0hUgvcAZr8rlPyE3+z910+pI=";
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
libcosmicAppHook
|
||||||
|
just
|
||||||
|
];
|
||||||
|
|
||||||
|
buildInputs = [ openssl ];
|
||||||
|
|
||||||
|
dontUseJustBuild = true;
|
||||||
|
dontUseJustCheck = true;
|
||||||
|
|
||||||
|
justFlags = [
|
||||||
|
"--set"
|
||||||
|
"prefix"
|
||||||
|
(placeholder "out")
|
||||||
|
"--set"
|
||||||
|
"bin-src"
|
||||||
|
"target/${stdenv.hostPlatform.rust.cargoShortTarget}/release/cosmic-ext-tweaks"
|
||||||
|
];
|
||||||
|
|
||||||
|
passthru.updateScript = nix-update-script { };
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
changelog = "https://github.com/cosmic-utils/tweaks/releases/tag/${version}";
|
||||||
|
description = "Tweaking tool for the COSMIC Desktop Environment";
|
||||||
|
homepage = "https://github.com/cosmic-utils/tweaks";
|
||||||
|
license = lib.licenses.gpl3Only;
|
||||||
|
mainProgram = "cosmic-ext-tweaks";
|
||||||
|
maintainers = with lib.maintainers; [ HeitorAugustoLN ];
|
||||||
|
platforms = lib.platforms.linux;
|
||||||
|
sourceProvenance = [ lib.sourceTypes.fromSource ];
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue