diff options
author | Weijia Wang <9713184+wegank@users.noreply.github.com> | 2024-01-12 22:44:33 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-12 22:44:33 +0100 |
commit | 622dc3857380827b80e934923c1383db7d924d8d (patch) | |
tree | ac49dc161b15d40bd85fffed20424f8fb849c702 /pkgs/by-name | |
parent | 0e2fe90b67468d733694ac558c87139e3512960c (diff) | |
parent | 1dfceaa09d3bd01c2630596cb23b51c78056a613 (diff) |
Merge pull request #266367 from nyabinary/cosmic-screenshot
cosmic-screenshot: init at unstable-2023-11-08
Diffstat (limited to 'pkgs/by-name')
-rw-r--r-- | pkgs/by-name/co/cosmic-screenshot/package.nix | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/pkgs/by-name/co/cosmic-screenshot/package.nix b/pkgs/by-name/co/cosmic-screenshot/package.nix new file mode 100644 index 0000000000000..2703698042ad0 --- /dev/null +++ b/pkgs/by-name/co/cosmic-screenshot/package.nix @@ -0,0 +1,43 @@ +{ lib +, stdenv +, fetchFromGitHub +, rustPlatform +, just +, pkg-config +}: + +rustPlatform.buildRustPackage rec { + pname = "cosmic-screenshot"; + version = "unstable-2023-11-08"; + + src = fetchFromGitHub { + owner = "pop-os"; + repo = pname; + rev = "b413a7128ddcdfb3c63e84bdade5c5b90b163a9a"; + hash = "sha256-SDxBBhmnqNDX95Rb7QiI46sAxrfodB5tSq8AbXAU480="; + }; + + cargoHash = "sha256-ZRsAhIWPm38Ys9jM/3yVJLW818lUGLCcSfFZb+UTbnU="; + + nativeBuildInputs = [ just pkg-config ]; + + dontUseJustBuild = true; + + justFlags = [ + "--set" + "prefix" + (placeholder "out") + "--set" + "bin-src" + "target/${stdenv.hostPlatform.rust.cargoShortTarget}/release/cosmic-screenshot" + ]; + + meta = with lib; { + homepage = "https://github.com/pop-os/cosmic-screenshot"; + description = "Screenshot tool for the COSMIC Desktop Environment"; + license = licenses.gpl3Only; + maintainers = with maintainers; [ nyanbinary ]; + platforms = platforms.linux; + mainProgram = "cosmic-screenshot"; + }; +} |