Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
argo
argopkgs
Commits
b5592422
Commit
b5592422
authored
Nov 05, 2018
by
Valentin Reis
Browse files
[ Fix ] pinning reference fix.
parent
e91b35c8
Changes
2
Hide whitespace changes
Inline
Side-by-side
pin.nix
View file @
b5592422
{
hostPkgs
?
import
<
nixpkgs
>
{},
jsonpath
,
depset
?
{}
depset
?
{},
hostPkgs
?
import
(
builtins
.
fetchTarball
{
name
=
"nixos-18.03"
;
url
=
https://github.com/nixos/nixpkgs/archive/18.03.tar.gz
;
sha256
=
"0hk4y2vkgm1qadpsm4b0q1vxq889jhxzjx3ragybrlwwg54mzp4f"
;
})
{}
}:
let
pinnedVersion
=
hostPkgs
.
lib
.
importJSON
jsonpath
;
...
...
pkgs/default.nix
View file @
b5592422
{
hostPkgs
?
import
<
nixpkgs
>
{},
kapack
?
import
../pin.nix
{
inherit
hostPkgs
;
jsonpath
=
../kapack.json
;
depset
=
{
inherit
hostPkgs
;};},
pkgs
?
import
../pin.nix
{
inherit
hostPkgs
;
jsonpath
=
../nixpkgs-18.03.json
;
},
pkgs
?
import
../pin.nix
{
jsonpath
=
../nixpkgs-18.03.json
;
},
kapack
?
import
../pin.nix
{
jsonpath
=
../kapack.json
;
depset
=
{
hostPkgs
=
pkgs
;};},
}:
let
gitpin
=
f
:
pkgs
.
fetchgit
{
inherit
(
pkgs
.
lib
.
importJSON
f
)
url
sha256
rev
fetchSubmodules
;};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment