Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 rustPlatform, 4 fetchFromGitHub, 5}: 6 7rustPlatform.buildRustPackage rec { 8 pname = "git-point"; 9 version = "0.2.2"; 10 11 src = fetchFromGitHub { 12 owner = "Qyriad"; 13 repo = "git-point"; 14 rev = "v0.2.2"; 15 hash = "sha256-mH++Ddfv+OqjRTTGhagAtnNZpD13OtKhAiGxh7Mu0lY="; 16 }; 17 18 cargoHash = "sha256-YwinEAJ8djCE2tHp8VcfcyHSa8rUn8RBnsdW0YqIM3o="; 19 20 postInstall = '' 21 mkdir -p "$out/share/man/man1" 22 "$out/bin/git-point" --mangen > "$out/share/man/man1/git-point.1" 23 ''; 24 25 meta = { 26 homepage = "https://github.com/Qyriad/git-point"; 27 description = "Set arbitrary refs without shooting yourself in the foot, a procelain `git update-ref`"; 28 maintainers = [ 29 lib.maintainers.qyriad 30 lib.maintainers.philiptaron 31 ]; 32 license = [ lib.licenses.mit ]; 33 sourceProvenance = [ lib.sourceTypes.fromSource ]; 34 platforms = lib.platforms.all; 35 mainProgram = "git-point"; 36 }; 37}