Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not build package which contains external dependencies #321

Open
corpix opened this issue Jan 30, 2023 · 1 comment
Open

Can not build package which contains external dependencies #321

corpix opened this issue Jan 30, 2023 · 1 comment

Comments

@corpix
Copy link

corpix commented Jan 30, 2023

Given following info.rkt:

#lang info                                                                                                                                                                                                                                                                       
(define collection "corpix")                                                                                                                                                                                                                                                     
(define deps '("racket" "net-ip"))                                                                                                                                                                                                                                               
(define build-deps '("scribble-lib" "racket-doc" "rackunit-lib"))                                                                                                                                                                                                                
(define scribblings '(("scribblings/firewalld.scrbl" ())))                                                                                                                                                                                                                       
(define pkg-desc "Rule based firewall daemon")                                                                                                                                                                                                                                   
(define version "0.0")                                                                                                                                                                                                                                                           
(define pkg-authors '(corpix))                                                                                                                                                                                                                                                   
(define license '(Unlicense))                                                                                                                                                                                                                                                    
(define racket-launcher-names '("firewalld"))                                                                                                                                                                                                                                    
(define racket-launcher-libraries '("firewalld.rkt"))

And default.nix:

{ pkgs       ? import <nixpkgs> {}                                                                                                                                                                                                                                               
, racket2nix ? pkgs.fetchFromGitHub {                                                                                                                                                                                                                                            
  owner = "fractalide"; repo = "racket2nix";                                                                                                                                                                                                                                     
  rev = "59c614406d4796f40620f6490b0b05ecb51ed976";                                                                                                                                                                                                                              
  sha256 = "0z5y1jm60vkwvi66q39p88ygkgyal81486h577gikmpqjxkg9d6i"; }                                                                                                                                                                                                             
}:                                                                                                                                                                                                                                                                               
                                                                                                                                                                                                                                                                                 
with import racket2nix { };                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                 
buildRacketPackage ./.

Can not build package because of unsatisfied external dependency:

 ~/projects/src/git.backbone/corpix/racket/firewalld  λ  nix build -f .                                                     (3s 520ms)                                                                                                                                           
error: builder for '/nix/store/idyan8sw7spp22is2868jgazl2y5vdgr-racket-package.nix.drv' failed with exit code 1;                                                                                                                                                                 
       last 2 log lines:                                                                                                                                                                                                                                                         
       > Invalid catalog: Package firewalld has unresolved dependency net-ip.                                                                                                                                                                                                    
       >                                                                                                                                                                                                                                                                         
       For full logs, run 'nix log /nix/store/idyan8sw7spp22is2868jgazl2y5vdgr-racket-package.nix.drv'.                                                                                                                                                                          
(use '--show-trace' to show detailed location information)                                                                              

How to use racket2nix to build a package with external depndencies?

@clacke
Copy link
Member

clacke commented Feb 6, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants