nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 python3,
3 lib,
4 fetchFromGitHub,
5 cinnamon-translations,
6}:
7
8python3.pkgs.buildPythonApplication rec {
9 pname = "nemo-emblems";
10 version = "6.6.0";
11 pyproject = true;
12
13 # nixpkgs-update: no auto update
14 src = fetchFromGitHub {
15 owner = "linuxmint";
16 repo = "nemo-extensions";
17 rev = version;
18 hash = "sha256-tXeMkaCYnWzg+6ng8Tyg4Ms1aUeE3xiEkQ3tKEX6Vv8=";
19 };
20
21 sourceRoot = "${src.name}/nemo-emblems";
22
23 postPatch = ''
24 substituteInPlace setup.py \
25 --replace-fail "/usr/share" "share"
26
27 substituteInPlace nemo-extension/nemo-emblems.py \
28 --replace-fail "/usr/share/locale" "${cinnamon-translations}/share/locale"
29 '';
30
31 build-system = with python3.pkgs; [ setuptools ];
32
33 meta = {
34 homepage = "https://github.com/linuxmint/nemo-extensions/tree/master/nemo-emblems";
35 description = "Change a folder or file emblem in Nemo";
36 longDescription = ''
37 Nemo extension that allows you to change folder or file emblems.
38 When adding this to nemo-with-extensions you also need to add nemo-python.
39 '';
40 license = lib.licenses.gpl3Only;
41 platforms = lib.platforms.linux;
42 teams = [ lib.teams.cinnamon ];
43 };
44}