summary refs log tree commit diff
path: root/release/checks/reuse.nix
blob: 831ddcea0188583042cc656cbf90f3a924ec2449 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# SPDX-License-Identifier: MIT
# SPDX-FileCopyrightText: 2023 Alyssa Ross <hi@alyssa.is>

import ../../lib/call-package.nix ({ srcWithNix, lib, runCommand, reuse }:

runCommand "spectrum-reuse" {
  src = lib.fileset.toSource {
    root = ../..;
    fileset = srcWithNix;
  };
  nativeBuildInputs = [ reuse ];
} ''
  reuse --root $src lint
  touch $out
''
) (_: {})