Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 stdenv, 3 lib, 4 fetchFromGitHub, 5 nautilus-python, 6 python3, 7}: 8stdenv.mkDerivation rec { 9 pname = "code-nautilus"; 10 version = "0-unstable-2024-09-11"; 11 12 src = fetchFromGitHub { 13 owner = "harry-cpp"; 14 repo = "code-nautilus"; 15 rev = "8ea0ce78f3f1f7a6af5f9e9cf93fc3e70015f61e"; 16 sha256 = "u10laS3BwUVCJYlQ6WivU7o/sFFv6cTeV+uxBEdD7oA="; 17 }; 18 19 buildInputs = [ 20 nautilus-python 21 python3.pkgs.pygobject3 22 ]; 23 24 installPhase = '' 25 runHook preInstall 26 install -Dm555 ./code-nautilus.py -t $out/share/nautilus-python/extensions 27 runHook postInstall 28 ''; 29 30 meta = with lib; { 31 description = "VSCode extension for Nautilus: 'Open in Code'"; 32 homepage = "https://github.com/harry-cpp/code-nautilus"; 33 license = licenses.unlicense; 34 platforms = platforms.linux; 35 maintainers = with maintainers; [ berrij ]; 36 }; 37 38}