Skip to content

Cannot install trough configuration.nix #15

@Zahrun

Description

@Zahrun

I don't know what happened, it used to be fine, and the code didn't change in between.
I have

{ config, pkgs, lib, ... }:
let
  nixos-conf-editor = import (pkgs.fetchFromGitHub {
    owner = "vlinkz";
    repo = "nixos-conf-editor";
    rev = "0.1.1";
    sha256 = "sha256-TeDpfaIRoDg01FIP8JZIS7RsGok/Z24Y3Kf+PuKt6K4=";
  }) {};
in
{
  environment.systemPackages =
  with pkgs; [
    nixos-conf-editor
    # rest of your packages
  ];
}

But nixos-rebuild fails with

nixos-conf-editor-0.1.1-vendor.tar.gz> building '/nix/store/mwdwhrb58iig3qs4gzzksl9vlh9nsx2k-nixos-conf-editor-0.1.1-vendor.tar.gz.drv'
nixos-conf-editor-0.1.1-vendor.tar.gz> unpacking sources
nixos-conf-editor-0.1.1-vendor.tar.gz> unpacking source archive /nix/store/w9cj7n6p0ls01x9wx4rm5ym4xn59xhzw-d0ddxbyalkfbxdbnfa6xprl8g87n8zn1-source
nixos-conf-editor-0.1.1-vendor.tar.gz> source root is d0ddxbyalkfbxdbnfa6xprl8g87n8zn1-source
nixos-conf-editor-0.1.1-vendor.tar.gz> patching sources
nixos-conf-editor-0.1.1-vendor.tar.gz> configuring
nixos-conf-editor-0.1.1-vendor.tar.gz> no configure script, doing nothing
nixos-conf-editor-0.1.1-vendor.tar.gz> building
nixos-conf-editor-0.1.1-vendor.tar.gz> source = "git+https://github.com/snowflakelinux/nix-data#a75a234c2ffa661b6d3f6d276dc372677e5e2c74"
nixos-conf-editor-0.1.1-vendor.tar.gz> 
nixos-conf-editor-0.1.1-vendor.tar.gz> ERROR: The Cargo.lock contains git dependencies
nixos-conf-editor-0.1.1-vendor.tar.gz> 
nixos-conf-editor-0.1.1-vendor.tar.gz> This is currently not supported in the fixed-output derivation fetcher.
nixos-conf-editor-0.1.1-vendor.tar.gz> Use cargoLock.lockFile / importCargoLock instead.
nixos-conf-editor-0.1.1-vendor.tar.gz> 
error: builder for '/nix/store/mwdwhrb58iig3qs4gzzksl9vlh9nsx2k-nixos-conf-editor-0.1.1-vendor.tar.gz.drv' failed with exit code 1
error: 1 dependencies of derivation '/nix/store/rdd0p9akqczj2dbw95i5yi2c70wj6dk5-nixos-conf-editor-0.1.1.drv' failed to build
error: 1 dependencies of derivation '/nix/store/5rdwrqk7kfbh0w3nif2a6l8sfwiq80z3-system-path.drv' failed to build
error: 1 dependencies of derivation '/nix/store/wv3k9sw16asrs4yvvpk881g4kc4rsjr7-system-path.drv' failed to build
error: 1 dependencies of derivation '/nix/store/ln2c1j40911v3bg2fflz55cdg866l2ln-nixos-system-nixos-23.05pre469482.e3652e0735f.drv' failed to build

Even the 'nix-env' installation fails with the same error.

git clone https://github.com/vlinkz/nixos-conf-editor
nix-env -f nixos-conf-editor -i nixos-conf-editor 

cf. snowfallorg/nix-software-center#42

PS: Single run with flakes works fine

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions