Compare commits
4 Commits
d95b3cb9c6
...
main
Author | SHA1 | Date | |
---|---|---|---|
81ab3a8262
|
|||
731ba8da0e
|
|||
90a152d6f1
|
|||
77d01755d0
|
@@ -14,7 +14,8 @@
|
||||
modules = import ./modules; # NixOS modules
|
||||
overlays = import ./overlays; # nixpkgs overlays
|
||||
|
||||
example-package = pkgs.callPackage ./pkgs/example-package { };
|
||||
libosmo-cc = pkgs.callPackage ./pkgs/libosmo-cc { };
|
||||
osmocom-analog = pkgs.callPackage ./pkgs/osmocom-analog { };
|
||||
# some-qt5-package = pkgs.libsForQt5.callPackage ./pkgs/some-qt5-package { };
|
||||
# ...
|
||||
}
|
||||
|
@@ -1,5 +1,5 @@
|
||||
{
|
||||
description = "My personal NUR repository";
|
||||
description = "dubyatp's NUR repository";
|
||||
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
||||
outputs = { self, nixpkgs }:
|
||||
let
|
||||
|
@@ -1,9 +0,0 @@
|
||||
{ stdenv }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "example-package-${version}";
|
||||
version = "1.0";
|
||||
src = ./.;
|
||||
buildPhase = "echo echo Hello World > example";
|
||||
installPhase = "install -Dm755 example $out";
|
||||
}
|
29
pkgs/libosmo-cc/default.nix
Normal file
29
pkgs/libosmo-cc/default.nix
Normal file
@@ -0,0 +1,29 @@
|
||||
{ pkgs ? import <nixpkgs> {} }:
|
||||
|
||||
pkgs.stdenv.mkDerivation rec {
|
||||
pname = "libosmo-cc";
|
||||
version = "unstable-2025-03-03";
|
||||
|
||||
src = pkgs.fetchgit {
|
||||
url = "https://gitea.osmocom.org/cc/libosmo-cc.git";
|
||||
rev = "b5a4d441bf3892b146e4655bbcaee0f1b486c6e8";
|
||||
hash = "sha256-ktMxU9Yc0ZQXH3Z3jGNSWFMypZ2OoqkJDHqkaVRBQME=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = with pkgs; [
|
||||
autoconf271
|
||||
automake
|
||||
gnumake
|
||||
libtool
|
||||
pkg-config
|
||||
];
|
||||
|
||||
buildInputs = with pkgs; [
|
||||
libosmocore
|
||||
];
|
||||
|
||||
configurePhase = ''
|
||||
autoreconf -fi
|
||||
./configure --prefix=$out
|
||||
'';
|
||||
}
|
39
pkgs/osmocom-analog/default.nix
Normal file
39
pkgs/osmocom-analog/default.nix
Normal file
@@ -0,0 +1,39 @@
|
||||
{ pkgs ? import <nixpkgs> {} }:
|
||||
|
||||
let
|
||||
libosmo-cc = pkgs.callPackage ../libosmo-cc { };
|
||||
in
|
||||
|
||||
pkgs.stdenv.mkDerivation rec {
|
||||
pname = "osmocom-analog";
|
||||
version = "unstable-2025-02-08";
|
||||
|
||||
src = pkgs.fetchgit {
|
||||
url = "https://gitea.osmocom.org/cellular-infrastructure/osmocom-analog.git";
|
||||
rev = "4ebf64f7c857c4fe7c56f7bdb3c1a4f705919e66";
|
||||
hash = "sha256-XqsK4e/WIkm8c4Iwhn4JT7B4pcOrMtEOglOeuOaKWVQ=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = with pkgs; [
|
||||
autoconf271
|
||||
automake
|
||||
gnumake
|
||||
libtool
|
||||
pkg-config
|
||||
];
|
||||
|
||||
buildInputs = with pkgs; [
|
||||
alsa-lib
|
||||
soapysdr
|
||||
fuse3
|
||||
libosmocore
|
||||
fftwFloat
|
||||
SDL2
|
||||
libosmo-cc
|
||||
];
|
||||
|
||||
configurePhase = ''
|
||||
autoreconf -fi
|
||||
./configure --prefix=$out
|
||||
'';
|
||||
}
|
Reference in New Issue
Block a user