File tree Expand file tree Collapse file tree 1 file changed +60
-0
lines changed
pkgs/by-name/co/cosmic-ext-tweaks Expand file tree Collapse file tree 1 file changed +60
-0
lines changed Original file line number Diff line number Diff line change 1+ # SPDX-License-Identifier: MIT
2+ # SPDX-FileCopyrightText: Lily Foster <[email protected] > 3+ # Portions of this code are adapted from nixos-cosmic
4+ # https://github.com/lilyinstarlight/nixos-cosmic
5+ {
6+ lib ,
7+ stdenv ,
8+ rustPlatform ,
9+ fetchFromGitHub ,
10+ libcosmicAppHook ,
11+ just ,
12+ openssl ,
13+ nix-update-script ,
14+ } :
15+ rustPlatform . buildRustPackage rec {
16+ pname = "cosmic-ext-tweaks" ;
17+ version = "0.1.3" ;
18+
19+ src = fetchFromGitHub {
20+ owner = "cosmic-utils" ;
21+ repo = "tweaks" ;
22+ tag = version ;
23+ hash = "sha256-SzD2TnPrCKsG3d+t1695GSC+HCqK88wlO42saGAZLS8=" ;
24+ } ;
25+
26+ useFetchCargoVendor = true ;
27+ cargoHash = "sha256-LgrjrGusQ5HZJcAPsgV0hUgvcAZr8rlPyE3+z910+pI=" ;
28+
29+ nativeBuildInputs = [
30+ libcosmicAppHook
31+ just
32+ ] ;
33+
34+ buildInputs = [ openssl ] ;
35+
36+ dontUseJustBuild = true ;
37+ dontUseJustCheck = true ;
38+
39+ justFlags = [
40+ "--set"
41+ "prefix"
42+ ( placeholder "out" )
43+ "--set"
44+ "bin-src"
45+ "target/${ stdenv . hostPlatform . rust . cargoShortTarget } /release/cosmic-ext-tweaks"
46+ ] ;
47+
48+ passthru . updateScript = nix-update-script { } ;
49+
50+ meta = {
51+ changelog = "https://github.com/cosmic-utils/tweaks/releases/tag/${ version } " ;
52+ description = "Tweaking tool for the COSMIC Desktop Environment" ;
53+ homepage = "https://github.com/cosmic-utils/tweaks" ;
54+ license = lib . licenses . gpl3Only ;
55+ mainProgram = "cosmic-ext-tweaks" ;
56+ maintainers = with lib . maintainers ; [ HeitorAugustoLN ] ;
57+ platforms = lib . platforms . linux ;
58+ sourceProvenance = [ lib . sourceTypes . fromSource ] ;
59+ } ;
60+ }
You can’t perform that action at this time.
0 commit comments