mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-16 15:38:16 +00:00
code-nautilus: init at 0-unstable-2024-09-11
This commit is contained in:
parent
98eaeec45f
commit
fdf6cff147
38
pkgs/by-name/co/code-nautilus/package.nix
Normal file
38
pkgs/by-name/co/code-nautilus/package.nix
Normal file
@ -0,0 +1,38 @@
|
||||
{
|
||||
stdenv,
|
||||
lib,
|
||||
fetchFromGitHub,
|
||||
nautilus-python,
|
||||
python3,
|
||||
}:
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "code-nautilus";
|
||||
version = "0-unstable-2024-09-11";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "harry-cpp";
|
||||
repo = "code-nautilus";
|
||||
rev = "8ea0ce78f3f1f7a6af5f9e9cf93fc3e70015f61e";
|
||||
sha256 = "u10laS3BwUVCJYlQ6WivU7o/sFFv6cTeV+uxBEdD7oA=";
|
||||
};
|
||||
|
||||
buildInputs = [
|
||||
nautilus-python
|
||||
python3.pkgs.pygobject3
|
||||
];
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
install -Dm555 ./code-nautilus.py -t $out/share/nautilus-python/extensions
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "VSCode extension for Nautilus: 'Open in Code'";
|
||||
homepage = "https://github.com/harry-cpp/code-nautilus";
|
||||
license = licenses.unlicense;
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ berrij ];
|
||||
};
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user