Created
September 20, 2021 15:54
-
-
Save Arkham/31297c1d75fc59f723a50063bc0f5739 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let | |
sources = import ./nix/sources.nix { }; | |
nixpkgs = import sources.nixpkgs { }; | |
nixpkgs-ruby267 = import sources.nixpkgs-ruby267 { }; | |
in nixpkgs.mkShell { | |
buildInputs = [ | |
nixpkgs.go | |
nixpkgs-ruby267.ruby_2_6 | |
]; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"nixpkgs": { | |
"branch": "release-21.05", | |
"description": "Nix Packages collection", | |
"homepage": "", | |
"owner": "NixOS", | |
"repo": "nixpkgs", | |
"rev": "5f244caea76105b63d826911b2a1563d33ff1cdc", | |
"sha256": "1xlgynfw9svy7nvh9nkxsxdzncv9hg99gbvbwv3gmrhmzc3sar75", | |
"type": "tarball", | |
"url": "https://github.com/NixOS/nixpkgs/archive/5f244caea76105b63d826911b2a1563d33ff1cdc.tar.gz", | |
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz" | |
}, | |
"nixpkgs-ruby267": { | |
"branch": "nixpkgs-unstable", | |
"description": "Nix Packages collection", | |
"homepage": "", | |
"owner": "NixOS", | |
"repo": "nixpkgs", | |
"rev": "860b56be91fb874d48e23a950815969a7b832fbc", | |
"sha256": "07i03028w3iak0brdnkp79ci8vqqbrgr5p5i9sk87fhbg3656xhw", | |
"type": "tarball", | |
"url": "https://github.com/NixOS/nixpkgs/archive/860b56be91fb874d48e23a950815969a7b832fbc.tar.gz", | |
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz" | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ go version | |
go version go1.16.4 darwin/amd64 | |
$ ruby --version | |
ruby 2.6.7p197 (2021-04-05) [x86_64-darwin17] |
No, nix/sources.nix
is the file autogenerated by niv
which contains a nix expression that loads nix/sources.json
.
Can you show complete working example?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Shouldn't there be
import ./nix/sources.json
?