mirror of
https://github.com/JaxTheWolf/nixos.git
synced 2026-04-01 02:00:22 +02:00
Use krokiet instead of czkawka
This commit is contained in:
31
flake.lock
generated
31
flake.lock
generated
@@ -19,16 +19,15 @@
|
|||||||
"czkawka-src": {
|
"czkawka-src": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1742109806,
|
"lastModified": 1769933380,
|
||||||
"narHash": "sha256-ePiHDfQ1QC3nff8uWE0ggiTuulBomuoZ3ta0redUYXY=",
|
"narHash": "sha256-Gu1cg0d5aXBc+jYikLjvBwMzCgy+349KqQjVrzTe2pE=",
|
||||||
"owner": "qarmin",
|
"owner": "qarmin",
|
||||||
"repo": "czkawka",
|
"repo": "czkawka",
|
||||||
"rev": "5dc8d38cfef639b71e74468a284677b5ec9f97bf",
|
"rev": "ba45d0f5299e0460f9410d3192f81bbb8a2b5826",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "qarmin",
|
"owner": "qarmin",
|
||||||
"ref": "9.0.0",
|
|
||||||
"repo": "czkawka",
|
"repo": "czkawka",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
@@ -83,11 +82,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1768908532,
|
"lastModified": 1769799857,
|
||||||
"narHash": "sha256-HIdLXEFaUVE8FiaCPJbCfBMsnF+mVtDub8Jwj2BD+mk=",
|
"narHash": "sha256-88IFXZ7Sa1vxbz5pty0Io5qEaMQMMUPMonLa3Ls/ss4=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "naersk",
|
"repo": "naersk",
|
||||||
"rev": "8d97452673640eb7fabe428e8b6a425bc355008b",
|
"rev": "9d4ed44d8b8cecdceb1d6fd76e74123d90ae6339",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -113,11 +112,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1769018530,
|
"lastModified": 1769461804,
|
||||||
"narHash": "sha256-MJ27Cy2NtBEV5tsK+YraYr2g851f3Fl1LpNHDzDX15c=",
|
"narHash": "sha256-msG8SU5WsBUfVVa/9RPLaymvi5bI8edTavbIq3vRlhI=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "88d3861acdd3d2f0e361767018218e51810df8a1",
|
"rev": "bfc1b8a4574108ceef22f02bafcf6611380c100d",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -129,11 +128,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs_2": {
|
"nixpkgs_2": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1769170000,
|
"lastModified": 1769900851,
|
||||||
"narHash": "sha256-6oPLzApeqyasaTOXVFVlAG1egake5j7SUAbHNn3xOhk=",
|
"narHash": "sha256-RgCgXS3WiG9c/1wxFM6OXmmv39dSaLLON9VeAbTTAIM=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "ff1238ae9265ebacb8e1341e658d839bdf5fac8b",
|
"rev": "30a3e96da641620c63f2e1f345ea434ac78f5de1",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -145,11 +144,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs_3": {
|
"nixpkgs_3": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1769018530,
|
"lastModified": 1769461804,
|
||||||
"narHash": "sha256-MJ27Cy2NtBEV5tsK+YraYr2g851f3Fl1LpNHDzDX15c=",
|
"narHash": "sha256-msG8SU5WsBUfVVa/9RPLaymvi5bI8edTavbIq3vRlhI=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "88d3861acdd3d2f0e361767018218e51810df8a1",
|
"rev": "bfc1b8a4574108ceef22f02bafcf6611380c100d",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|||||||
@@ -4,6 +4,7 @@
|
|||||||
|
|
||||||
nix-flatpak.url = "github:gmodena/nix-flatpak";
|
nix-flatpak.url = "github:gmodena/nix-flatpak";
|
||||||
czkawka-master.url = "path:./flakes/czkawka-master";
|
czkawka-master.url = "path:./flakes/czkawka-master";
|
||||||
|
# czkawka-git.url = "github:qarmin/czkawka?dir=misc/nix";
|
||||||
solaar-master.url = "path:./flakes/solaar-master";
|
solaar-master.url = "path:./flakes/solaar-master";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -1,15 +1,12 @@
|
|||||||
{
|
{
|
||||||
description = "Czkawka (Master) - Built with Naersk";
|
description = "Krokiet (Czkawka Slint GUI)";
|
||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||||
|
|
||||||
czkawka-src = {
|
czkawka-src = {
|
||||||
url = "github:qarmin/czkawka/9.0.0";
|
url = "github:qarmin/czkawka";
|
||||||
flake = false;
|
flake = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
# Naersk: Builds Rust crates without needing a manual cargoHash
|
|
||||||
naersk = {
|
naersk = {
|
||||||
url = "github:nix-community/naersk";
|
url = "github:nix-community/naersk";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
@@ -30,39 +27,56 @@
|
|||||||
|
|
||||||
nativeBuildInputs = with pkgs; [
|
nativeBuildInputs = with pkgs; [
|
||||||
pkg-config
|
pkg-config
|
||||||
wrapGAppsHook4
|
cmake
|
||||||
gobject-introspection
|
makeWrapper
|
||||||
cargo
|
cargo
|
||||||
rustc
|
rustc
|
||||||
];
|
];
|
||||||
|
|
||||||
buildInputs = with pkgs; [
|
runtimeLibs = with pkgs; [
|
||||||
glib
|
wayland
|
||||||
gtk4
|
libxkbcommon
|
||||||
cairo
|
libglvnd
|
||||||
pango
|
fontconfig
|
||||||
gdk-pixbuf
|
xorg.libX11
|
||||||
atk
|
xorg.libXcursor
|
||||||
libadwaita
|
xorg.libXi
|
||||||
|
xorg.libXrandr
|
||||||
];
|
];
|
||||||
|
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
packages.${system}.default = naersk-lib.buildPackage {
|
packages.${system}.default = naersk-lib.buildPackage {
|
||||||
pname = "czkawka";
|
pname = "krokiet";
|
||||||
version = "master";
|
version = "master";
|
||||||
src = czkawka-src;
|
src = czkawka-src;
|
||||||
|
|
||||||
inherit nativeBuildInputs buildInputs;
|
nativeBuildInputs = nativeBuildInputs;
|
||||||
|
buildInputs = runtimeLibs;
|
||||||
|
|
||||||
|
cargoBuildOptions =
|
||||||
|
x:
|
||||||
|
x
|
||||||
|
++ [
|
||||||
|
"-p"
|
||||||
|
"krokiet"
|
||||||
|
];
|
||||||
|
|
||||||
|
buildAndCheckFeatures = [
|
||||||
|
"winit_wayland"
|
||||||
|
"winit_x11"
|
||||||
|
];
|
||||||
|
|
||||||
RUSTFLAGS = "-C target-cpu=native";
|
RUSTFLAGS = "-C target-cpu=native";
|
||||||
NIX_CFLAGS_COMPILE = "-march=native -mtune=native";
|
NIX_CFLAGS_COMPILE = "-march=native -mtune=native";
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
install -Dm444 -t $out/share/applications data/com.github.qarmin.czkawka.desktop
|
wrapProgram $out/bin/krokiet \
|
||||||
install -Dm444 -t $out/share/icons/hicolor/scalable/apps data/icons/com.github.qarmin.czkawka.svg
|
--prefix LD_LIBRARY_PATH : ${pkgs.lib.makeLibraryPath runtimeLibs}
|
||||||
install -Dm444 -t $out/share/icons/hicolor/scalable/apps data/icons/com.github.qarmin.czkawka-symbolic.svg
|
|
||||||
install -Dm444 -t $out/share/metainfo data/com.github.qarmin.czkawka.metainfo.xml
|
install -Dm444 -t $out/share/applications data/io.github.qarmin.czkawka.krokiet.desktop
|
||||||
|
install -Dm444 -t $out/share/icons/hicolor/scalable/apps data/icons/io.github.qarmin.czkawka.krokiet.svg
|
||||||
|
install -Dm444 -t $out/share/metainfo data/io.github.qarmin.czkawka.krokiet.metainfo.xml
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -61,6 +61,7 @@
|
|||||||
curl
|
curl
|
||||||
# czkawka
|
# czkawka
|
||||||
czkawka-master.packages.${pkgs.stdenv.hostPlatform.system}.default
|
czkawka-master.packages.${pkgs.stdenv.hostPlatform.system}.default
|
||||||
|
# czkawka-git.packages.${pkgs.stdenv.hostPlatform.system}.czkawka-gui-wayland
|
||||||
ddcutil
|
ddcutil
|
||||||
discord
|
discord
|
||||||
distrobox
|
distrobox
|
||||||
|
|||||||
Reference in New Issue
Block a user