File: flake.nix

package info (click to toggle)
python-pyelftools 0.32-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 68,964 kB
  • sloc: python: 15,903; ansic: 298; asm: 86; makefile: 24; cpp: 18; sh: 4
file content (18 lines) | stat: -rw-r--r-- 521 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{
  description = "A flake for building a mips64el .o file for testing pyelftools";

  inputs.nixpkgs.url = github:NixOS/nixpkgs/nixos-23.05;

  outputs = { self, nixpkgs }: {

    defaultPackage.x86_64-linux =
      with (import nixpkgs { system = "x86_64-linux"; }).pkgsCross.mips64el-linux-gnuabi64;
      stdenv.mkDerivation {
        name = "dwarf_mips64el";
        src = self;
        buildPhase = "$CC -g -c ./dwarf_mips64el.c";
        installPhase = "mkdir -p $out; cp dwarf_mips64el.o $out/";
      };

  };
}