Skip to content

Commit 63c1085

Browse files
committed
docs: update a couple nix-isms
also relicense cocotb.nix under the MIT license, permission obtained from Leo Moser, the contributor
1 parent b3b47fc commit 63c1085

File tree

5 files changed

+7
-22
lines changed

5 files changed

+7
-22
lines changed

Readme.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ We compile and cache the tools for the following platforms:
2727
* [Verilator](https://verilator.org)
2828
* [Icarus Verilog](https://github.com/steveicarus/iverilog)
2929
* [cocotb](https://www.cocotb.org/)
30-
* Linux only.
3130
* [Xschem](https://xschem.sourceforge.io/stefan/index.html)
3231
* [Xyce](https://github.com/xyce/xyce)
3332
* Linux only.

docs/flake-template.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
})
4242
(
4343
nix-eda.composePythonOverlay (pkgs': pkgs: pypkgs': pypkgs: let
44-
callPythonPackage = lib.callPackageWith (pkgs' // pkgs'.python3.pkgs);
44+
callPythonPackage = lib.callPackageWith (pkgs' // pypkgs');
4545
in {
4646
# Add python package derivations here
4747
})

docs/flake_api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ creation of dependent Flakes, ranked by importance:
4848

4949
```nix
5050
self.composePythonOverlay (pkgs': pkgs: pypkgs': pypkgs: let
51-
callPythonPackage = lib.callPackageWith (pkgs' // pkgs'.python3.pkgs);
51+
callPythonPackage = lib.callPackageWith (pkgs' // pypkgs');
5252
in {
5353
gdsfactory = callPythonPackage ./nix/gdsfactory.nix {};
5454
})

docs/installation.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,11 @@ You can do that by adding these statements to your OS's derivation:
8282
```nix
8383
{
8484
nix = {
85-
extraOptions = ''
86-
extra-experimental-features = nix-command flakes
87-
'';
8885
settings = {
86+
experimental-features = [
87+
"nix-command"
88+
"flakes"
89+
];
8990
substituters = [
9091
"https://nix-cache.fossi-foundation.org"
9192
];

nix/cocotb.nix

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,4 @@
1-
# Copyright 2025 nix-eda Contributors
2-
#
3-
# Licensed under the Apache License, Version 2.0 (the "License");
4-
# you may not use this file except in compliance with the License.
5-
# You may obtain a copy of the License at
6-
#
7-
# http://www.apache.org/licenses/LICENSE-2.0
8-
#
9-
# Unless required by applicable law or agreed to in writing, software
10-
# distributed under the License is distributed on an "AS IS" BASIS,
11-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12-
# See the License for the specific language governing permissions and
13-
# limitations under the License.
14-
# Code adapated from nixpkgs, original license follows
15-
# ---
16-
# Copyright (c) 2003-2025 Eelco Dolstra and the Nixpkgs/NixOS contributors
1+
# Copyright (c) 2025 nix-eda Contributors
172
#
183
# Permission is hereby granted, free of charge, to any person obtaining
194
# a copy of this software and associated documentation files (the

0 commit comments

Comments
 (0)