diff options
Diffstat (limited to 'pkgs/by-name/or')
-rw-r--r-- | pkgs/by-name/or/oreo-cursors-plus/package.nix | 70 | ||||
-rw-r--r-- | pkgs/by-name/or/ory/package.nix | 43 |
2 files changed, 113 insertions, 0 deletions
diff --git a/pkgs/by-name/or/oreo-cursors-plus/package.nix b/pkgs/by-name/or/oreo-cursors-plus/package.nix new file mode 100644 index 0000000000000..d998718ad085c --- /dev/null +++ b/pkgs/by-name/or/oreo-cursors-plus/package.nix @@ -0,0 +1,70 @@ +{ + lib, + stdenvNoCC, + fetchFromGitHub, + ruby, + inkscape, + xorg, + writeText, + cursorsConf ? null, # If set to a string, overwrites contents of './cursors.conf' +}: +let + newCursorsConf = writeText "oreo-cursors-plus.conf" cursorsConf; +in +stdenvNoCC.mkDerivation { + pname = "oreo-cursors-plus"; + version = "unstable-2023-06-05"; + src = fetchFromGitHub { + owner = "Souravgoswami"; + repo = "oreo-cursors"; + # At the time of writing, there are no version tags. The author will add them starting with the next version release. + # Using the latest commit instead. + rev = "9133204d60ca2c54be0df03b836968a1deac6b20"; + hash = "sha256-6oTyOQK7mkr+jWYbPNBlJ4BpT815lNJvsJjzdTmj+68="; + }; + + nativeBuildInputs = lib.optionals (cursorsConf != null) [ ruby inkscape xorg.xcursorgen ]; + + # './cursors.conf' contains definitions of cursor variations to generate. + configurePhase = '' + runHook preConfigure + + ${lib.optionalString (cursorsConf != null) '' + cp ${newCursorsConf} cursors.conf + ''} + + runHook postConfigure + ''; + + # The repo already contains the default cursors pre-generated in './dist'. Just copy these if './cursors.conf' is not overwritten. + # Otherwise firs remove all default variations and build. + buildPhase ='' + runHook preBuild + + ${lib.optionalString (cursorsConf != null) '' + rm -r {dist,src/oreo_*} + export HOME=$TMP + ruby generator/convert.rb + make build + ''} + + runHook postBuild + ''; + + installPhase = '' + runHook preInstall + + mkdir -p $out/share + mv ./dist $out/share/icons + + runHook postInstall + ''; + + meta = { + description = "Colored Material cursors with cute animations"; + homepage = "https://github.com/Souravgoswami/oreo-cursors"; + license = lib.licenses.gpl2Only; + platforms = lib.platforms.all; + maintainers = with lib.maintainers; [michaelBrunner]; + }; +} diff --git a/pkgs/by-name/or/ory/package.nix b/pkgs/by-name/or/ory/package.nix new file mode 100644 index 0000000000000..e014240f53f2c --- /dev/null +++ b/pkgs/by-name/or/ory/package.nix @@ -0,0 +1,43 @@ +{ lib, buildGoModule, fetchFromGitHub, installShellFiles }: + +buildGoModule rec { + pname = "ory"; + version = "0.3.1"; + + src = fetchFromGitHub { + owner = "ory"; + repo = "cli"; + rev = "refs/tags/v${version}"; + hash = "sha256-dO595NzdkVug955dqji/ttAPb+sMGLxJftXHzHA37Lo="; + }; + + nativeBuildInputs = [ + installShellFiles + ]; + + subPackages = [ "." ]; + + CGO_ENABLED = 1; + + tags = [ + "sqlite" + ]; + + vendorHash = "sha256-H1dM/r7gJvjnexQwlA4uhJ7rUH15yg4AMRW/f0k1Ixw="; + + postInstall = '' + mv $out/bin/cli $out/bin/ory + installShellCompletion --cmd ory \ + --bash <($out/bin/ory completion bash) \ + --fish <($out/bin/ory completion fish) \ + --zsh <($out/bin/ory completion zsh) + ''; + + meta = with lib; { + mainProgram = "ory"; + description = "The Ory CLI"; + homepage = "https://www.ory.sh/cli"; + license = licenses.asl20; + maintainers = with maintainers; [ luleyleo nicolas-goudry ]; + }; +} |