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