nixpkgs/pkgs/by-name/gi/gitlab-shell/package.nix
aleksana 571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
We are migrating packages that meet below requirements:

1. using `callPackage`
2. called path is a directory
3. overriding set is empty (`{ }`)
4. not containing path expressions other than relative path (to
makenixpkgs-vet happy)
5. not referenced by nix files outside of the directory, other
than`pkgs/top-level/all-packages.nix`
6. not referencing nix files outside of the directory
7. not referencing `default.nix` (since it's changed to `package.nix`)
8. `outPath` doesn't change after migration

The tool is here: https://github.com/Aleksanaa/by-name-migrate.
2024-11-09 20:04:51 +08:00

39 lines
1002 B
Nix

{ lib, fetchFromGitLab, buildGoModule, ruby, libkrb5 }:
buildGoModule rec {
pname = "gitlab-shell";
version = "14.38.0";
# nixpkgs-update: no auto update
src = fetchFromGitLab {
owner = "gitlab-org";
repo = "gitlab-shell";
rev = "v${version}";
hash = "sha256-oYvsSjdzfJn4ujy1qbMmqZyEQFbYTSke8t3KBqjr/Vc=";
};
buildInputs = [ ruby libkrb5 ];
patches = [
./remove-hardcoded-locations.patch
];
vendorHash = "sha256-YOShgZv0zdfXgKi//IENt6wE2m0S1Kqa+2ndvCwKDLQ=";
postInstall = ''
cp -r "$NIX_BUILD_TOP/source"/bin/* $out/bin
mv $out/bin/install $out/bin/gitlab-shell-install
mv $out/bin/check $out/bin/gitlab-shell-check
cp -r "$NIX_BUILD_TOP/source"/{support,VERSION} $out/
'';
doCheck = false;
meta = with lib; {
description = "SSH access and repository management app for GitLab";
homepage = "http://www.gitlab.com/";
platforms = platforms.linux;
maintainers = teams.gitlab.members;
license = licenses.mit;
};
}