14 rustPlatform.buildRustPackage rec {
18 src = fetchFromGitHub {
22 sha256 = "sha256-k0WQu1n1sAHVor58jr060vD5/2rDrt1k5zzJlrK9WrU=";
25 cargoHash = "sha256-OQZPOiMTpoWabxHa3TJG8L3zq8WxMeFttw8xggSXsMA=";
27 nativeBuildInputs = lib.optionals stdenv.hostPlatform.isLinux [
31 buildInputs = lib.optionals stdenv.hostPlatform.isLinux [
39 ] ++ lib.optionals stdenv.hostPlatform.isDarwin [
44 install -Dm444 assets/epick.desktop -t $out/share/applications
45 install -Dm444 assets/icon.svg $out/share/icons/hicolor/scalable/apps/epick.svg
46 install -Dm444 assets/icon.png $out/share/icons/hicolor/48x48/apps/epick.png
49 postFixup = lib.optionalString stdenv.hostPlatform.isLinux ''
50 patchelf $out/bin/epick --add-rpath ${lib.makeLibraryPath [ libGL ]}
54 description = "Simple color picker that lets the user create harmonic palettes with ease";
55 homepage = "https://github.com/vv9k/epick";
56 changelog = "https://github.com/vv9k/epick/blob/${version}/CHANGELOG.md";
57 license = licenses.gpl3Only;
58 maintainers = with maintainers; [ figsoda ];
59 mainProgram = "epick";