Skip to content

Commit

Permalink
fix(get-platform,sdk): add linux-nixos to possible values of binaryTa…
Browse files Browse the repository at this point in the history
…rgets

Related #2305
  • Loading branch information
Jolg42 committed May 28, 2020
1 parent cff8132 commit 43fc8dc
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions src/packages/get-platform/src/getPlatform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,10 @@ export async function getPlatform(): Promise<Platform> {
return 'netbsd'
}

if (platform === 'linux' && distro === 'nixos') {
return 'linux-nixos'
}

if (platform === 'linux' && distro === 'musl') {
return 'linux-musl'
}
Expand Down
4 changes: 2 additions & 2 deletions src/packages/get-platform/src/platforms.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ export type Platform =
| 'rhel-openssl-1.0.x'
| 'rhel-openssl-1.1.x'
| 'linux-musl'
| 'linux-nixos'
| 'windows'
| 'freebsd'
| 'openbsd'
| 'netbsd'
| 'nixos'
| 'arm'

export const platforms = [
Expand All @@ -20,11 +20,11 @@ export const platforms = [
'rhel-openssl-1.0.x',
'rhel-openssl-1.1.x',
'linux-musl',
'linux-nixos',
'windows',
'freebsd',
'openbsd',
'netbsd',
'nixos',
'arm',
]

Expand Down
1 change: 1 addition & 0 deletions src/packages/sdk/src/getGenerators.ts
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,7 @@ export const knownBinaryTargets: Platform[] = [
'rhel-openssl-1.0.x',
'rhel-openssl-1.1.x',
'linux-musl',
'linux-nixos',
'windows',
'freebsd',
'openbsd',
Expand Down

0 comments on commit 43fc8dc

Please sign in to comment.