Logo
Explore Help
Sign In
talexander/nixpkgs
1
0
Fork 0
You've already forked nixpkgs
Code Issues Pull Requests Releases Activity
nixpkgs/lib/source-types.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

20 lines
280 B
Nix
Raw Normal View History

add mechanism for handling meta.sourceProvenance attributes heavily based on patterns used by licenses infrastructure, so may appear overengineered for its initial level of use
2022-02-20 19:23:12 +00:00
{ lib }:
lib.sourceTypes: simplify implementation Co-authored-by: Alexander Foremny <aforemny@posteo.de>
2022-05-20 22:28:38 +01:00
let
defaultSourceType = tname: {
add mechanism for handling meta.sourceProvenance attributes heavily based on patterns used by licenses infrastructure, so may appear overengineered for its initial level of use
2022-02-20 19:23:12 +00:00
shortName = tname;
isSource = false;
};
lib.sourceTypes: simplify implementation Co-authored-by: Alexander Foremny <aforemny@posteo.de>
2022-05-20 22:28:38 +01:00
in lib.mapAttrs (tname: tset: defaultSourceType tname // tset) {
add mechanism for handling meta.sourceProvenance attributes heavily based on patterns used by licenses infrastructure, so may appear overengineered for its initial level of use
2022-02-20 19:23:12 +00:00
fromSource = {
isSource = true;
};
binaryNativeCode = {};
binaryBytecode = {};
binaryFirmware = {};
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.1 Page: 3094ms Template: 1ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API