~ruther/nix-envs

nix-envs/programs/qtmips/flake.nix -rw-r--r-- 786 bytes
d78625b3 — Rutherther feat: add qtrvsim program 1 year, 6 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{
  description = "QtMips package";


  inputs = {
    nixpkgs.url = "github:nixos/nixpkgs/release-23.05";
    flake-utils.url = "github:numtide/flake-utils";
  };

  outputs = { self, flake-utils, nixpkgs }: 
  let
    system = "x86_64-linux";
    pkgs = nixpkgs.legacyPackages.${system};
    qtmips = pkgs.libsForQt5.callPackage ./qtmips-pkg.nix {  };
    mipsPkgs = import nixpkgs {
      crossSystem.config = "mips-elf";
      system = "${system}";
    };
  in {
    packages.${system} = {
      QtMips = qtmips;
      default = self.packages.${system}.QtMips;
    };

    devShells.${system}.default = pkgs.mkShell {
      packages = [
        qtmips
      ];

      buildInputs = [
        mipsPkgs.buildPackages.binutils
        mipsPkgs.buildPackages.gcc
      ];
    };
  };
}
Do not follow this link