about summary refs log tree commit diff
path: root/pkgs/data/misc/nixos-artwork/icons.nix
blob: 75c7075bae9fda2a3e88ae92cbad047971fd171e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
{ stdenv
, lib
, fetchFromGitHub
, imagemagick
}:

stdenv.mkDerivation (finalAttrs: {
  pname = "nixos-icons";
  version = "0-unstable-2024-04-10";

  src = fetchFromGitHub {
    owner = "NixOS";
    repo = "nixos-artwork";
    rev = "f84c13adae08e860a7c3f76ab3a9bef916d276cc";
    hash = "sha256-lO/2dLGK2f9pzLHudRIs4PUcGUliy7kfyt9r4CbhbVg=";
  };

  sourceRoot = "${finalAttrs.src.name}/icons";

  strictDeps = true;

  nativeBuildInputs = [
    imagemagick
  ];

  makeFlags = [
    "prefix=${placeholder "out"}"
  ];

  enableParallelBuilding = true;

  meta = with lib; {
    description = "Icons of the Nix logo, in Freedesktop Icon Directory Layout";
    homepage = "https://github.com/NixOS/nixos-artwork";
    license = licenses.cc-by-40;
    maintainers = with maintainers; [];
    platforms = platforms.all;
  };
})